mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
75863 lines
1.9 MiB
75863 lines
1.9 MiB
# SOME DESCRIPTIVE TITLE
|
|
# Copyright (C) YEAR Red Hat Inc.
|
|
# This file is distributed under the same license as the libguestfs package.
|
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
#
|
|
#, fuzzy
|
|
msgid ""
|
|
msgstr ""
|
|
"Project-Id-Version: libguestfs 1.25.42\n"
|
|
"Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
|
|
"POT-Creation-Date: 2014-03-06 15:58+0000\n"
|
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
"Language: \n"
|
|
"MIME-Version: 1.0\n"
|
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
"Content-Transfer-Encoding: 8bit\n"
|
|
|
|
#. type: =head1
|
|
#: ../align/virt-alignment-scan.pod:3 ../appliance/libguestfs-make-fixed-appliance.pod:3 ../builder/virt-builder.pod:10 ../builder/virt-index-validate.pod:3 ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3 ../daemon/guestfsd.pod:3 ../df/virt-df.pod:3 ../diff/virt-diff.pod:3 ../edit/virt-edit.pod:3 ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3 ../examples/guestfs-faq.pod:3 ../examples/guestfs-performance.pod:3 ../examples/guestfs-recipes.pod:10 ../examples/guestfs-testing.pod:3 ../fish/guestfish.pod:3 ../fish/libguestfs-tools.conf.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 ../format/virt-format.pod:3 ../fuse/guestmount.pod:3 ../fuse/guestunmount.pod:3 ../golang/examples/guestfs-golang.pod:3 ../guestfs-release-notes.pod:3 ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3 ../lua/examples/guestfs-lua.pod:3 ../make-fs/virt-make-fs.pod:3 ../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 ../sparsify/virt-sparsify.pod:3 ../src/guestfs.pod:3 ../sysprep/virt-sysprep.pod:3 ../test-tool/libguestfs-test-tool.pod:3 ../tools/virt-list-filesystems:29 ../tools/virt-list-partitions:29 ../tools/virt-tar:30 ../tools/virt-win-reg:34
|
|
msgid "NAME"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:5
|
|
msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../align/virt-alignment-scan.pod:7 ../appliance/libguestfs-make-fixed-appliance.pod:7 ../builder/virt-builder.pod:14 ../builder/virt-index-validate.pod:7 ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7 ../daemon/guestfsd.pod:7 ../df/virt-df.pod:7 ../diff/virt-diff.pod:7 ../edit/virt-edit.pod:7 ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7 ../fish/libguestfs-tools.conf.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 ../format/virt-format.pod:7 ../fuse/guestmount.pod:7 ../fuse/guestunmount.pod:7 ../golang/examples/guestfs-golang.pod:7 ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7 ../lua/examples/guestfs-lua.pod:7 ../make-fs/virt-make-fs.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 ../sysprep/virt-sysprep.pod:7 ../test-tool/libguestfs-test-tool.pod:7 ../tools/virt-list-filesystems:33 ../tools/virt-list-partitions:33 ../tools/virt-tar:34 ../tools/virt-win-reg:38
|
|
msgid "SYNOPSIS"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../align/virt-alignment-scan.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-alignment-scan [--options] -d domname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../align/virt-alignment-scan.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../align/virt-alignment-scan.pod:13
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-alignment-scan [--options]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../align/virt-alignment-scan.pod:15 ../appliance/libguestfs-make-fixed-appliance.pod:13 ../builder/virt-builder.pod:48 ../builder/virt-index-validate.pod:11 ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19 ../daemon/guestfsd.pod:11 ../df/virt-df.pod:25 ../diff/virt-diff.pod:13 ../edit/virt-edit.pod:27 ../erlang/examples/guestfs-erlang.pod:16 ../examples/guestfs-examples.pod:19 ../examples/guestfs-performance.pod:7 ../examples/guestfs-recipes.pod:14 ../examples/guestfs-testing.pod:7 ../fish/guestfish.pod:30 ../fish/libguestfs-tools.conf.pod:17 ../fish/virt-copy-in.pod:19 ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21 ../fish/virt-tar-out.pod:15 ../format/virt-format.pod:11 ../fuse/guestmount.pod:20 ../fuse/guestunmount.pod:13 ../golang/examples/guestfs-golang.pod:26 ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:21 ../lua/examples/guestfs-lua.pod:16 ../make-fs/virt-make-fs.pod:15 ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:19 ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:31 ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15 ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:24 ../sysprep/virt-sysprep.pod:13 ../test-tool/libguestfs-test-tool.pod:11 ../tools/virt-list-filesystems:44 ../tools/virt-list-partitions:44 ../tools/virt-tar:76 ../tools/virt-win-reg:62
|
|
msgid "DESCRIPTION"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:17
|
|
msgid ""
|
|
"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
|
|
#: ../align/virt-alignment-scan.pod:23
|
|
msgid ""
|
|
"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
|
|
#: ../align/virt-alignment-scan.pod:27
|
|
msgid ""
|
|
"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<http://media.netapp.com/documents/tr-3747.pdf>"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../align/virt-alignment-scan.pod:32
|
|
msgid "OUTPUT"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:34
|
|
msgid "To run this tool on a disk image directly, use the I<-a> option:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../align/virt-alignment-scan.pod:36
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ virt-alignment-scan -a winxp.img\n"
|
|
" /dev/sda1 32256 512 bad (alignment < 4K)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../align/virt-alignment-scan.pod:39
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ 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
|
|
#: ../align/virt-alignment-scan.pod:44
|
|
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
|
|
#: ../align/virt-alignment-scan.pod:47
|
|
#, no-wrap
|
|
msgid ""
|
|
" # 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: verbatim
|
|
#: ../align/virt-alignment-scan.pod:51
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ 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
|
|
#: ../align/virt-alignment-scan.pod:56
|
|
msgid ""
|
|
"Run virt-alignment-scan without any I<-a> or I<-d> options to scan all "
|
|
"libvirt domains."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../align/virt-alignment-scan.pod:59
|
|
#, no-wrap
|
|
msgid ""
|
|
" # virt-alignment-scan\n"
|
|
" F16x64:/dev/sda1 1048576 1024K ok\n"
|
|
" F16x64:/dev/sda2 2097152 2048K ok\n"
|
|
" F16x64:/dev/sda3 526385152 2048K ok\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:64
|
|
msgid ""
|
|
"The output consists of 4 or more whitespace-separated columns. Only the "
|
|
"first 4 columns are significant if you want to parse this from a program. "
|
|
"The columns are:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:70
|
|
msgid "col 1"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:72
|
|
msgid ""
|
|
"The device and partition name (eg. C</dev/sda1> meaning the first partition "
|
|
"on the first block device)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:75
|
|
msgid ""
|
|
"When listing all libvirt domains (no I<-a> or I<-d> option given) this "
|
|
"column is prefixed by the libvirt name or UUID (if I<--uuid> is given). eg: "
|
|
"C<WinXP:/dev/sda1>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:79
|
|
msgid "col 2"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:81
|
|
msgid "the start of the partition in bytes"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:83
|
|
msgid "col 3"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:85
|
|
msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:87
|
|
msgid "col 4"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:89
|
|
msgid ""
|
|
"C<ok> if the alignment is best for performance, or C<bad> if the alignment "
|
|
"can cause performance problems"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:92
|
|
msgid "cols 5+"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:94
|
|
msgid "optional free-text explanation."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:98
|
|
msgid ""
|
|
"The exit code from the program changes depending on whether poorly aligned "
|
|
"partitions were found. See L</EXIT STATUS> below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:101
|
|
msgid "If you just want the exit code with no output, use the I<-q> option."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../align/virt-alignment-scan.pod:103 ../appliance/libguestfs-make-fixed-appliance.pod:99 ../builder/virt-builder.pod:184 ../builder/virt-index-validate.pod:21 ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:251 ../daemon/guestfsd.pod:45 ../df/virt-df.pod:73 ../diff/virt-diff.pod:37 ../edit/virt-edit.pod:62 ../fish/guestfish.pod:154 ../fish/virt-copy-in.pod:45 ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42 ../fish/virt-tar-out.pod:36 ../format/virt-format.pod:59 ../fuse/guestmount.pod:161 ../fuse/guestunmount.pod:72 ../inspector/virt-inspector.pod:54 ../make-fs/virt-make-fs.pod:119 ../rescue/virt-rescue.pod:115 ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:108 ../sysprep/virt-sysprep.pod:40 ../test-tool/libguestfs-test-tool.pod:36 ../tools/virt-list-filesystems:54 ../tools/virt-list-partitions:55 ../tools/virt-tar:102 ../tools/virt-win-reg:95
|
|
msgid "OPTIONS"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:107 ../appliance/libguestfs-make-fixed-appliance.pod:103 ../builder/virt-builder.pod:188 ../builder/virt-index-validate.pod:64 ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:255 ../daemon/guestfsd.pod:51 ../df/virt-df.pod:77 ../diff/virt-diff.pod:41 ../edit/virt-edit.pod:66 ../fish/guestfish.pod:158 ../format/virt-format.pod:63 ../fuse/guestmount.pod:235 ../fuse/guestunmount.pod:81 ../inspector/virt-inspector.pod:58 ../make-fs/virt-make-fs.pod:123 ../rescue/virt-rescue.pod:119 ../resize/virt-resize.pod:272 ../sparsify/virt-sparsify.pod:112 ../sysprep/virt-sysprep.pod:44 ../test-tool/libguestfs-test-tool.pod:40 ../tools/virt-list-filesystems:62 ../tools/virt-list-partitions:63 ../tools/virt-tar:110 ../tools/virt-win-reg:103
|
|
msgid "B<--help>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:109 ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:257 ../daemon/guestfsd.pod:53 ../df/virt-df.pod:79 ../diff/virt-diff.pod:43 ../edit/virt-edit.pod:68 ../format/virt-format.pod:65 ../inspector/virt-inspector.pod:60 ../make-fs/virt-make-fs.pod:125 ../rescue/virt-rescue.pod:121 ../sysprep/virt-sysprep.pod:46 ../tools/virt-list-filesystems:64 ../tools/virt-list-partitions:65 ../tools/virt-tar:112 ../tools/virt-win-reg:105
|
|
msgid "Display brief help."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:111 ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:259 ../df/virt-df.pod:81 ../diff/virt-diff.pod:45 ../edit/virt-edit.pod:70 ../format/virt-format.pod:67 ../inspector/virt-inspector.pod:62 ../rescue/virt-rescue.pod:123 ../sysprep/virt-sysprep.pod:48
|
|
msgid "B<-a> file"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:261 ../df/virt-df.pod:83 ../diff/virt-diff.pod:47 ../edit/virt-edit.pod:72 ../format/virt-format.pod:69 ../inspector/virt-inspector.pod:64 ../rescue/virt-rescue.pod:125 ../sysprep/virt-sysprep.pod:50
|
|
msgid "B<--add> file"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:115 ../sysprep/virt-sysprep.pod:52
|
|
msgid "Add I<file> which should be a disk image from a virtual machine."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:117 ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:267 ../df/virt-df.pod:89 ../diff/virt-diff.pod:53 ../edit/virt-edit.pod:78 ../fish/guestfish.pod:180 ../format/virt-format.pod:73 ../fuse/guestmount.pod:171 ../inspector/virt-inspector.pod:70 ../rescue/virt-rescue.pod:131
|
|
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
|
|
#: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:110 ../cat/virt-ls.pod:270 ../df/virt-df.pod:92 ../edit/virt-edit.pod:81 ../fish/guestfish.pod:187 ../format/virt-format.pod:78 ../fuse/guestmount.pod:174 ../rescue/virt-rescue.pod:134
|
|
msgid "B<-a URI>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:122 ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:112 ../cat/virt-ls.pod:272 ../df/virt-df.pod:94 ../edit/virt-edit.pod:83 ../fish/guestfish.pod:189 ../format/virt-format.pod:80 ../fuse/guestmount.pod:176 ../rescue/virt-rescue.pod:136
|
|
msgid "B<--add URI>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:124 ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:114 ../cat/virt-ls.pod:274 ../df/virt-df.pod:96 ../diff/virt-diff.pod:60 ../edit/virt-edit.pod:85 ../format/virt-format.pod:82 ../fuse/guestmount.pod:178 ../rescue/virt-rescue.pod:138
|
|
msgid "Add a remote disk. See L<guestfish(1)/ADDING REMOTE STORAGE>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:126 ../cat/virt-cat.pod:87 ../cat/virt-filesystems.pod:131 ../cat/virt-ls.pod:287 ../df/virt-df.pod:98 ../diff/virt-diff.pod:89 ../rescue/virt-rescue.pod:144 ../sysprep/virt-sysprep.pod:74
|
|
msgid "B<-c> URI"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:128 ../cat/virt-cat.pod:89 ../cat/virt-filesystems.pod:133 ../cat/virt-ls.pod:289 ../df/virt-df.pod:100 ../diff/virt-diff.pod:91 ../rescue/virt-rescue.pod:146 ../sysprep/virt-sysprep.pod:76
|
|
msgid "B<--connect> URI"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:130 ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:291 ../df/virt-df.pod:102 ../diff/virt-diff.pod:93 ../edit/virt-edit.pod:105 ../inspector/virt-inspector.pod:77 ../rescue/virt-rescue.pod:148 ../sysprep/virt-sysprep.pod:78 ../tools/virt-list-filesystems:82 ../tools/virt-list-partitions:83 ../tools/virt-tar:130 ../tools/virt-win-reg:131
|
|
msgid ""
|
|
"If using libvirt, connect to the given I<URI>. If omitted, then we connect "
|
|
"to the default libvirt hypervisor."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:133 ../cat/virt-cat.pod:94 ../cat/virt-filesystems.pod:138 ../cat/virt-ls.pod:294 ../df/virt-df.pod:105 ../diff/virt-diff.pod:96 ../rescue/virt-rescue.pod:151 ../sysprep/virt-sysprep.pod:81
|
|
msgid ""
|
|
"If you specify guest block devices directly (I<-a>), then libvirt is not "
|
|
"used at all."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:97 ../cat/virt-filesystems.pod:147 ../cat/virt-ls.pod:303 ../df/virt-df.pod:114 ../diff/virt-diff.pod:117 ../edit/virt-edit.pod:111 ../inspector/virt-inspector.pod:84 ../rescue/virt-rescue.pod:154 ../sysprep/virt-sysprep.pod:84
|
|
msgid "B<-d> guest"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:138 ../cat/virt-cat.pod:99 ../cat/virt-filesystems.pod:149 ../cat/virt-ls.pod:305 ../df/virt-df.pod:116 ../diff/virt-diff.pod:119 ../edit/virt-edit.pod:113 ../inspector/virt-inspector.pod:86 ../rescue/virt-rescue.pod:156 ../sysprep/virt-sysprep.pod:86
|
|
msgid "B<--domain> guest"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:101 ../cat/virt-filesystems.pod:151 ../cat/virt-ls.pod:307 ../df/virt-df.pod:118 ../edit/virt-edit.pod:115 ../inspector/virt-inspector.pod:88 ../rescue/virt-rescue.pod:158 ../sysprep/virt-sysprep.pod:88
|
|
msgid ""
|
|
"Add all the disks from the named libvirt guest. Domain UUIDs can be used "
|
|
"instead of names."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:111 ../cat/virt-filesystems.pod:176 ../cat/virt-ls.pod:324 ../df/virt-df.pod:121 ../diff/virt-diff.pod:140 ../fish/guestfish.pod:236 ../format/virt-format.pod:93 ../fuse/guestmount.pod:217 ../inspector/virt-inspector.pod:98 ../rescue/virt-rescue.pod:161
|
|
msgid "B<--format=raw|qcow2|..>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:145 ../cat/virt-cat.pod:113 ../cat/virt-filesystems.pod:178 ../cat/virt-ls.pod:326 ../df/virt-df.pod:123 ../diff/virt-diff.pod:142 ../edit/virt-edit.pod:142 ../fish/guestfish.pod:238 ../format/virt-format.pod:95 ../fuse/guestmount.pod:219 ../inspector/virt-inspector.pod:100 ../rescue/virt-rescue.pod:163
|
|
msgid "B<--format>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:147 ../cat/virt-cat.pod:115 ../cat/virt-filesystems.pod:180 ../cat/virt-ls.pod:328 ../df/virt-df.pod:125 ../edit/virt-edit.pod:144 ../fish/guestfish.pod:240 ../format/virt-format.pod:97 ../fuse/guestmount.pod:221 ../rescue/virt-rescue.pod:165
|
|
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 "
|
|
"the command line. Using I<--format> with no argument switches back to "
|
|
"auto-detection for subsequent I<-a> options."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:152 ../builder/virt-builder.pod:160 ../cat/virt-cat.pod:120 ../cat/virt-filesystems.pod:185 ../cat/virt-ls.pod:333 ../df/virt-df.pod:130 ../diff/virt-diff.pod:150 ../edit/virt-edit.pod:149 ../fish/guestfish.pod:245 ../fish/guestfish.pod:703 ../format/virt-format.pod:102 ../inspector/virt-inspector.pod:350 ../rescue/virt-rescue.pod:170 ../src/guestfs.pod:4213 ../sysprep/virt-sysprep.pod:170 ../sysprep/virt-sysprep.pod:213
|
|
msgid "For example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../align/virt-alignment-scan.pod:154
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-alignment-scan --format=raw -a disk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:124 ../cat/virt-filesystems.pod:189 ../cat/virt-ls.pod:337 ../df/virt-df.pod:134 ../diff/virt-diff.pod:154 ../edit/virt-edit.pod:153 ../fish/guestfish.pod:249 ../format/virt-format.pod:106 ../rescue/virt-rescue.pod:174 ../sysprep/virt-sysprep.pod:174
|
|
msgid "forces raw format (no auto-detection) for C<disk.img>."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../align/virt-alignment-scan.pod:158
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:128 ../cat/virt-filesystems.pod:193 ../cat/virt-ls.pod:341 ../df/virt-df.pod:138 ../diff/virt-diff.pod:158 ../edit/virt-edit.pod:157 ../fish/guestfish.pod:253 ../format/virt-format.pod:110 ../rescue/virt-rescue.pod:178 ../sysprep/virt-sysprep.pod:178
|
|
msgid ""
|
|
"forces raw format (no auto-detection) for C<disk.img> and reverts to "
|
|
"auto-detection for C<another.img>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:163 ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:344 ../df/virt-df.pod:141 ../diff/virt-diff.pod:161 ../edit/virt-edit.pod:160 ../format/virt-format.pod:113 ../rescue/virt-rescue.pod:181 ../sysprep/virt-sysprep.pod:181
|
|
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 "
|
|
"with malicious guests (CVE-2010-3851)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:167 ../df/virt-df.pod:164
|
|
msgid "B<-P> nr_threads"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:169
|
|
msgid ""
|
|
"Since libguestfs 1.22, virt-alignment-scan is multithreaded and examines "
|
|
"guests in parallel. By default the number of threads to use is chosen based "
|
|
"on the amount of free memory available at the time that virt-alignment-scan "
|
|
"is started. You can force virt-alignment-scan to use at most C<nr_threads> "
|
|
"by using the I<-P> option."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:176 ../df/virt-df.pod:172
|
|
msgid ""
|
|
"Note that I<-P 0> means to autodetect, and I<-P 1> means to use a single "
|
|
"thread."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:179 ../fuse/guestunmount.pod:85 ../resize/virt-resize.pod:509 ../sparsify/virt-sparsify.pod:220 ../sysprep/virt-sysprep.pod:223
|
|
msgid "B<-q>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:181 ../builder/virt-builder.pod:547 ../fuse/guestunmount.pod:87 ../resize/virt-resize.pod:511 ../sparsify/virt-sparsify.pod:222 ../sysprep/virt-sysprep.pod:225
|
|
msgid "B<--quiet>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:183
|
|
msgid ""
|
|
"Don't produce any output. Just set the exit code (see L</EXIT STATUS> "
|
|
"below)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:186 ../cat/virt-filesystems.pod:261 ../df/virt-df.pod:175
|
|
msgid "B<--uuid>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:188 ../df/virt-df.pod:177
|
|
msgid ""
|
|
"Print UUIDs instead of names. This is useful for following a guest even "
|
|
"when the guest is migrated or renamed, or when two guests happen to have the "
|
|
"same name."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:192
|
|
msgid ""
|
|
"This option only applies when listing all libvirt domains (when no I<-a> or "
|
|
"I<-d> options are specified)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:195 ../builder/virt-builder.pod:667 ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:421 ../daemon/guestfsd.pod:62 ../df/virt-df.pod:185 ../diff/virt-diff.pod:202 ../edit/virt-edit.pod:169 ../fish/guestfish.pod:421 ../format/virt-format.pod:155 ../fuse/guestmount.pod:354 ../inspector/virt-inspector.pod:118 ../make-fs/virt-make-fs.pod:199 ../rescue/virt-rescue.pod:240 ../resize/virt-resize.pod:579 ../sparsify/virt-sparsify.pod:226 ../sysprep/virt-sysprep.pod:231
|
|
msgid "B<-v>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:197 ../builder/virt-builder.pod:669 ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:423 ../daemon/guestfsd.pod:64 ../df/virt-df.pod:187 ../diff/virt-diff.pod:204 ../edit/virt-edit.pod:171 ../fish/guestfish.pod:423 ../format/virt-format.pod:157 ../fuse/guestmount.pod:356 ../inspector/virt-inspector.pod:120 ../make-fs/virt-make-fs.pod:201 ../rescue/virt-rescue.pod:242 ../resize/virt-resize.pod:581 ../sparsify/virt-sparsify.pod:228 ../sysprep/virt-sysprep.pod:233
|
|
msgid "B<--verbose>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:199 ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:425 ../daemon/guestfsd.pod:66 ../df/virt-df.pod:189 ../diff/virt-diff.pod:206 ../edit/virt-edit.pod:173 ../format/virt-format.pod:159 ../inspector/virt-inspector.pod:122 ../rescue/virt-rescue.pod:244 ../sparsify/virt-sparsify.pod:230 ../sysprep/virt-sysprep.pod:235
|
|
msgid "Enable verbose messages for debugging."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:201 ../appliance/libguestfs-make-fixed-appliance.pod:107 ../builder/virt-builder.pod:676 ../builder/virt-index-validate.pod:68 ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:273 ../cat/virt-ls.pod:427 ../df/virt-df.pod:191 ../diff/virt-diff.pod:208 ../edit/virt-edit.pod:175 ../fish/guestfish.pod:428 ../format/virt-format.pod:161 ../fuse/guestmount.pod:360 ../fuse/guestunmount.pod:107 ../inspector/virt-inspector.pod:124 ../make-fs/virt-make-fs.pod:205 ../rescue/virt-rescue.pod:246 ../resize/virt-resize.pod:585 ../sparsify/virt-sparsify.pod:232 ../sysprep/virt-sysprep.pod:237 ../test-tool/libguestfs-test-tool.pod:61
|
|
msgid "B<-V>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:203 ../appliance/libguestfs-make-fixed-appliance.pod:109 ../builder/virt-builder.pod:678 ../builder/virt-index-validate.pod:70 ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:275 ../cat/virt-ls.pod:429 ../df/virt-df.pod:193 ../diff/virt-diff.pod:210 ../edit/virt-edit.pod:177 ../fish/guestfish.pod:430 ../format/virt-format.pod:163 ../fuse/guestmount.pod:362 ../fuse/guestunmount.pod:109 ../inspector/virt-inspector.pod:126 ../make-fs/virt-make-fs.pod:207 ../rescue/virt-rescue.pod:248 ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:234 ../sysprep/virt-sysprep.pod:239 ../test-tool/libguestfs-test-tool.pod:63 ../tools/virt-list-filesystems:70 ../tools/virt-list-partitions:71 ../tools/virt-tar:118 ../tools/virt-win-reg:111
|
|
msgid "B<--version>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:205 ../builder/virt-builder.pod:680 ../builder/virt-index-validate.pod:72 ../cat/virt-cat.pod:150 ../cat/virt-filesystems.pod:277 ../cat/virt-ls.pod:431 ../df/virt-df.pod:195 ../diff/virt-diff.pod:212 ../edit/virt-edit.pod:179 ../format/virt-format.pod:165 ../inspector/virt-inspector.pod:128 ../make-fs/virt-make-fs.pod:209 ../rescue/virt-rescue.pod:250 ../resize/virt-resize.pod:589 ../sparsify/virt-sparsify.pod:236 ../sysprep/virt-sysprep.pod:241 ../tools/virt-list-filesystems:72 ../tools/virt-list-partitions:73 ../tools/virt-tar:120 ../tools/virt-win-reg:113
|
|
msgid "Display version number and exit."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:207 ../cat/virt-cat.pod:152 ../cat/virt-filesystems.pod:287 ../cat/virt-ls.pod:433 ../df/virt-df.pod:197 ../diff/virt-diff.pod:214 ../edit/virt-edit.pod:181 ../fish/guestfish.pod:443 ../format/virt-format.pod:177 ../fuse/guestmount.pod:375 ../inspector/virt-inspector.pod:130 ../make-fs/virt-make-fs.pod:211 ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:238 ../sysprep/virt-sysprep.pod:243 ../tools/virt-tar:157
|
|
msgid "B<-x>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:209 ../cat/virt-cat.pod:154 ../cat/virt-filesystems.pod:289 ../cat/virt-ls.pod:435 ../df/virt-df.pod:199 ../diff/virt-diff.pod:216 ../edit/virt-edit.pod:183 ../format/virt-format.pod:179 ../inspector/virt-inspector.pod:132 ../rescue/virt-rescue.pod:263 ../sparsify/virt-sparsify.pod:240 ../sysprep/virt-sysprep.pod:245
|
|
msgid "Enable tracing of libguestfs API calls."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../align/virt-alignment-scan.pod:213
|
|
msgid "RECOMMENDED ALIGNMENT"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:215
|
|
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: textblock
|
|
#: ../align/virt-alignment-scan.pod:224
|
|
msgid ""
|
|
"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:229
|
|
msgid "* 512 bytes"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:231
|
|
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:234
|
|
msgid "* 4 Kbytes"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:236
|
|
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:240
|
|
msgid "* 64 Kbytes"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:242
|
|
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:245
|
|
msgid "* 1 Mbyte"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:247
|
|
msgid "see L</1 MB PARTITION ALIGNMENT> below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:251
|
|
msgid ""
|
|
"Partitions which are not aligned correctly to the underlying storage cause "
|
|
"extra I/O. For example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../align/virt-alignment-scan.pod:254
|
|
#, no-wrap
|
|
msgid ""
|
|
" sect#63\n"
|
|
" +--------------------------+------\n"
|
|
" | guest |\n"
|
|
" | filesystem block |\n"
|
|
" ---+------------------+------+-------------------+-----+---\n"
|
|
" | host block | host block |\n"
|
|
" | | |\n"
|
|
" ---+-------------------------+-------------------------+---\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:263
|
|
msgid ""
|
|
"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:268
|
|
msgid "LINUX HOST BLOCK AND I/O SIZE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:270
|
|
msgid ""
|
|
"New versions of the Linux kernel expose the physical and logical block size, "
|
|
"and minimum and recommended I/O size."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:273
|
|
msgid "For a typical consumer hard drive with 512 byte sectors:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../align/virt-alignment-scan.pod:275
|
|
#, 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
|
|
#: ../align/virt-alignment-scan.pod:286
|
|
msgid "For a new consumer hard drive with 4Kbyte sectors:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../align/virt-alignment-scan.pod:288
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ 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
|
|
#: ../align/virt-alignment-scan.pod:299
|
|
msgid "For a NetApp LUN:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../align/virt-alignment-scan.pod:301
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ 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
|
|
#: ../align/virt-alignment-scan.pod:310
|
|
msgid ""
|
|
"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
|
|
#: ../align/virt-alignment-scan.pod:314
|
|
msgid ""
|
|
"For detailed information about what these numbers mean, see "
|
|
"L<http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/newstorage-iolimits.html>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:317
|
|
msgid ""
|
|
"[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:320
|
|
msgid "1 MB PARTITION ALIGNMENT"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:322
|
|
msgid ""
|
|
"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:325
|
|
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:329
|
|
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:332
|
|
msgid "SETTING ALIGNMENT"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:334
|
|
msgid ""
|
|
"L<virt-resize(1)> 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:340
|
|
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:344
|
|
msgid ""
|
|
"For older versions of Windows, the following NetApp document contains useful "
|
|
"information: L<http://media.netapp.com/documents/tr-3747.pdf>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:347
|
|
msgid ""
|
|
"For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
|
|
"an explicit C<%pre> section that creates aligned partitions using "
|
|
"L<parted(8)>. Do not use the Kickstart C<part> command. The NetApp "
|
|
"document above contains an example."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../align/virt-alignment-scan.pod:352 ../cat/virt-cat.pod:237 ../cat/virt-filesystems.pod:383 ../cat/virt-ls.pod:479 ../df/virt-df.pod:253 ../edit/virt-edit.pod:350 ../inspector/virt-inspector.pod:366 ../rescue/virt-rescue.pod:395 ../resize/virt-resize.pod:744 ../sysprep/virt-sysprep.pod:541 ../tools/virt-list-filesystems:183 ../tools/virt-list-partitions:265 ../tools/virt-tar:294 ../tools/virt-win-reg:779
|
|
msgid "SHELL QUOTING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:354 ../cat/virt-cat.pod:239 ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:481 ../df/virt-df.pod:255 ../edit/virt-edit.pod:352 ../inspector/virt-inspector.pod:368 ../rescue/virt-rescue.pod:397 ../resize/virt-resize.pod:746 ../sysprep/virt-sysprep.pod:543 ../tools/virt-list-filesystems:185 ../tools/virt-list-partitions:267 ../tools/virt-tar:296 ../tools/virt-win-reg:787
|
|
msgid ""
|
|
"Libvirt guest names can contain arbitrary characters, some of which have "
|
|
"meaning to the shell such as C<#> and space. You may need to quote or "
|
|
"escape these characters on the command line. See the shell manual page "
|
|
"L<sh(1)> for details."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../align/virt-alignment-scan.pod:359 ../appliance/libguestfs-make-fixed-appliance.pod:156 ../builder/virt-builder.pod:1817 ../builder/virt-index-validate.pod:76 ../cat/virt-cat.pod:244 ../cat/virt-filesystems.pod:390 ../cat/virt-ls.pod:486 ../daemon/guestfsd.pod:73 ../df/virt-df.pod:260 ../diff/virt-diff.pod:248 ../edit/virt-edit.pod:357 ../fish/guestfish.pod:1382 ../format/virt-format.pod:183 ../fuse/guestmount.pod:405 ../fuse/guestunmount.pod:126 ../inspector/virt-inspector.pod:496 ../resize/virt-resize.pod:751 ../sparsify/virt-sparsify.pod:307 ../sysprep/virt-sysprep.pod:548 ../test-tool/libguestfs-test-tool.pod:172
|
|
msgid "EXIT STATUS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:361
|
|
msgid "This program returns:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:365 ../align/virt-alignment-scan.pod:371 ../align/virt-alignment-scan.pod:377 ../align/virt-alignment-scan.pod:384 ../appliance/libguestfs-make-fixed-appliance.pod:24 ../appliance/libguestfs-make-fixed-appliance.pod:30 ../appliance/libguestfs-make-fixed-appliance.pod:36 ../appliance/libguestfs-make-fixed-appliance.pod:54 ../appliance/libguestfs-make-fixed-appliance.pod:75 ../builder/virt-builder.pod:591 ../builder/virt-builder.pod:595 ../builder/virt-builder.pod:956 ../builder/virt-builder.pod:963 ../builder/virt-builder.pod:967 ../builder/virt-builder.pod:971 ../builder/virt-builder.pod:976 ../builder/virt-builder.pod:980 ../builder/virt-builder.pod:984 ../builder/virt-builder.pod:988 ../builder/virt-builder.pod:992 ../builder/virt-builder.pod:996 ../builder/virt-builder.pod:1000 ../builder/virt-builder.pod:1004 ../builder/virt-builder.pod:1008 ../builder/virt-builder.pod:1012 ../builder/virt-builder.pod:1016 ../builder/virt-builder.pod:1020 ../builder/virt-builder.pod:1024 ../builder/virt-builder.pod:1033 ../builder/virt-builder.pod:1039 ../builder/virt-builder.pod:1203 ../builder/virt-builder.pod:1208 ../builder/virt-builder.pod:1716 ../builder/virt-builder.pod:1720 ../builder/virt-builder.pod:1724 ../builder/virt-index-validate.pod:34 ../builder/virt-index-validate.pod:39 ../builder/virt-index-validate.pod:53 ../builder/virt-index-validate.pod:58 ../cat/virt-cat.pod:183 ../cat/virt-cat.pod:188 ../cat/virt-cat.pod:193 ../cat/virt-cat.pod:204 ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:274 ../edit/virt-edit.pod:279 ../edit/virt-edit.pod:284 ../edit/virt-edit.pod:295 ../edit/virt-edit.pod:299 ../examples/guestfs-faq.pod:188 ../examples/guestfs-faq.pod:194 ../examples/guestfs-faq.pod:198 ../examples/guestfs-faq.pod:203 ../examples/guestfs-faq.pod:806 ../examples/guestfs-faq.pod:812 ../examples/guestfs-faq.pod:851 ../examples/guestfs-faq.pod:857 ../examples/guestfs-faq.pod:922 ../examples/guestfs-faq.pod:926 ../examples/guestfs-faq.pod:930 ../examples/guestfs-faq.pod:934 ../examples/guestfs-faq.pod:942 ../examples/guestfs-faq.pod:947 ../examples/guestfs-performance.pod:107 ../examples/guestfs-performance.pod:113 ../examples/guestfs-performance.pod:118 ../examples/guestfs-performance.pod:245 ../examples/guestfs-performance.pod:250 ../examples/guestfs-performance.pod:255 ../examples/guestfs-performance.pod:374 ../examples/guestfs-performance.pod:378 ../examples/guestfs-performance.pod:384 ../examples/guestfs-performance.pod:390 ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235 ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:265 ../examples/guestfs-recipes.pod:270 ../examples/guestfs-recipes.pod:377 ../examples/guestfs-recipes.pod:381 ../examples/guestfs-recipes.pod:385 ../examples/guestfs-recipes.pod:389 ../examples/guestfs-recipes.pod:393 ../examples/guestfs-testing.pod:69 ../examples/guestfs-testing.pod:76 ../examples/guestfs-testing.pod:87 ../examples/guestfs-testing.pod:96 ../examples/guestfs-testing.pod:205 ../examples/guestfs-testing.pod:209 ../examples/guestfs-testing.pod:213 ../fish/guestfish-actions.pod:684 ../fish/guestfish-actions.pod:690 ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:705 ../fish/guestfish-actions.pod:712 ../fish/guestfish-actions.pod:1937 ../fish/guestfish-actions.pod:1941 ../fish/guestfish-actions.pod:1945 ../fish/guestfish-actions.pod:1949 ../fish/guestfish-actions.pod:1957 ../fish/guestfish-actions.pod:1961 ../fish/guestfish-actions.pod:1965 ../fish/guestfish-actions.pod:1975 ../fish/guestfish-actions.pod:1979 ../fish/guestfish-actions.pod:1983 ../fish/guestfish-actions.pod:2097 ../fish/guestfish-actions.pod:2101 ../fish/guestfish-actions.pod:2106 ../fish/guestfish-actions.pod:2148 ../fish/guestfish-actions.pod:2152 ../fish/guestfish-actions.pod:2157 ../fish/guestfish-actions.pod:2698 ../fish/guestfish-actions.pod:2705 ../fish/guestfish-actions.pod:2712 ../fish/guestfish-actions.pod:3294 ../fish/guestfish-actions.pod:3300 ../fish/guestfish-actions.pod:3308 ../fish/guestfish-actions.pod:3315 ../fish/guestfish-actions.pod:3322 ../fish/guestfish.pod:476 ../fish/guestfish.pod:480 ../fish/guestfish.pod:484 ../fish/guestfish.pod:488 ../fish/guestfish.pod:1332 ../fish/guestfish.pod:1338 ../fish/libguestfs-tools.conf.pod:24 ../fish/libguestfs-tools.conf.pod:28 ../fish/libguestfs-tools.conf.pod:32 ../fish/libguestfs-tools.conf.pod:62 ../fish/libguestfs-tools.conf.pod:67 ../fish/libguestfs-tools.conf.pod:71 ../fish/libguestfs-tools.conf.pod:77 ../golang/examples/guestfs-golang.pod:60 ../golang/examples/guestfs-golang.pod:64 ../guestfs-release-notes.pod:342 ../guestfs-release-notes.pod:346 ../guestfs-release-notes.pod:350 ../guestfs-release-notes.pod:354 ../guestfs-release-notes.pod:358 ../guestfs-release-notes.pod:362 ../guestfs-release-notes.pod:366 ../guestfs-release-notes.pod:371 ../guestfs-release-notes.pod:375 ../guestfs-release-notes.pod:700 ../guestfs-release-notes.pod:704 ../guestfs-release-notes.pod:708 ../guestfs-release-notes.pod:770 ../guestfs-release-notes.pod:774 ../guestfs-release-notes.pod:778 ../guestfs-release-notes.pod:782 ../guestfs-release-notes.pod:786 ../guestfs-release-notes.pod:790 ../guestfs-release-notes.pod:795 ../guestfs-release-notes.pod:799 ../guestfs-release-notes.pod:803 ../guestfs-release-notes.pod:807 ../guestfs-release-notes.pod:1003 ../guestfs-release-notes.pod:1008 ../guestfs-release-notes.pod:1013 ../inspector/virt-inspector.pod:514 ../inspector/virt-inspector.pod:518 ../resize/virt-resize.pod:373 ../resize/virt-resize.pod:377 ../resize/virt-resize.pod:386 ../resize/virt-resize.pod:392 ../sparsify/virt-sparsify.pod:46 ../sparsify/virt-sparsify.pod:53 ../sparsify/virt-sparsify.pod:57 ../sparsify/virt-sparsify.pod:63 ../sparsify/virt-sparsify.pod:68 ../sparsify/virt-sparsify.pod:73 ../sparsify/virt-sparsify.pod:131 ../sparsify/virt-sparsify.pod:135 ../sparsify/virt-sparsify.pod:139 ../sparsify/virt-sparsify.pod:144 ../src/guestfs-actions.pod:965 ../src/guestfs-actions.pod:971 ../src/guestfs-actions.pod:979 ../src/guestfs-actions.pod:986 ../src/guestfs-actions.pod:993 ../src/guestfs-actions.pod:3131 ../src/guestfs-actions.pod:3135 ../src/guestfs-actions.pod:3139 ../src/guestfs-actions.pod:3143 ../src/guestfs-actions.pod:3151 ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3159 ../src/guestfs-actions.pod:3169 ../src/guestfs-actions.pod:3173 ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3352 ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:3361 ../src/guestfs-actions.pod:3422 ../src/guestfs-actions.pod:3426 ../src/guestfs-actions.pod:3431 ../src/guestfs-actions.pod:4297 ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:4311 ../src/guestfs-actions.pod:5182 ../src/guestfs-actions.pod:5188 ../src/guestfs-actions.pod:5196 ../src/guestfs-actions.pod:5203 ../src/guestfs-actions.pod:5210 ../src/guestfs.pod:398 ../src/guestfs.pod:403 ../src/guestfs.pod:408 ../src/guestfs.pod:412 ../src/guestfs.pod:417 ../src/guestfs.pod:421 ../src/guestfs.pod:426 ../src/guestfs.pod:431 ../src/guestfs.pod:782 ../src/guestfs.pod:789 ../src/guestfs.pod:795 ../src/guestfs.pod:801 ../src/guestfs.pod:807 ../src/guestfs.pod:812 ../src/guestfs.pod:818 ../src/guestfs.pod:1046 ../src/guestfs.pod:1050 ../src/guestfs.pod:1056 ../src/guestfs.pod:1139 ../src/guestfs.pod:1144 ../src/guestfs.pod:1148 ../src/guestfs.pod:1154 ../src/guestfs.pod:1158 ../src/guestfs.pod:1162 ../src/guestfs.pod:1167 ../src/guestfs.pod:1712 ../src/guestfs.pod:1716 ../src/guestfs.pod:1720 ../src/guestfs.pod:1725 ../src/guestfs.pod:1733 ../src/guestfs.pod:1752 ../src/guestfs.pod:1760 ../src/guestfs.pod:1777 ../src/guestfs.pod:1782 ../src/guestfs.pod:1786 ../src/guestfs.pod:1975 ../src/guestfs.pod:1979 ../src/guestfs.pod:1983 ../src/guestfs.pod:1987 ../src/guestfs.pod:1991 ../src/guestfs.pod:1995 ../src/guestfs.pod:2651 ../src/guestfs.pod:2656 ../src/guestfs.pod:2660 ../src/guestfs.pod:2764 ../src/guestfs.pod:2769 ../src/guestfs.pod:2773 ../src/guestfs.pod:2783 ../src/guestfs.pod:3214 ../src/guestfs.pod:3219 ../src/guestfs.pod:3225 ../src/guestfs.pod:3233 ../src/guestfs.pod:3750 ../src/guestfs.pod:3756 ../src/guestfs.pod:3761 ../src/guestfs.pod:3767 ../src/guestfs.pod:4162 ../src/guestfs.pod:4166 ../src/guestfs.pod:4170 ../src/guestfs.pod:4174 ../src/guestfs.pod:4178 ../src/guestfs.pod:4182 ../src/guestfs.pod:4186 ../src/guestfs.pod:4433 ../src/guestfs.pod:4438 ../src/guestfs.pod:4442 ../src/guestfs.pod:4446 ../src/guestfs.pod:4450 ../src/guestfs.pod:4464 ../src/guestfs.pod:4468 ../src/guestfs.pod:4473 ../src/guestfs.pod:4477 ../sysprep/virt-sysprep.pod:297 ../sysprep/virt-sysprep.pod:301 ../sysprep/virt-sysprep.pod:305 ../sysprep/virt-sysprep.pod:309 ../sysprep/virt-sysprep.pod:324 ../sysprep/virt-sysprep.pod:328 ../sysprep/virt-sysprep.pod:332 ../sysprep/virt-sysprep.pod:336 ../sysprep/virt-sysprep.pod:340 ../sysprep/virt-sysprep.pod:393 ../sysprep/virt-sysprep.pod:405 ../sysprep/virt-sysprep.pod:409 ../sysprep/virt-sysprep.pod:417 ../sysprep/virt-sysprep.pod:423 ../tools/virt-win-reg:196 ../tools/virt-win-reg:201 ../tools/virt-win-reg:207 ../tools/virt-win-reg:756 ../tools/virt-win-reg:762 ../tools/virt-win-reg:768
|
|
msgid "*"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:367
|
|
msgid "0"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:369
|
|
msgid "successful exit, all partitions are aligned E<ge> 64K for best performance"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:373 ../src/guestfs.pod:2254
|
|
msgid "1"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:375
|
|
msgid "an error scanning the disk image or guest"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:379 ../src/guestfs.pod:2258
|
|
msgid "2"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:381
|
|
msgid ""
|
|
"successful exit, some partitions have alignment E<lt> 64K which can result "
|
|
"in poor performance on high end network storage"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../align/virt-alignment-scan.pod:386 ../src/guestfs.pod:2262
|
|
msgid "3"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:388
|
|
msgid ""
|
|
"successful exit, some partitions have alignment E<lt> 4K which can result in "
|
|
"poor performance on most hypervisors"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../align/virt-alignment-scan.pod:393 ../appliance/libguestfs-make-fixed-appliance.pod:166 ../builder/virt-builder.pod:1822 ../builder/virt-index-validate.pod:81 ../cat/virt-cat.pod:249 ../cat/virt-filesystems.pod:395 ../cat/virt-ls.pod:491 ../daemon/guestfsd.pod:117 ../df/virt-df.pod:265 ../diff/virt-diff.pod:253 ../edit/virt-edit.pod:362 ../erlang/examples/guestfs-erlang.pod:97 ../examples/guestfs-examples.pod:57 ../examples/guestfs-faq.pod:1294 ../examples/guestfs-performance.pod:559 ../examples/guestfs-recipes.pod:651 ../examples/guestfs-testing.pod:386 ../fish/guestfish.pod:1603 ../fish/libguestfs-tools.conf.pod:90 ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41 ../format/virt-format.pod:187 ../fuse/guestmount.pod:410 ../fuse/guestunmount.pod:149 ../golang/examples/guestfs-golang.pod:78 ../guestfs-release-notes.pod:2634 ../inspector/virt-inspector.pod:501 ../java/examples/guestfs-java.pod:81 ../lua/examples/guestfs-lua.pod:138 ../make-fs/virt-make-fs.pod:217 ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:40 ../python/examples/guestfs-python.pod:53 ../rescue/virt-rescue.pod:421 ../resize/virt-resize.pod:756 ../ruby/examples/guestfs-ruby.pod:36 ../sparsify/virt-sparsify.pod:339 ../src/guestfs.pod:4718 ../sysprep/virt-sysprep.pod:552 ../test-tool/libguestfs-test-tool.pod:182 ../tools/virt-list-filesystems:190 ../tools/virt-list-partitions:272 ../tools/virt-tar:301 ../tools/virt-win-reg:792
|
|
msgid "SEE ALSO"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:395
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
|
|
"L<virt-resize(1)>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../align/virt-alignment-scan.pod:402 ../builder/virt-builder.pod:1840 ../builder/virt-index-validate.pod:86 ../cat/virt-cat.pod:258 ../cat/virt-filesystems.pod:406 ../cat/virt-ls.pod:501 ../daemon/guestfsd.pod:122 ../df/virt-df.pod:273 ../diff/virt-diff.pod:263 ../edit/virt-edit.pod:373 ../format/virt-format.pod:197 ../guestfs-release-notes.pod:2645 ../make-fs/virt-make-fs.pod:231 ../rescue/virt-rescue.pod:431 ../resize/virt-resize.pod:779 ../sparsify/virt-sparsify.pod:352 ../tools/virt-list-filesystems:202 ../tools/virt-list-partitions:283 ../tools/virt-tar:315 ../tools/virt-win-reg:806
|
|
msgid "AUTHOR"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:404 ../builder/virt-builder.pod:1842 ../builder/virt-index-validate.pod:88 ../cat/virt-cat.pod:260 ../cat/virt-filesystems.pod:408 ../cat/virt-ls.pod:503 ../daemon/guestfsd.pod:124 ../df/virt-df.pod:275 ../diff/virt-diff.pod:265 ../edit/virt-edit.pod:375 ../format/virt-format.pod:199 ../inspector/virt-inspector.pod:516 ../make-fs/virt-make-fs.pod:233 ../rescue/virt-rescue.pod:433 ../resize/virt-resize.pod:781 ../sparsify/virt-sparsify.pod:354 ../sysprep/virt-sysprep.pod:570 ../tools/virt-list-filesystems:204 ../tools/virt-list-partitions:285 ../tools/virt-tar:317 ../tools/virt-win-reg:808
|
|
msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../align/virt-alignment-scan.pod:406 ../appliance/libguestfs-make-fixed-appliance.pod:178 ../builder/virt-builder.pod:1844 ../builder/virt-index-validate.pod:90 ../cat/virt-cat.pod:262 ../cat/virt-filesystems.pod:410 ../cat/virt-ls.pod:505 ../daemon/guestfsd.pod:126 ../df/virt-df.pod:277 ../diff/virt-diff.pod:267 ../edit/virt-edit.pod:377 ../erlang/examples/guestfs-erlang.pod:116 ../examples/guestfs-examples.pod:75 ../examples/guestfs-faq.pod:1304 ../examples/guestfs-performance.pod:575 ../examples/guestfs-recipes.pod:670 ../examples/guestfs-testing.pod:397 ../fish/guestfish.pod:1638 ../fish/libguestfs-tools.conf.pod:102 ../fish/virt-copy-in.pod:64 ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55 ../format/virt-format.pod:201 ../fuse/guestmount.pod:428 ../fuse/guestunmount.pod:162 ../golang/examples/guestfs-golang.pod:97 ../guestfs-release-notes.pod:2649 ../inspector/virt-inspector.pod:524 ../java/examples/guestfs-java.pod:100 ../lua/examples/guestfs-lua.pod:157 ../make-fs/virt-make-fs.pod:235 ../ocaml/examples/guestfs-ocaml.pod:97 ../perl/examples/guestfs-perl.pod:59 ../python/examples/guestfs-python.pod:71 ../rescue/virt-rescue.pod:435 ../resize/virt-resize.pod:783 ../ruby/examples/guestfs-ruby.pod:54 ../sparsify/virt-sparsify.pod:356 ../src/guestfs.pod:4778 ../sysprep/virt-sysprep.pod:574 ../test-tool/libguestfs-test-tool.pod:192 ../tools/virt-list-filesystems:206 ../tools/virt-list-partitions:287 ../tools/virt-tar:319 ../tools/virt-win-reg:810
|
|
msgid "COPYRIGHT"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../align/virt-alignment-scan.pod:408
|
|
msgid "Copyright (C) 2011 Red Hat Inc."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:5
|
|
msgid "libguestfs-make-fixed-appliance - Make a \"fixed appliance\" for libguestfs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" libguestfs-make-fixed-appliance [--options] OUTPUTDIR\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" libguestfs-make-fixed-appliance [--options] --xz\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:15
|
|
msgid ""
|
|
"libguestfs-make-fixed-appliance lets you make a pre-built binary appliance "
|
|
"for libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:18
|
|
msgid "B<Note that ordinary users should not need to run this tool>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:20
|
|
msgid "Some reasons why you I<might> want to use this include:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:26
|
|
msgid ""
|
|
"You want to make a self-contained libguestfs appliance that can be copied to "
|
|
"another machine or platform that doesn't support L<supermin(1)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:32
|
|
msgid ""
|
|
"You have multiple users on the same machine and want to avoid the storage "
|
|
"duplication and start-up overhead of having multiple cached copies of the "
|
|
"appliance."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:38
|
|
msgid ""
|
|
"You want to have very predictable performance from libguestfs (see "
|
|
"L<guestfs-performance(1)>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:43
|
|
msgid ""
|
|
"For deeper understanding of why you might need this tool, read the section "
|
|
"L</FIXED APPLIANCE> below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:46
|
|
msgid ""
|
|
"Instead of running this tool, you can download fixed appliances from "
|
|
"L<http://libguestfs.org/download/binaries/appliance/>. These appliances "
|
|
"were made using this tool."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:50
|
|
msgid "There are two ways to use this tool."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:56
|
|
msgid "Specify an output directory, for example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:58
|
|
#, no-wrap
|
|
msgid ""
|
|
" libguestfs-make-fixed-appliance /usr/local/lib/guestfs/appliance\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:60
|
|
msgid ""
|
|
"The output directory is created if it does not exist. Four files are "
|
|
"created in this directory:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:63
|
|
#, no-wrap
|
|
msgid ""
|
|
" <OUTPUTDIR>/kernel\n"
|
|
" <OUTPUTDIR>/initrd\n"
|
|
" <OUTPUTDIR>/root\n"
|
|
" <OUTPUTDIR>/README.fixed\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:68
|
|
msgid ""
|
|
"Note that C<I<OUTPUTDIR>/root> is a sparse file, so take care when copying "
|
|
"it."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:71
|
|
msgid ""
|
|
"You can then run libguestfs (possibly after copying this directory to "
|
|
"another machine) by setting the environment variable LIBGUESTFS_PATH to "
|
|
"C<OUTPUTDIR>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:77
|
|
msgid ""
|
|
"The alternative method is to use the I<--xz> option to create a compressed "
|
|
"tarball:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:80
|
|
#, no-wrap
|
|
msgid ""
|
|
" libguestfs-make-fixed-appliance --xz\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:82
|
|
msgid "This creates a tarball in the I<current> directory called:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:84
|
|
#, no-wrap
|
|
msgid ""
|
|
" appliance-<VERSION>.tar.xz\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:86
|
|
msgid ""
|
|
"(where C<VERSION> is the version of libguestfs). The tarball contains the "
|
|
"four files:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:89
|
|
#, no-wrap
|
|
msgid ""
|
|
" appliance/kernel\n"
|
|
" appliance/initrd\n"
|
|
" appliance/root\n"
|
|
" appliance/README.fixed\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:94
|
|
msgid "Note that C<appliance/root> is a sparse file, so take care when copying it."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:105 ../test-tool/libguestfs-test-tool.pod:42
|
|
msgid "Display short usage information and exit."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:111
|
|
msgid "Display the version number and exit."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:113
|
|
msgid "B<--xz>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:115
|
|
msgid ""
|
|
"Instead of creating the appliance in an output directory, create a "
|
|
"compressed tarball of the appliance in the current directory called "
|
|
"C<appliance-I<VERSION>.tar.xz> where C<VERSION> is the version of "
|
|
"libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:120
|
|
msgid ""
|
|
"Using I<--xz> can take some time. If working normally, the tool is "
|
|
"completely silent when it is running."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:125
|
|
msgid "FIXED APPLIANCE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:127
|
|
msgid ""
|
|
"When libguestfs (or libguestfs tools) are run, they search a path looking "
|
|
"for an appliance. The path is built into libguestfs, or can be set using "
|
|
"the C<LIBGUESTFS_PATH> environment variable."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:131
|
|
msgid ""
|
|
"Normally a supermin appliance is located on this path (see "
|
|
"L<supermin(1)/SUPERMIN APPLIANCE>). libguestfs reconstructs this into a "
|
|
"full appliance by running C<supermin --build>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:135
|
|
msgid ""
|
|
"However, a simpler \"fixed appliance\" can also be used. libguestfs detects "
|
|
"this by looking for a directory on the path containing four files called "
|
|
"C<kernel>, C<initrd>, C<root> and C<README.fixed> (note the C<README.fixed> "
|
|
"file must be present as well)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:140
|
|
msgid ""
|
|
"If the fixed appliance is found, libguestfs skips supermin entirely and just "
|
|
"runs qemu with the kernel, initrd and root disk from the fixed appliance."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:144
|
|
msgid ""
|
|
"Thus the fixed appliance can be used when a platform or Linux distro does "
|
|
"not support supermin. You build the fixed appliance on a platform that does "
|
|
"support supermin, and copy it over, and use that to run libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:149
|
|
msgid "LICENSING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:151
|
|
msgid ""
|
|
"The fixed appliance is a complete Linux binary distro. If you distribute "
|
|
"it, you may need to distribute corresponding source files to remain in legal "
|
|
"compliance with the licenses of the software in the appliance (such as the "
|
|
"GNU General Public License)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:158
|
|
msgid ""
|
|
"libguestfs-make-fixed-appliance returns I<0> if the appliance was built "
|
|
"without errors."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:161 ../builder/virt-builder.pod:1780 ../edit/virt-edit.pod:337 ../fish/guestfish.pod:1387 ../fuse/guestunmount.pod:115 ../rescue/virt-rescue.pod:390 ../sparsify/virt-sparsify.pod:312 ../src/guestfs.pod:4610 ../test-tool/libguestfs-test-tool.pod:177
|
|
msgid "ENVIRONMENT VARIABLES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:163 ../test-tool/libguestfs-test-tool.pod:179
|
|
msgid ""
|
|
"For the full list of environment variables which may affect libguestfs, "
|
|
"please see the L<guestfs(3)> manual page."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:168
|
|
msgid ""
|
|
"L<guestfs(3)>, L<supermin(1)>, L<xz(1)>, L<http://libguestfs.org/>, "
|
|
"L<http://qemu.org/>."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:174 ../erlang/examples/guestfs-erlang.pod:112 ../examples/guestfs-examples.pod:71 ../examples/guestfs-faq.pod:1300 ../examples/guestfs-performance.pod:571 ../examples/guestfs-recipes.pod:666 ../examples/guestfs-testing.pod:393 ../fish/guestfish.pod:1634 ../fish/libguestfs-tools.conf.pod:98 ../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:424 ../fuse/guestunmount.pod:158 ../golang/examples/guestfs-golang.pod:93 ../inspector/virt-inspector.pod:510 ../java/examples/guestfs-java.pod:96 ../lua/examples/guestfs-lua.pod:153 ../ocaml/examples/guestfs-ocaml.pod:93 ../perl/examples/guestfs-perl.pod:55 ../python/examples/guestfs-python.pod:67 ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:4774 ../sysprep/virt-sysprep.pod:568 ../test-tool/libguestfs-test-tool.pod:188
|
|
msgid "AUTHORS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:176 ../erlang/examples/guestfs-erlang.pod:114 ../examples/guestfs-examples.pod:73 ../examples/guestfs-faq.pod:1302 ../examples/guestfs-performance.pod:573 ../examples/guestfs-recipes.pod:668 ../examples/guestfs-testing.pod:395 ../fish/guestfish.pod:1636 ../fish/libguestfs-tools.conf.pod:100 ../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:426 ../fuse/guestunmount.pod:160 ../golang/examples/guestfs-golang.pod:95 ../java/examples/guestfs-java.pod:98 ../lua/examples/guestfs-lua.pod:155 ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:57 ../python/examples/guestfs-python.pod:69 ../ruby/examples/guestfs-ruby.pod:52 ../src/guestfs.pod:4776 ../test-tool/libguestfs-test-tool.pod:190
|
|
msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../appliance/libguestfs-make-fixed-appliance.pod:180 ../cat/virt-ls.pod:507 ../daemon/guestfsd.pod:128 ../df/virt-df.pod:279 ../diff/virt-diff.pod:269 ../edit/virt-edit.pod:379 ../examples/guestfs-recipes.pod:672 ../fish/guestfish.pod:1640 ../fuse/guestmount.pod:430 ../guestfs-release-notes.pod:2651 ../rescue/virt-rescue.pod:437 ../src/guestfs.pod:4780 ../test-tool/libguestfs-test-tool.pod:194 ../tools/virt-list-partitions:289
|
|
msgid "Copyright (C) 2009-2014 Red Hat Inc."
|
|
msgstr ""
|
|
|
|
#. type: =end
|
|
#: ../builder/virt-builder.pod:3 ../builder/virt-builder.pod:8 ../examples/guestfs-faq.pod:248 ../examples/guestfs-faq.pod:253 ../examples/guestfs-faq.pod:906 ../examples/guestfs-faq.pod:911 ../examples/guestfs-faq.pod:1063 ../examples/guestfs-faq.pod:1068 ../src/guestfs.pod:1398 ../src/guestfs.pod:1403 ../src/guestfs.pod:3360 ../src/guestfs.pod:3365
|
|
msgid "html"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:5
|
|
#, no-wrap
|
|
msgid ""
|
|
"<img src=\"virt-builder.svg\" width=\"250\"\n"
|
|
" style=\"float: right; clear: right;\" />\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:12
|
|
msgid "virt-builder - Build virtual machine images quickly"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:16
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder os-version\n"
|
|
" [-o|--output DISKIMAGE] [--size SIZE] [--format raw|qcow2]\n"
|
|
" [--attach ISOFILE]\n"
|
|
" [--root-password SELECTOR]\n"
|
|
" [--hostname HOSTNAME]\n"
|
|
" [--timezone TIMEZONE]\n"
|
|
" [--update]\n"
|
|
" [--install PKG,[PKG...]]\n"
|
|
" [--mkdir DIR]\n"
|
|
" [--write FILE:CONTENT]\n"
|
|
" [--upload FILE:DEST]\n"
|
|
" [--link TARGET:LINK[:LINK]]\n"
|
|
" [--edit FILE:EXPR]\n"
|
|
" [--delete FILE] [--scrub FILE]\n"
|
|
" [--selinux-relabel]\n"
|
|
" [--run SCRIPT] [--run-command 'CMD ARGS ...']\n"
|
|
" [--firstboot SCRIPT] [--firstboot-command 'CMD ARGS ...']\n"
|
|
" [--firstboot-install PKG,[PKG...]]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:35
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder -l|--list [--long] [--list-format short|long|json]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:37
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder --notes os-version\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:39 ../builder/virt-builder.pod:1542
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder --print-cache\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:41 ../builder/virt-builder.pod:1550
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder --cache-all-templates\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:43 ../builder/virt-builder.pod:1546
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder --delete-cache\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:45
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder --get-kernel DISKIMAGE\n"
|
|
" [--format raw|qcow2] [--output OUTPUTDIR]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:50
|
|
msgid ""
|
|
"Virt-builder is a tool for quickly building new virtual machines. You can "
|
|
"build a variety of VMs for local or cloud use, usually within a few minutes "
|
|
"or less. Virt-builder also has many ways to customize these VMs. "
|
|
"Everything is run from the command line and nothing requires root "
|
|
"privileges, so automation and scripting is simple."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:56
|
|
msgid ""
|
|
"Note that virt-builder does not install guests from scratch. It takes "
|
|
"cleanly prepared, digitally signed OS templates and customizes them. This "
|
|
"approach is used because it is much faster, but if you need to do fresh "
|
|
"installs you may want to look at L<virt-install(1)> and L<oz-install(1)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:62
|
|
msgid ""
|
|
"The easiest way to get started is by looking at the examples in the next "
|
|
"section."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../builder/virt-builder.pod:65 ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:47 ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41 ../fish/guestfish.pod:1099 ../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:84 ../tools/virt-tar:49
|
|
msgid "EXAMPLES"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../builder/virt-builder.pod:67
|
|
msgid "List the virtual machines available"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:69
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder --list\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:71
|
|
msgid ""
|
|
"will list out the operating systems available to install. A selection of "
|
|
"freely redistributable OSes is available as standard. You can add your own "
|
|
"too (see below)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:75
|
|
msgid ""
|
|
"After choosing a guest from the list, you may want to see if there are any "
|
|
"installation notes:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:78
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder --notes fedora-20\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../builder/virt-builder.pod:80
|
|
msgid "Build a virtual machine"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:82
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder fedora-20\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:84
|
|
msgid ""
|
|
"will build a Fedora 20 image. This will have all default configuration "
|
|
"(minimal size, no user accounts, random root password, only the bare minimum "
|
|
"installed software, etc.)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:88
|
|
msgid "You I<do not> need to run this command as root."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:90
|
|
msgid ""
|
|
"The first time this runs it has to download the template over the network, "
|
|
"but this gets cached (see L</CACHING>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:93
|
|
msgid ""
|
|
"The name of the output file is derived from the template name, so above it "
|
|
"will be C<fedora-20.img>. You can change the output filename using the "
|
|
"I<-o> option:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:97
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder fedora-20 -o mydisk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:99
|
|
msgid ""
|
|
"You can also use the I<-o> option to write to existing devices or logical "
|
|
"volumes."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:102
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder fedora-20 --format qcow2\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:104
|
|
msgid "As above, but write the output in qcow2 format to C<fedora-20.qcow2>."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:106
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder fedora-20 --size 20G\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:108
|
|
msgid ""
|
|
"As above, but the output size will be 20 GB. The guest OS is resized as it "
|
|
"is copied to the output (automatically, using L<virt-resize(1)>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../builder/virt-builder.pod:112
|
|
msgid "Setting the root password"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:114
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder fedora-20 --root-password file:/tmp/rootpw\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:116
|
|
msgid ""
|
|
"Create a Fedora 20 image. The root password is taken from the file "
|
|
"C</tmp/rootpw>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:119 ../builder/virt-builder.pod:558
|
|
msgid ""
|
|
"Note if you I<don't> set I<--root-password> then the guest is given a "
|
|
"I<random> root password."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:122
|
|
msgid "You can also create user accounts. See L</USERS AND PASSWORDS> below."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../builder/virt-builder.pod:124
|
|
msgid "Set the hostname"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:126
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder fedora-20 --hostname virt.example.com\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:128
|
|
msgid "Set the hostname to C<virt.example.com>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../builder/virt-builder.pod:130
|
|
msgid "Installing software"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:132
|
|
msgid ""
|
|
"To install packages from the ordinary (guest) software repository (eg. yum "
|
|
"or apt):"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:135
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder fedora-20 --install \"inkscape,@Xfce Desktop\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:137
|
|
msgid ""
|
|
"(In Fedora, C<@> is used to install groups of packages. On Debian you would "
|
|
"install a meta-package instead.)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:140
|
|
msgid "To update the core packages to the latest version:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:142
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder debian-7 --update\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:144
|
|
msgid ""
|
|
"For guests which use SELinux, like Fedora and Red Hat Enterprise Linux, you "
|
|
"may need to do SELinux relabelling after installing or updating packages "
|
|
"(see L</SELINUX> below):"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:148
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder fedora-20 --update --selinux-relabel\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../builder/virt-builder.pod:150
|
|
msgid "Customizing the installation"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:152
|
|
msgid ""
|
|
"There are many options that let you customize the installation. These "
|
|
"include: I<--run>/I<--run-command>, which run a shell script or command "
|
|
"while the disk image is being generated and lets you add or edit files that "
|
|
"go into the disk image. I<--firstboot>/I<--firstboot-command>, which let "
|
|
"you add scripts/commands that are run the first time the guest boots. "
|
|
"I<--edit> to edit files. I<--upload> to upload files."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:162
|
|
#, no-wrap
|
|
msgid ""
|
|
" cat <<'EOF' > /tmp/yum-update.sh\n"
|
|
" yum -y update\n"
|
|
" EOF\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:166
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder fedora-20 --firstboot /tmp/yum-update.sh\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:168
|
|
msgid "or simply:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:170
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder fedora-20 --firstboot-command 'yum -y update'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:172
|
|
msgid ""
|
|
"which makes the L<yum(8)> C<update> command run once the first time the "
|
|
"guest boots."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:175
|
|
msgid "Or:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:177
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder fedora-20 --edit '/etc/yum.conf: s/gpgcheck=1/gpgcheck=0/'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:179
|
|
msgid ""
|
|
"which edits C</etc/yum.conf> inside the disk image (during disk image "
|
|
"creation, long before boot)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:182
|
|
msgid "You can combine these options, and have multiple options of all types."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:190 ../builder/virt-index-validate.pod:66 ../resize/virt-resize.pod:274 ../sparsify/virt-sparsify.pod:114
|
|
msgid "Display help."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:192
|
|
msgid "B<--attach> ISOFILE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:194
|
|
msgid ""
|
|
"During the customization phase, the given disk is attached to the libguestfs "
|
|
"appliance. This is used to provide extra software repositories or other "
|
|
"data for customization."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:198
|
|
msgid ""
|
|
"You probably want to ensure the volume(s) or filesystems in the attached "
|
|
"disks are labelled (or use an ISO volume name) so that you can mount them by "
|
|
"label in your run-scripts:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:202
|
|
#, no-wrap
|
|
msgid ""
|
|
" mkdir /tmp/mount\n"
|
|
" mount LABEL=EXTRA /tmp/mount\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:205
|
|
msgid ""
|
|
"You can have multiple I<--attach> options, and the format can be any disk "
|
|
"format (not just an ISO)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:208
|
|
msgid ""
|
|
"See also: I<--run>, L</Installing packages at build time from a side "
|
|
"repository>, L<genisoimage(1)>, L<virt-make-fs(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:212
|
|
msgid "B<--attach-format> FORMAT"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:214
|
|
msgid ""
|
|
"Specify the disk format for the next I<--attach> option. The C<FORMAT> is "
|
|
"usually C<raw> or C<qcow2>. Use C<raw> for ISOs."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:217
|
|
msgid "B<--cache> DIR"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:219
|
|
msgid "B<--no-cache>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:221
|
|
msgid ""
|
|
"I<--cache> DIR sets the directory to use/check for cached template files. "
|
|
"If not set, defaults to either C<$XDG_CACHE_HOME/virt-builder/> or "
|
|
"C<$HOME/.cache/virt-builder/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:225
|
|
msgid "I<--no-cache> disables template caching."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:227
|
|
msgid "B<--cache-all-templates>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:229
|
|
msgid "Download all templates to the cache and then exit. See L</CACHING>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:231
|
|
msgid ""
|
|
"Note this doesn't cache everything. More templates might be uploaded. Also "
|
|
"this doesn't cache packages (the I<--install>, I<--update> options)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:234
|
|
msgid "B<--check-signature>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:236
|
|
msgid "B<--no-check-signature>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:238
|
|
msgid ""
|
|
"Check/don't check the digital signature of the OS template. The default is "
|
|
"to check the signature and exit if it is not correct. Using "
|
|
"I<--no-check-signature> bypasses this check."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:242
|
|
msgid "See also I<--fingerprint>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:244
|
|
msgid "B<--curl> CURL"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:246
|
|
msgid ""
|
|
"Specify an alternate L<curl(1)> binary. You can also use this to add curl "
|
|
"parameters, for example to disable https certificate checks:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:249
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder --curl \"curl --insecure\" [...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:251
|
|
msgid "B<--delete> FILE"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:253
|
|
msgid "B<--delete> DIR"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:255
|
|
msgid ""
|
|
"Delete a file from the guest. Or delete a directory (and all its contents, "
|
|
"recursively)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:258
|
|
msgid "See also: I<--upload>, I<--scrub>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:260
|
|
msgid "B<--delete-cache>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:262
|
|
msgid "Delete the template cache. See L</CACHING>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:264
|
|
msgid "B<--no-delete-on-failure>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:266
|
|
msgid ""
|
|
"Don't delete the output file on failure to build. You can use this to debug "
|
|
"failures to run scripts. See L</DEBUGGING BUILDS> for ways to debug images."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:270
|
|
msgid ""
|
|
"The default is to delete the output file if virt-builder fails (or, for "
|
|
"example, some script that it runs fails)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:273
|
|
msgid "B<--edit> FILE:EXPR"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:275
|
|
msgid "Edit C<FILE> using the Perl expression C<EXPR>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:277 ../edit/virt-edit.pod:135
|
|
msgid ""
|
|
"Be careful to properly quote the expression to prevent it from being altered "
|
|
"by the shell."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:280 ../edit/virt-edit.pod:138
|
|
msgid "Note that this option is only available when Perl 5 is installed."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:282
|
|
msgid "See L<virt-edit(1)/NON-INTERACTIVE EDITING>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:284
|
|
msgid "B<--fingerprint> 'AAAA BBBB ...'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:286
|
|
msgid ""
|
|
"Check that the index and templates are signed by the key with the given "
|
|
"fingerprint. (The fingerprint is a long string, usually written as 10 "
|
|
"groups of 4 hexadecimal digits)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:290
|
|
msgid ""
|
|
"You can give this option multiple times. If you have multiple source URLs, "
|
|
"then you can have either no fingerprint, one fingerprint or multiple "
|
|
"fingerprints. If you have multiple, then each must correspond 1-1 with a "
|
|
"source URL."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:295
|
|
msgid "B<--firstboot> SCRIPT"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:297
|
|
msgid "B<--firstboot-command> 'CMD ARGS ...'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:299
|
|
msgid ""
|
|
"Install C<SCRIPT> inside the guest, so that when the guest first boots up, "
|
|
"the script runs (as root, late in the boot process)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:302
|
|
msgid "The script is automatically chmod +x after installation in the guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:304
|
|
msgid ""
|
|
"The alternative version I<--firstboot-command> is the same, but it "
|
|
"conveniently wraps the command up in a single line script for you."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:307
|
|
msgid ""
|
|
"You can have multiple I<--firstboot> and I<--firstboot-command> options. "
|
|
"They run in the same order that they appear on the command line."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:311
|
|
msgid "See also I<--run>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:313
|
|
msgid "B<--firstboot-install> PKG[,PKG,...]"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:315
|
|
msgid ""
|
|
"Install the named packages (a comma-separated list). These are installed "
|
|
"when the guest first boots using the guest's package manager (eg. apt, yum, "
|
|
"etc.) and the guest's network connection."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:319 ../builder/virt-builder.pod:366
|
|
msgid ""
|
|
"For an overview on the different ways to install packages, see L</INSTALLING "
|
|
"PACKAGES>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:322 ../sparsify/virt-sparsify.pod:182
|
|
msgid "B<--format> qcow2"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:324 ../resize/virt-resize.pod:400 ../sparsify/virt-sparsify.pod:180 ../tools/virt-list-filesystems:92 ../tools/virt-list-partitions:93 ../tools/virt-tar:140 ../tools/virt-win-reg:141
|
|
msgid "B<--format> raw"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:326
|
|
msgid "For ordinary builds, this selects the output format. The default is I<raw>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:328
|
|
msgid "With I<--get-kernel> this specifies the input format."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:330
|
|
msgid "B<--get-kernel> IMAGE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:332
|
|
msgid ""
|
|
"This option extracts the kernel and initramfs from a previously built disk "
|
|
"image called C<IMAGE> (in fact it works for any VM disk image, not just ones "
|
|
"built using virt-builder)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:336
|
|
msgid ""
|
|
"The kernel and initramfs are written to the current directory, unless you "
|
|
"also specify the I<--output> C<outputdir> B<directory> name."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:339
|
|
msgid ""
|
|
"The format of the disk image is automatically detected unless you specify it "
|
|
"by using the I<--format> option."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:342
|
|
msgid ""
|
|
"In the case where the guest contains multiple kernels, the one with the "
|
|
"highest version number is chosen. To extract arbitrary kernels from the "
|
|
"disk image, see L<guestfish(1)>. To extract the entire C</boot> directory "
|
|
"of a guest, see L<virt-copy-out(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:347
|
|
msgid "B<--gpg> GPG"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:349
|
|
msgid ""
|
|
"Specify an alternate L<gpg(1)> (GNU Privacy Guard) binary. You can also use "
|
|
"this to add gpg parameters, for example to specify an alternate home "
|
|
"directory:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:353
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder --gpg \"gpg --homedir /tmp\" [...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:355
|
|
msgid "B<--hostname> HOSTNAME"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:357
|
|
msgid ""
|
|
"Set the hostname of the guest to C<HOSTNAME>. You can use a dotted "
|
|
"hostname.domainname (FQDN) if you want."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:360
|
|
msgid "B<--install> PKG[,PKG,...]"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:362
|
|
msgid ""
|
|
"Install the named packages (a comma-separated list). These are installed "
|
|
"during the image build using the guest's package manager (eg. apt, yum, "
|
|
"etc.) and the host's network connection."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:369
|
|
msgid "See also I<--update>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:371
|
|
msgid "B<--link TARGET:LINK>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:373
|
|
msgid "B<--link TARGET:LINK[:LINK...]>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:375
|
|
msgid ""
|
|
"Create symbolic link(s) in the guest, starting at C<LINK> and pointing at "
|
|
"C<TARGET>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:378 ../cat/virt-filesystems.pod:211 ../cat/virt-ls.pod:362 ../tools/virt-list-filesystems:109 ../tools/virt-list-partitions:120
|
|
msgid "B<-l>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:380
|
|
msgid "B<--list>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:382
|
|
msgid "B<--list --format> format"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:384
|
|
msgid "B<--list --long>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:386
|
|
msgid "List available templates."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:388
|
|
msgid ""
|
|
"It is possible to choose with I<--format> the output format for the list "
|
|
"templates:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:393
|
|
msgid "B<short>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:395
|
|
msgid ""
|
|
"The default format, prints only the template identifier and, next to it, its "
|
|
"short description."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:398
|
|
msgid "B<long>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:400
|
|
msgid ""
|
|
"Prints a textual list with the details of the available sources, followed by "
|
|
"the details of the available templates."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:403
|
|
msgid "B<json>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:405
|
|
msgid ""
|
|
"Prints a JSON object with the details of the available sources and the "
|
|
"details of the available templates."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:408
|
|
msgid ""
|
|
"The C<version> key in the main object represents the \"compatibility "
|
|
"version\", and it is bumped every time the resulting JSON output is "
|
|
"incompatible with the previous versions (for example the structure has "
|
|
"changed, or non-optional keys are no more present)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:415
|
|
msgid "I<--long> is a shorthand for the C<long> format."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:417
|
|
msgid "See also: I<--source>, I<--notes>, L</SOURCES OF TEMPLATES>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:419
|
|
msgid "B<--no-logfile>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:421
|
|
msgid ""
|
|
"Scrub C<builder.log> (log file from build commands) from the image after "
|
|
"building is complete. If you don't want to reveal precisely how the image "
|
|
"was built, use this option."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:425
|
|
msgid "See also: L</LOG FILE>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:427
|
|
msgid "B<-m> MB"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:429
|
|
msgid "B<--memsize> MB"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:431
|
|
msgid ""
|
|
"Change the amount of memory allocated to I<--run> scripts. Increase this if "
|
|
"you find that I<--run> scripts or the I<--install> option are running out of "
|
|
"memory."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:435
|
|
msgid "The default can be found with this command:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:437
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish get-memsize\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:439
|
|
msgid "B<--mkdir> DIR"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:441
|
|
msgid "Create a directory in the guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:443
|
|
msgid ""
|
|
"This uses S<C<mkdir -p>> so any intermediate directories are created, and it "
|
|
"also works if the directory already exists."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:446 ../fish/guestfish.pod:343 ../rescue/virt-rescue.pod:194
|
|
msgid "B<--network>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:448
|
|
msgid "B<--no-network>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:450
|
|
msgid "Enable or disable network access from the guest during the installation."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:452
|
|
msgid "Enabled is the default. Use I<--no-network> to disable access."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:454
|
|
msgid ""
|
|
"The network only allows outgoing connections and has other minor "
|
|
"limitations. See L<virt-rescue(1)/NETWORK>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:457
|
|
msgid ""
|
|
"If you use I<--no-network> then certain other options such as I<--install> "
|
|
"will not work."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:460
|
|
msgid ""
|
|
"This does not affect whether the guest can access the network once it has "
|
|
"been booted, because that is controlled by your hypervisor or cloud "
|
|
"environment and has nothing to do with virt-builder."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:464
|
|
msgid ""
|
|
"Generally speaking you should I<not> use I<--no-network>. But here are some "
|
|
"reasons why you might want to:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:469 ../builder/virt-builder.pod:1059 ../examples/guestfs-faq.pod:472 ../examples/guestfs-faq.pod:759 ../examples/guestfs-performance.pod:161 ../examples/guestfs-performance.pod:203 ../examples/guestfs-recipes.pod:408 ../rescue/virt-rescue.pod:328 ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:621 ../sparsify/virt-sparsify.pod:278 ../src/guestfs.pod:487 ../src/guestfs.pod:1797 ../src/guestfs.pod:2069 ../src/guestfs.pod:2367 ../src/guestfs.pod:3861
|
|
msgid "1."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:471
|
|
msgid ""
|
|
"Because the libguestfs backend that you are using doesn't support the "
|
|
"network. (See: L<guestfs(3)/BACKEND>)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:474 ../builder/virt-builder.pod:1064 ../examples/guestfs-faq.pod:482 ../examples/guestfs-faq.pod:769 ../examples/guestfs-performance.pod:167 ../examples/guestfs-performance.pod:210 ../examples/guestfs-recipes.pod:414 ../rescue/virt-rescue.pod:336 ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:628 ../sparsify/virt-sparsify.pod:285 ../src/guestfs.pod:493 ../src/guestfs.pod:1801 ../src/guestfs.pod:2073 ../src/guestfs.pod:2371 ../src/guestfs.pod:3886
|
|
msgid "2."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:476
|
|
msgid ""
|
|
"Any software you need to install comes from an attached ISO, so you don't "
|
|
"need the network."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:479 ../examples/guestfs-faq.pod:488 ../examples/guestfs-faq.pod:774 ../examples/guestfs-performance.pod:216 ../examples/guestfs-recipes.pod:420 ../rescue/virt-rescue.pod:345 ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:634 ../sparsify/virt-sparsify.pod:291 ../src/guestfs.pod:504 ../src/guestfs.pod:1805 ../src/guestfs.pod:2377
|
|
msgid "3."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:481
|
|
msgid ""
|
|
"You don't want untrusted guest code trying to access your host network when "
|
|
"running virt-builder. This is particularly an issue when you don't trust "
|
|
"the source of the operating system templates. (See L</SECURITY> below)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:486 ../examples/guestfs-faq.pod:494 ../rescue/virt-rescue.pod:354 ../resize/virt-resize.pod:61
|
|
msgid "4."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:488
|
|
msgid "You don't have a host network (eg. in secure/restricted environments)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:492 ../fish/guestfish.pod:360 ../fuse/guestmount.pod:288
|
|
msgid "B<--no-sync>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:494
|
|
msgid "Do not sync the output file on exit."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:496
|
|
msgid "Virt-builder fsync's the output file or disk image when it exits."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:498
|
|
msgid ""
|
|
"The reason is that qemu/KVM's default caching mode is C<none> or "
|
|
"C<directsync>, both of which bypass the host page cache. Therefore these "
|
|
"would not work correctly if you immediately started the guest after running "
|
|
"virt-builder - they would not see the complete output file. (Note that you "
|
|
"should not use these caching modes - they are fundamentally broken for this "
|
|
"and other reasons.)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:505
|
|
msgid ""
|
|
"If you are not using these broken caching modes, you can use I<--no-sync> to "
|
|
"avoid this unnecessary sync and gain considerable extra performance."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:509
|
|
msgid "B<--notes> os-version"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:511
|
|
msgid ""
|
|
"List any notes associated with this guest, then exit (this does not do the "
|
|
"install)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:514
|
|
msgid "B<-o> filename"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:516
|
|
msgid "B<--output> filename"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:518
|
|
msgid ""
|
|
"Write the output to C<filename>. If you don't specify this option, then the "
|
|
"output filename is generated by taking the C<os-version> string and adding "
|
|
"C<.img> (for raw format) or C<.qcow2> (for qcow2 format)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:523
|
|
msgid ""
|
|
"Note that the output filename could be a device, partition or logical "
|
|
"volume."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:526
|
|
msgid "When used with I<--get-kernel>, this option specifies the output directory."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:529
|
|
msgid "B<--password-crypto> password-crypto"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:531 ../sysprep/sysprep-extra-options.pod:92
|
|
msgid "Set the password encryption to C<md5>, C<sha256> or C<sha512>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:533
|
|
msgid ""
|
|
"C<sha256> and C<sha512> require glibc E<ge> 2.7 (check crypt(3) inside the "
|
|
"guest)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:536 ../sysprep/sysprep-extra-options.pod:97
|
|
msgid ""
|
|
"C<md5> will work with relatively old Linux guests (eg. RHEL 3), but is not "
|
|
"secure against modern attacks."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:539 ../sysprep/sysprep-extra-options.pod:100
|
|
msgid ""
|
|
"The default is C<sha512> unless libguestfs detects an old guest that didn't "
|
|
"have support for SHA-512, in which case it will use C<md5>. You can "
|
|
"override libguestfs by specifying this option."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:543
|
|
msgid "B<--print-cache>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:545
|
|
msgid "Print information about the template cache. See L</CACHING>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:549
|
|
msgid "Don't print ordinary progress messages."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:551
|
|
msgid "B<--root-password> SELECTOR"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:553
|
|
msgid "Set the root password."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:555
|
|
msgid ""
|
|
"See L</USERS AND PASSWORDS> below for the format of the C<SELECTOR> field, "
|
|
"and also how to set up user accounts."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:561
|
|
msgid "B<--run> SCRIPT"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:563
|
|
msgid "B<--run-command> 'CMD ARGS ...'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:565
|
|
msgid ""
|
|
"Run the shell script (or any program) called C<SCRIPT> on the disk image. "
|
|
"The script runs virtualized inside a small appliance, chrooted into the "
|
|
"guest filesystem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:569
|
|
msgid "The script is automatically chmod +x."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:571
|
|
msgid ""
|
|
"If libguestfs supports it then a limited network connection is available but "
|
|
"it only allows outgoing network connections. You can also attach data disks "
|
|
"(eg. ISO files) as another way to provide data (eg. software packages) to "
|
|
"the script without needing a network connection (I<--attach>). You can also "
|
|
"upload data files (I<--upload>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:577
|
|
msgid ""
|
|
"The alternative version I<--run-command> is the same, but it conveniently "
|
|
"wraps the command up in a single line script for you."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:580
|
|
msgid ""
|
|
"You can have multiple I<--run> and I<--run-command> options. They run in "
|
|
"the same order that they appear on the command line."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:583
|
|
msgid "See also: I<--firstboot>, I<--attach>, I<--upload>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:585
|
|
msgid "B<--scrub> FILE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:587
|
|
msgid "Scrub a file from the guest. This is like I<--delete> except that:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:593
|
|
msgid "It scrubs the data so a guest could not recover it."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:597
|
|
msgid "It cannot delete directories, only regular files."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:601
|
|
msgid "B<--selinux-relabel>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:603
|
|
msgid "Relabel files in the guest so that they have the correct SELinux label."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:605
|
|
msgid "You should only use this option for guests which support SELinux."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:607
|
|
msgid "B<--size> SIZE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:609
|
|
msgid ""
|
|
"Select the size of the output disk, where the size can be specified using "
|
|
"common names such as C<32G> (32 gigabytes) etc."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:612
|
|
msgid "Virt-builder will resize filesystems inside the disk image automatically."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:615
|
|
msgid ""
|
|
"If the size is not specified, then one of two things happens. If the output "
|
|
"is a file, then the size is the same as the template. If the output is a "
|
|
"device, partition, etc then the size of that device is used."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:620
|
|
msgid ""
|
|
"To specify size in bytes, the number must be followed by the lowercase "
|
|
"letter I<b>, eg: S<C<--size 10737418240b>>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:623 ../rescue/virt-rescue.pod:227
|
|
msgid "B<--smp> N"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:625
|
|
msgid "Enable N E<ge> 2 virtual CPUs for I<--run> scripts to use."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:627
|
|
msgid "B<--source> URL"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:629
|
|
msgid "Set the source URL to look for indexes."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:631
|
|
msgid "You can give this option multiple times to specify multiple sources."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:633
|
|
msgid "See also L</SOURCES OF TEMPLATES> below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:635
|
|
msgid ""
|
|
"Note that you should not point I<--source> to sources that you don't trust "
|
|
"(unless the source is signed by someone you do trust). See also the "
|
|
"I<--no-network> option."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:639
|
|
msgid "B<--timezone> TIMEZONE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:641
|
|
msgid ""
|
|
"Set the default timezone of the guest to C<TIMEZONE>. Use a location string "
|
|
"like C<Europe/London>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:644
|
|
msgid "B<--update>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:646
|
|
msgid ""
|
|
"Do the equivalent of C<yum update>, C<apt-get upgrade>, or whatever command "
|
|
"is required to update the packages already installed in the template to "
|
|
"their latest versions."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:650
|
|
msgid "See also I<--install>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:652
|
|
msgid "B<--upload> FILE:DEST"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:654
|
|
msgid ""
|
|
"Upload local file C<FILE> to destination C<DEST> in the disk image. File "
|
|
"owner and permissions from the original are preserved, so you should set "
|
|
"them to what you want them to be in the disk image."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:658
|
|
msgid ""
|
|
"C<DEST> could be the final filename. This can be used to rename the file on "
|
|
"upload."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:661
|
|
msgid ""
|
|
"If C<DEST> is a directory name (which must already exist in the guest) then "
|
|
"the file is uploaded into that directory, and it keeps the same name as on "
|
|
"the local filesystem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:665
|
|
msgid "See also: I<--mkdir>, I<--delete>, I<--scrub>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:671
|
|
msgid "Enable debug messages and/or produce verbose output."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:673
|
|
msgid ""
|
|
"When reporting bugs, use this option and attach the complete output to your "
|
|
"bug report."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:682
|
|
msgid "B<--write> FILE:CONTENT"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:684
|
|
msgid "Write C<CONTENT> to C<FILE>."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../builder/virt-builder.pod:688
|
|
msgid "REFERENCE"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../builder/virt-builder.pod:690
|
|
msgid "INSTALLING PACKAGES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:692
|
|
msgid ""
|
|
"There are several approaches to installing packages or applications in the "
|
|
"guest which have different trade-offs."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:695
|
|
msgid "Installing packages at build time"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:697
|
|
msgid ""
|
|
"If the guest OS you are installing is similar to the host OS (eg. both are "
|
|
"Linux), and if libguestfs supports network connections, then you can use "
|
|
"I<--install> to install packages like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:701
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder fedora-20 --install inkscape\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:703
|
|
msgid "This uses the guest's package manager and the host's network connection."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:706
|
|
msgid "Updating packages at build time"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:708
|
|
msgid "To update the core set of packages in the template at build time:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:710
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder fedora-20 --update\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:712
|
|
msgid ""
|
|
"Most of the templates that ship with virt-builder come with a very minimal "
|
|
"selection of packages (known as a \"JEOS\" or \"Just Enough Operating "
|
|
"System\"), which are up to date at the time the template is created, but "
|
|
"could be out of date by the time you come to install an OS from the "
|
|
"template. This option updates those template packages."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:718
|
|
msgid "Installing packages at first boot"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:720
|
|
msgid "Another option is to install the packages when the guest first boots:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:722
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder fedora-20 --firstboot-install inkscape\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:724
|
|
msgid "This uses the guest's package manager and the guest's network connection."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:727
|
|
msgid ""
|
|
"The downsides are that it will take the guest a lot longer to boot first "
|
|
"time, and there's nothing much you can do if package installation fails "
|
|
"(eg. if a network problem means the guest can't reach the package "
|
|
"repositories)."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:732
|
|
msgid "Installing packages at build time from a side repository"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:734
|
|
msgid ""
|
|
"If the software you want to install is not available in the main package "
|
|
"repository of the guest, then you can add a side repository. Usually this "
|
|
"is presented as an ISO (CD disk image) file containing extra packages."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:739
|
|
msgid ""
|
|
"You can create the disk image using either L<genisoimage(1)> or "
|
|
"L<virt-make-fs(1)>. For genisoimage, use a command like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:742
|
|
#, no-wrap
|
|
msgid ""
|
|
" genisoimage -o extra-packages.iso -R -J -V EXTRA cdcontents/\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:744
|
|
msgid ""
|
|
"Create a script that mounts the ISO and sets up the repository. For yum, "
|
|
"create /tmp/install.sh containing:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:747 ../builder/virt-builder.pod:761
|
|
#, no-wrap
|
|
msgid ""
|
|
" mkdir /tmp/mount\n"
|
|
" mount LABEL=EXTRA /tmp/mount\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:750
|
|
#, no-wrap
|
|
msgid ""
|
|
" cat <<'EOF' > /etc/yum.repos.d/extra.repo\n"
|
|
" [extra]\n"
|
|
" name=extra\n"
|
|
" baseurl=file:///tmp/mount\n"
|
|
" enabled=1\n"
|
|
" EOF\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:757
|
|
#, no-wrap
|
|
msgid ""
|
|
" yum -y install famousdatabase\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:759
|
|
msgid "For apt, create /tmp/install.sh containing:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:764
|
|
#, no-wrap
|
|
msgid ""
|
|
" apt-cdrom -d=/tmp/mount add\n"
|
|
" apt-get -y install famousdatabase\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:767
|
|
msgid ""
|
|
"Use the I<--attach> option to attach the CD / disk image and the I<--run> "
|
|
"option to run the script:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:770
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder fedora-20 \\\n"
|
|
" --attach extra-packages.iso \\\n"
|
|
" --run /tmp/install.sh\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../builder/virt-builder.pod:774
|
|
msgid "USERS AND PASSWORDS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:776
|
|
msgid ""
|
|
"The I<--root-password> option is used to change the root password (otherwise "
|
|
"a random password is used). This option takes a password C<SELECTOR> in one "
|
|
"of the following formats:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:782
|
|
msgid "B<--root-password> file:FILENAME"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:784
|
|
msgid ""
|
|
"Read the root password from C<FILENAME>. The whole first line of this file "
|
|
"is the replacement password. Any other lines are ignored. You should "
|
|
"create the file with mode 0600 to ensure no one else can read it."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:789
|
|
msgid "B<--root-password> password:PASSWORD"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:791
|
|
msgid "Set the root password to the literal string C<PASSWORD>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:793 ../sysprep/sysprep-extra-options.pod:44
|
|
msgid ""
|
|
"B<Note: this is not secure> since any user on the same machine can see the "
|
|
"cleartext password using L<ps(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:796
|
|
msgid "B<--root-password> random"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:798 ../sysprep/sysprep-extra-options.pod:51
|
|
msgid ""
|
|
"Choose a random password, which is printed on stdout. The password has "
|
|
"approximately 120 bits of randomness."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:801 ../fish/guestfish-actions.pod:380 ../format/virt-format.pod:140 ../src/guestfs-actions.pod:473
|
|
msgid "This is the default."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:803 ../sysprep/sysprep-extra-options.pod:56
|
|
msgid "B<--root-password> disabled"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:805
|
|
msgid ""
|
|
"The root account password is disabled. This is like putting C<*> in the "
|
|
"password field."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:808 ../sysprep/sysprep-extra-options.pod:67
|
|
msgid "B<--root-password> locked:file:FILENAME"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:810 ../sysprep/sysprep-extra-options.pod:69
|
|
msgid "B<--root-password> locked:password:PASSWORD"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:812 ../sysprep/sysprep-extra-options.pod:71
|
|
msgid "B<--root-password> locked:random"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:814
|
|
msgid ""
|
|
"The root account is locked, but a password is placed on the account. If "
|
|
"first unlocked (using C<passwd -u>) then logins will use the given password."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:818 ../sysprep/sysprep-extra-options.pod:81
|
|
msgid "B<--root-password> locked"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:820 ../sysprep/sysprep-extra-options.pod:83
|
|
msgid "B<--root-password> locked:disabled"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:822
|
|
msgid "The root account is locked I<and> password is disabled."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:826
|
|
msgid "Creating user accounts"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:828
|
|
msgid ""
|
|
"To create user accounts, use the L<useradd(8)> command with "
|
|
"L<--firstboot-command> like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:831
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder --firstboot-command \\\n"
|
|
" 'useradd -m -p \"\" rjones ; chage -d 0 rjones'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:834
|
|
msgid ""
|
|
"The above command will create an C<rjones> account with no password, and "
|
|
"force the user to set a password when they first log in. There are other "
|
|
"ways to manage passwords, see L<useradd(8)> for details."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../builder/virt-builder.pod:838
|
|
msgid "KEYBOARD LAYOUT"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:840
|
|
msgid ""
|
|
"Because there are so many different ways to set the keyboard layout in Linux "
|
|
"distributions, virt-builder does not yet attempt to have a simple command "
|
|
"line option. This section describes how to set the keyboard for some common "
|
|
"Linux distributions."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:845
|
|
msgid "Keyboard layout with systemd"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:847
|
|
msgid "For distros that use systemd C<localectl>, use a command like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:849
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder fedora-20 \\\n"
|
|
" --firstboot-command 'localectl set-keymap uk'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:852
|
|
msgid ""
|
|
"See L<localectl(1)> and "
|
|
"L<https://www.happyassassin.net/2013/11/23/keyboard-layouts-in-fedora-20-and-previously/> "
|
|
"for more details."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:856
|
|
msgid "Keyboard layout using C</etc/sysconfig/keyboard>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:858
|
|
msgid ""
|
|
"For RHEL E<le> 6, Fedora E<le> 18 and similar, upload or modify the keyboard "
|
|
"configuration file using the I<--upload>, I<--write> or I<--edit> options. "
|
|
"For example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:862
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder centos-6 \\\n"
|
|
" --edit '/etc/sysconfig/keyboard: s/^KEYTABLE=.*/KEYTABLE=\"uk\"/'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:865
|
|
msgid "The format of this file can be found documented in many places online."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:867
|
|
msgid "Keyboard layout with Debian-derived distros"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:869
|
|
msgid ""
|
|
"For Debian-derived distros using C</etc/default/keyboard>, upload or modify "
|
|
"the keyboard file using the I<--upload>, I<--write> or I<--edit> options. "
|
|
"For example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:873
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder debian-7 \\\n"
|
|
" --edit '/etc/default/keyboard: s/^XKBLAYOUT=.*/XKBLAYOUT=\"gb\"/'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:876
|
|
msgid "See L<https://wiki.debian.org/Keyboard>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../builder/virt-builder.pod:878
|
|
msgid "LANGUAGE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:880
|
|
msgid ""
|
|
"Most Linux distributions support multiple locale settings so that you can "
|
|
"have guest messages printed in another language such as Russian."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:883
|
|
msgid ""
|
|
"However there is no single setting which controls this, since extra packages "
|
|
"may need to be installed to support console and X fonts, and keyboard input "
|
|
"methods. The packages required, and their configuration is highly "
|
|
"distro-specific, and it is outside the scope of virt-builder to do this."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:889
|
|
msgid "This section contains examples for some common Linux distributions."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:891
|
|
msgid "Setting Japanese in Fedora 20"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:893
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder fedora-20 \\\n"
|
|
" --size 20G \\\n"
|
|
" --update \\\n"
|
|
" --install @japanese-support \\\n"
|
|
" --install @xfce \\\n"
|
|
" --install xorg-x11-server-Xorg,xorg-x11-drivers,rsyslog \\\n"
|
|
" --link "
|
|
"/usr/lib/systemd/system/graphical.target:/etc/systemd/system/default.target "
|
|
"\\\n"
|
|
" --firstboot-command 'localectl set-locale LANG=ja_JP.utf8' \\\n"
|
|
" --firstboot-command 'localectl set-keymap jp' \\\n"
|
|
" --firstboot-command 'systemctl isolate graphical.target'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:904
|
|
msgid "Setting Japanese in Debian 7 (Wheezy)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:906
|
|
msgid ""
|
|
"Note that although this enables Japanese in the text console too, it is "
|
|
"unlikely that you will see properly rendered Japanese there. However "
|
|
"Japanese is properly rendered in X applications and terminals."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:910
|
|
#, no-wrap
|
|
msgid ""
|
|
" pkgs=locales,xfce4,\\\n"
|
|
" ibus,ibus-anthy,\\\n"
|
|
" ttf-sazanami-gothic,ttf-sazanami-mincho,\\\n"
|
|
" fonts-takao-mincho,\\\n"
|
|
" xfonts-intl-japanese,xfonts-intl-japanese-big,\\\n"
|
|
" iceweasel-l10n-ja,manpages-ja\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:917
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder debian-7 \\\n"
|
|
" --size 20G \\\n"
|
|
" --install $pkgs \\\n"
|
|
" --edit '/etc/inittab: s,^#([1-9].*respawn.*/sbin/getty.*),$1,' \\\n"
|
|
" --edit '/etc/locale.gen: s,^#\\s*ja,ja,' \\\n"
|
|
" --write '/etc/default/locale:LANG=\"ja_JP.UTF-8\"' \\\n"
|
|
" --run-command \"locale-gen\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../builder/virt-builder.pod:925
|
|
msgid "LOG FILE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:927
|
|
msgid ""
|
|
"Scripts and package installation that runs at build time (I<--run>, "
|
|
"I<--run-command>, I<--install>, I<--update>, but I<not> firstboot) is logged "
|
|
"in one of the following locations:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:933
|
|
msgid "C</tmp/builder.log>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:935
|
|
msgid "On Linux, BSD and other guests."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:937
|
|
msgid "C<C:\\Temp\\builder.log>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:939
|
|
msgid "On Windows, DOS guests."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:941
|
|
msgid "C</builder.log>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:943
|
|
msgid "If C</tmp> or C<C:\\Temp> is missing."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:947
|
|
msgid ""
|
|
"If you don't want the log file to appear in the final image, then use the "
|
|
"I<--no-logfile> command line option."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../builder/virt-builder.pod:950
|
|
msgid "INSTALLATION PROCESS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:952
|
|
msgid "When you invoke virt-builder, installation proceeds as follows:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:958
|
|
msgid "The template image is downloaded."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:960
|
|
msgid ""
|
|
"If the template image is present in the cache, the cached version is used "
|
|
"instead. (See L</CACHING>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:965
|
|
msgid "The template signature is checked."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:969
|
|
msgid "The template is uncompressed to a tmp file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:973
|
|
msgid "The template image is resized into the destination, using L<virt-resize(1)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:978
|
|
msgid "Extra disks are attached (I<--attach>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:982
|
|
msgid "A new random seed is generated for the guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:986
|
|
msgid "The hostname and timezone are set (I<--hostname>, I<--timezone>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:990
|
|
msgid "The root password is changed (I<--root-password>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:994
|
|
msgid "Core packages are updated (I<--update>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:998
|
|
msgid "Packages are installed (I<--install>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1002
|
|
msgid "Directories are created (I<--mkdir>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1006
|
|
msgid "Files are written (I<--write>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1010
|
|
msgid "Files are uploaded (I<--upload>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1014
|
|
msgid "Files are edited (I<--edit>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1018
|
|
msgid "Files are deleted (I<--delete>, I<--scrub>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1022
|
|
msgid "Symbolic links are created (I<--link>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1026
|
|
msgid ""
|
|
"Firstboot scripts are installed (I<--firstboot>, I<--firstboot-command>, "
|
|
"I<--firstboot-install>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1029
|
|
msgid ""
|
|
"Note that although firstboot scripts are installed at this step, they do not "
|
|
"run until the guest is booted first time. Firstboot scripts will run in the "
|
|
"order they appear on the command line."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1035
|
|
msgid "Scripts are run (I<--run>, I<--run-command>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1037
|
|
msgid "Scripts run in the order they appear on the command line."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1041
|
|
msgid "SELinux relabelling is done (I<--selinux-relabel>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../builder/virt-builder.pod:1045
|
|
msgid "IMPORTING THE DISK IMAGE"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:1047
|
|
msgid "Importing into libvirt"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1049
|
|
msgid ""
|
|
"Import the disk image into libvirt using L<virt-install(1)> I<--import> "
|
|
"option."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1052
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-install --import \\\n"
|
|
" --name guest --ram 2048 --disk path=disk.img,format=raw\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1055 ../examples/guestfs-recipes.pod:261 ../fish/guestfish-actions.pod:2144 ../fish/guestfish-actions.pod:2694 ../fish/guestfish-actions.pod:3290 ../src/guestfs-actions.pod:3418 ../src/guestfs-actions.pod:4293 ../src/guestfs-actions.pod:5178 ../src/guestfs.pod:778 ../src/guestfs.pod:2647 ../tools/virt-win-reg:752
|
|
msgid "Notes:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1061
|
|
msgid ""
|
|
"You I<must> specify the correct format. The format is C<raw> unless you "
|
|
"used virt-builder's I<--format> option."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1066
|
|
msgid ""
|
|
"You can run virt-install as root or non-root. Each works slightly "
|
|
"differently because libvirt manages a different set of virtual machines for "
|
|
"each user. In particular virt-manager normally shows the root-owned VMs, "
|
|
"whereas Boxes shows the user-owned VMs, and other tools probably work "
|
|
"differently as well."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:1074
|
|
msgid "Importing into OpenStack"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1076
|
|
msgid "Import the image into Glance (the OpenStack image store) by doing:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1078
|
|
#, no-wrap
|
|
msgid ""
|
|
" glance image-create --name fedora-20-image --file fedora-20.img \\\n"
|
|
" --disk-format raw --container-format bare \\\n"
|
|
" --is-public True\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1082
|
|
msgid ""
|
|
"The I<--file> parameter is the virt-builder-generated disk image. It should "
|
|
"match virt-builder's I<--output> option. The I<--disk-format> parameter "
|
|
"should match virt-builder's I<--format> option (or C<raw> if you didn't use "
|
|
"that option). The I<--container-format> should always be C<bare> since "
|
|
"virt-builder doesn't put images into containers."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1088
|
|
msgid ""
|
|
"You can use the S<C<glance image-show I<fedora-20-image>>> command to "
|
|
"display the properties of the image."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1091
|
|
msgid "To boot up an instance of your image on a Nova compute node, do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1093
|
|
#, no-wrap
|
|
msgid ""
|
|
" nova boot fedora-20-server --image fedora-20-image \\\n"
|
|
" --flavor m1.medium\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1096
|
|
msgid ""
|
|
"Use S<C<nova flavor-list>> to list possible machine flavors. Use S<C<nova "
|
|
"list>> to list running instances."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:1099
|
|
msgid "Booting directly using qemu or KVM"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1101
|
|
msgid ""
|
|
"The qemu command line is not very stable or easy to use, hence libvirt "
|
|
"should be used if possible. However a command line similar to the following "
|
|
"could be used to boot the virtual machine:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1105
|
|
#, no-wrap
|
|
msgid ""
|
|
" qemu-system-x86_64 \\\n"
|
|
" -machine accel=kvm:tcg \\\n"
|
|
" -cpu host \\\n"
|
|
" -m 2048 \\\n"
|
|
" -drive file=disk.img,format=raw,if=virtio\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1111
|
|
msgid ""
|
|
"As with libvirt, it is very important that the correct format is chosen. It "
|
|
"will be C<raw> unless the I<--format> option was used."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../builder/virt-builder.pod:1114
|
|
msgid "CONFIGURATION MANAGEMENT"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:1116
|
|
msgid "Puppet"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1118
|
|
msgid ""
|
|
"To enable the Puppet agent in a guest, install the package, point the "
|
|
"configuration at your Puppetmaster, and ensure the agent runs at boot."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1122
|
|
msgid "A typical virt-builder command would be:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1124
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder fedora-20 \\\n"
|
|
" --hostname client.example.com \\\n"
|
|
" --update \\\n"
|
|
" --install puppet \\\n"
|
|
" --edit '/etc/puppet/puppet.conf:\n"
|
|
" s/^\\[agent\\]/[agent]\\n server = puppetmaster.example.com/' \\\n"
|
|
" --run-command 'systemctl enable puppet' \\\n"
|
|
" --selinux-relabel\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1133
|
|
msgid ""
|
|
"The precise instructions vary according to the Linux distro. For further "
|
|
"information see: L<http://docs.puppetlabs.com/guides/installation.htm>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../builder/virt-builder.pod:1137
|
|
msgid "DEBUGGING BUILDS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1139
|
|
msgid ""
|
|
"If virt-builder itself fails, then enable debugging (I<-v>) and report a bug "
|
|
"(see L</BUGS> below)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1142
|
|
msgid ""
|
|
"If virt-builder fails because some script or package it is installing fails, "
|
|
"try using I<--no-delete-on-failure> to preserve the output file, and "
|
|
"continue reading this section."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1146
|
|
msgid ""
|
|
"If virt-builder is successful but the image doesn't work, here are some "
|
|
"things to try:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1151
|
|
msgid "Use virt-rescue"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1153
|
|
msgid "Run L<virt-rescue(1)> on the disk image:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1155
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-rescue -a disk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1157
|
|
msgid ""
|
|
"This gives you a rescue shell. You can mount the filesystems from the disk "
|
|
"image on C</sysroot> and examine them using ordinary Linux commands. You "
|
|
"can also chroot into the guest to reinstall the bootloader. The virt-rescue "
|
|
"man page has a lot more information and examples."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1163
|
|
msgid "Use guestfish"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1165
|
|
msgid "Run L<guestfish(1)> on the disk image:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1167
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -a disk.img -i\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1169
|
|
msgid ""
|
|
"Use guestfish commands like C<ll /directory> and C<cat /file> to examine "
|
|
"directories and files."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1172
|
|
msgid "Use guestmount"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1174
|
|
msgid "Mount the disk image safely on the host using FUSE and L<guestmount(1)>:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1176
|
|
#, no-wrap
|
|
msgid ""
|
|
" mkdir /tmp/mp\n"
|
|
" guestmount -a disk.img -i /tmp/mp\n"
|
|
" cd /tmp/mp\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1180
|
|
msgid "To unmount the disk image do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1182
|
|
#, no-wrap
|
|
msgid ""
|
|
" fusermount -u /tmp/mp\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1184
|
|
msgid "Add a serial console"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1186
|
|
msgid ""
|
|
"If the guest hangs during boot, it can be helpful to add a serial console to "
|
|
"the guest, and direct kernel messages to the serial console. Adding the "
|
|
"serial console will involve looking at the documentation for your "
|
|
"hypervisor. To direct kernel messages to the serial console, add the "
|
|
"following on the kernel command line:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1192
|
|
#, no-wrap
|
|
msgid ""
|
|
" console=tty0 console=ttyS0,115200\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../builder/virt-builder.pod:1196
|
|
msgid "SOURCES OF TEMPLATES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1198
|
|
msgid ""
|
|
"virt-builder reads the available sources from configuration files, with the "
|
|
"I<.conf> extension and located in the following paths:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1205
|
|
msgid ""
|
|
"$XDG_CONFIG_HOME/virt-builder/repos.d/ (C<$XDG_CONFIG_HOME> is "
|
|
"C<$HOME/.config> if not set)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1210
|
|
msgid ""
|
|
"$XDG_CONFIG_DIRS/virt-builder/repos.d/ (where C<$XDG_CONFIG_DIRS> means any "
|
|
"of the directories in that environment variable, or just C</etc/xdg> if not "
|
|
"set)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1216
|
|
msgid ""
|
|
"Each I<.conf> file in those paths has a simple text format like the "
|
|
"following:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1219
|
|
#, no-wrap
|
|
msgid ""
|
|
" [libguestfs.org]\n"
|
|
" uri=http://libguestfs.org/download/builder/index.asc\n"
|
|
" gpgkey=file:///etc/xdg/virt-builder/repos.d/libguestfs.gpg\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1223
|
|
msgid ""
|
|
"The part in square brackets is the repository identifier, which is used as "
|
|
"unique identifier."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1226 ../builder/virt-builder.pod:1340
|
|
msgid "The following fields can appear:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1230
|
|
msgid "C<uri=URI>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1232
|
|
msgid "The URI of the index file which this repository refers to."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1234 ../builder/virt-builder.pod:1423
|
|
msgid "This field is required."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1236
|
|
msgid "C<gpgkey=URI>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1238
|
|
msgid ""
|
|
"This optional field represents the URI (although only I<file://> URIs are "
|
|
"accepted) of the key used to sign the index file. If not present, the index "
|
|
"file referred by I<uri=..> is not signed."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1244
|
|
msgid ""
|
|
"For serious virt-builder use, you may want to create your own repository of "
|
|
"templates."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:1247
|
|
msgid "Libguestfs.org repository"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1249
|
|
msgid ""
|
|
"Out of the box, virt-builder downloads the file "
|
|
"L<http://libguestfs.org/download/builder/index.asc> which is an index of "
|
|
"available templates plus some information about each one, wrapped up in a "
|
|
"digital signature. The command C<virt-builder --list> lists out the "
|
|
"information in this index file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1255
|
|
msgid ""
|
|
"The templates hosted on libguestfs.org were created using shell scripts, "
|
|
"kickstart files and preseed files which can be found in the libguestfs "
|
|
"source tree, in C<builder/website>."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:1259
|
|
msgid "Setting up the repository"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1261
|
|
msgid ""
|
|
"You can set up your own site containing an index file and some templates, "
|
|
"and then point virt-builder at the site by creating a I<.conf> file pointing "
|
|
"to it."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1265
|
|
msgid ""
|
|
"Note that if your index is signed, you will need to properly fill "
|
|
"I<gpgkey=..> in your I<.conf> file, making sure to deploy also the GPG key "
|
|
"file."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1269
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder --source https://example.com/builder/index.asc \\\n"
|
|
" --fingerprint 'AAAA BBBB ...' \\\n"
|
|
" --list\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1273
|
|
msgid ""
|
|
"You can host this on any web or FTP server, or a local or network "
|
|
"filesystem."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:1276
|
|
msgid "Setting up a GPG key"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1278
|
|
msgid ""
|
|
"If you don't have a GnuPG key, you will need to set one up. (Strictly "
|
|
"speaking this is optional, but if your index and template files are not "
|
|
"signed then virt-builder users will have to use the I<--no-check-signature> "
|
|
"flag every time they use virt-builder.)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1283
|
|
msgid ""
|
|
"To create a key, see the GPG manual "
|
|
"L<http://www.gnupg.org/gph/en/manual.html>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1286
|
|
msgid "Export your GPG public key:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1288
|
|
#, no-wrap
|
|
msgid ""
|
|
" gpg --export -a \"you@example.com\" > pubkey\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:1290
|
|
msgid "Create the templates"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1292
|
|
msgid ""
|
|
"There are many ways to create the templates. For example you could clone "
|
|
"existing guests (see L<virt-sysprep(1)>), or you could install a guest by "
|
|
"hand (L<virt-install(1)>). To see how the templates were created for "
|
|
"virt-builder, look at the scripts in C<builder/website>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1297
|
|
msgid ""
|
|
"For best results when compressing the templates, use the following xz "
|
|
"options (see L<nbdkit-xz-plugin(1)> for further explanation):"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1300
|
|
#, no-wrap
|
|
msgid ""
|
|
" xz --best --block-size=16777216 disk\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:1302
|
|
msgid "Creating and signing the index file"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1304
|
|
msgid ""
|
|
"The index file has a simple text format (shown here without the digital "
|
|
"signature):"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1307
|
|
#, no-wrap
|
|
msgid ""
|
|
" [fedora-18]\n"
|
|
" name=Fedora® 18\n"
|
|
" osinfo=fedora18\n"
|
|
" file=fedora-18.xz\n"
|
|
" checksum[sha512]=...\n"
|
|
" format=raw\n"
|
|
" size=6442450944\n"
|
|
" compressed_size=148947524\n"
|
|
" expand=/dev/sda3\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1317
|
|
#, no-wrap
|
|
msgid ""
|
|
" [fedora-19]\n"
|
|
" name=Fedora® 19\n"
|
|
" osinfo=fedora19\n"
|
|
" file=fedora-19.xz\n"
|
|
" checksum[sha512]=...\n"
|
|
" revision=3\n"
|
|
" format=raw\n"
|
|
" size=4294967296\n"
|
|
" compressed_size=172190964\n"
|
|
" expand=/dev/sda3\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1328
|
|
msgid ""
|
|
"The part in square brackets is the C<os-version>, which is the same string "
|
|
"that is used on the virt-builder command line to build that OS."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1331
|
|
msgid ""
|
|
"After preparing the C<index> file in the correct format, clearsign it using "
|
|
"the following command:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1334
|
|
#, no-wrap
|
|
msgid ""
|
|
" gpg --clearsign --armor index\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1336
|
|
msgid ""
|
|
"This will create the final file called C<index.asc> which can be uploaded to "
|
|
"the server (and is the I<uri=..> URL). As noted above, signing the index "
|
|
"file is optional, but recommended."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1344
|
|
msgid "C<name=NAME>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1346
|
|
msgid ""
|
|
"The user-friendly name of this template. This is displayed in the I<--list> "
|
|
"output but is otherwise not significant."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1349
|
|
msgid "C<osinfo=ID>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1351
|
|
msgid ""
|
|
"This optional field maps the operating system to the associated libosinfo "
|
|
"ID. Virt-builder does not use it (yet)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1354
|
|
msgid "C<file=PATH>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1356
|
|
msgid "The path (relative to the index) of the xz-compressed template."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1358 ../builder/virt-builder.pod:1369
|
|
msgid ""
|
|
"Note that absolute paths or URIs are B<not> permitted here. This is because "
|
|
"virt-builder has a \"same origin\" policy for templates so they cannot come "
|
|
"from other servers."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1362
|
|
msgid "C<sig=PATH>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1364
|
|
msgid "B<This option is deprecated>. Use the checksum field instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1366
|
|
msgid ""
|
|
"The path (relative to the index) of the GPG detached signature of the xz "
|
|
"file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1373
|
|
msgid "The file can be created as follows:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1375
|
|
#, no-wrap
|
|
msgid ""
|
|
" gpg --detach-sign --armor -o disk.xz.sig disk.xz\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1377
|
|
msgid "C<checksum[sha512]=7b882fe9b82eb0fef...>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1379
|
|
msgid ""
|
|
"The SHA-512 checksum of the B<compressed> file is checked after it is "
|
|
"downloaded. To work out the signature, do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1382
|
|
#, no-wrap
|
|
msgid ""
|
|
" sha512sum disk.xz\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1384
|
|
msgid ""
|
|
"Note if you use this, you don't need to sign the file, ie. don't use "
|
|
"C<sig>. This option overrides C<sig>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1387
|
|
msgid "C<checksum=7b882fe9b82eb0fef...>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1389
|
|
msgid "C<checksum> is an alias for C<checksum[sha512]>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1391
|
|
msgid ""
|
|
"If you need to interoperate with virt-builder = 1.24.0 then you have to use "
|
|
"C<checksum> because that version would give a parse error with square "
|
|
"brackets and numbers in the key of a field. This is fixed in virt-builder "
|
|
"E<ge> 1.24.1."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1396
|
|
msgid "C<revision=N>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1398
|
|
msgid ""
|
|
"The revision is an integer which is used to control the template cache. "
|
|
"Increasing the revision number causes clients to download the template again "
|
|
"even if they have a copy in the cache."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1402
|
|
msgid "The revision number is optional. If omitted it defaults to C<1>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1404
|
|
msgid "C<format=raw>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1406
|
|
msgid "C<format=qcow2>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1408
|
|
msgid ""
|
|
"Specify the format of the disk image (before it was compressed). If not "
|
|
"given, the format is autodetected, but generally it is better to be explicit "
|
|
"about the intended format."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1412
|
|
msgid ""
|
|
"Note this is the source format, which is different from the I<--format> "
|
|
"option (requested output format). Virt-builder does on-the-fly conversion "
|
|
"from the source format to the requested output format."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1417
|
|
msgid "C<size=NNN>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1419
|
|
msgid ""
|
|
"The virtual size of the image in bytes. This is the size of the image when "
|
|
"uncompressed. If using a non-raw format such as qcow2 then it means the "
|
|
"virtual disk size, not the size of the qcow2 file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1425
|
|
msgid ""
|
|
"Virt-builder also uses this as the minimum size that users can request via "
|
|
"the I<--size> option, or as the default size if there is no I<--size> "
|
|
"option."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1429
|
|
msgid "C<compressed_size=NNN>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1431
|
|
msgid ""
|
|
"The compressed size of the disk image in bytes. This is just used for "
|
|
"information (when using I<--list --long>)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1434
|
|
msgid "C<expand=/dev/sdaX>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1436
|
|
msgid ""
|
|
"When expanding the image to its final size, instruct L<virt-resize(1)> to "
|
|
"expand the named partition in the guest image to fill up all available "
|
|
"space. This works like the virt-resize I<--expand> option."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1440
|
|
msgid "You should usually put the device name of the guest's root filesystem here."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1442
|
|
msgid ""
|
|
"It's a good idea to use this, but not required. If the field is omitted "
|
|
"then virt-resize will create an extra partition at the end of the disk to "
|
|
"cover the free space, which is much less user-friendly."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1446
|
|
msgid "C<lvexpand=/dev/VolGroup/LogVol>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1448
|
|
msgid ""
|
|
"When expanding the image to its final size, instruct L<virt-resize(1)> to "
|
|
"expand the named logical volume in the guest image to fill up all available "
|
|
"space. This works like the virt-resize I<--lv-expand> option."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1452
|
|
msgid ""
|
|
"If the guest uses LVM2 you should usually put the LV of the guest's root "
|
|
"filesystem here. If the guest does not use LVM2 or its root filesystem is "
|
|
"not on an LV, don't use this option."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1456
|
|
msgid "C<notes=NOTES>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1458
|
|
msgid ""
|
|
"Any notes that go with this image, especially notes describing what packages "
|
|
"are in the image, how the image was prepared, and licensing information."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1462
|
|
msgid "This information is shown in the I<--notes> and I<--list> I<--long> modes."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1464
|
|
msgid ""
|
|
"You can use multi-line notes here by indenting each new line with at least "
|
|
"one character of whitespace (even on blank lines):"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1467
|
|
#, no-wrap
|
|
msgid ""
|
|
" notes=This image was prepared using\n"
|
|
" the following kickstart script:\n"
|
|
" <-- one space at beginning of line\n"
|
|
" part /boot --fstype ext3\n"
|
|
" ...\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1473
|
|
msgid "C<hidden=true>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1475
|
|
msgid ""
|
|
"Using the hidden flag prevents the template from being listed by the "
|
|
"I<--list> option (but it is still installable). This is used for test "
|
|
"images."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:1481
|
|
msgid "Running virt-builder against multiple sources"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1483
|
|
msgid ""
|
|
"It is possible to use multiple sources with virt-builder. The recommended "
|
|
"way is to deploy I<.conf> files pointing to the index files. Another way is "
|
|
"to specify the sources using multiple I<--source> and/or I<--fingerprint> "
|
|
"options:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1488
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder \\\n"
|
|
" --source http://example.com/s1/index.asc \\\n"
|
|
" --source http://example.com/s2/index.asc\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1492
|
|
msgid ""
|
|
"You can provide N or 1 fingerprints. In the case where you provide N "
|
|
"fingerprints, N = number of sources and there is a 1-1 correspondence "
|
|
"between each source and each fingerprint:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1496
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder \\\n"
|
|
" --source http://example.com/s1/index.asc --fingerprint '0123 ...' \\\n"
|
|
" --source http://example.com/s2/index.asc --fingerprint '9876 ...'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1500
|
|
msgid ""
|
|
"In the case where you provide 1 fingerprint, the same fingerprint is used "
|
|
"for all sources."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1503
|
|
msgid "You C<must> provide at least 1 fingerprint."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:1505
|
|
msgid "Licensing of templates"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1507
|
|
msgid ""
|
|
"You should be aware of the licensing of images that you distribute. For "
|
|
"open source guests, provide a link to the source code in the C<notes> field "
|
|
"and comply with other requirements (eg. around trademarks)."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:1512
|
|
msgid "Formal specification of the index file"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1514
|
|
msgid ""
|
|
"The index file format has a formal specification defined by the flex scanner "
|
|
"and bison parser used to parse the file. This can be found in the following "
|
|
"files in the libguestfs source tree:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1518
|
|
#, no-wrap
|
|
msgid ""
|
|
" builder/index-scan.l\n"
|
|
" builder/index-parse.y\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1521
|
|
msgid ""
|
|
"A tool called L<virt-index-validate(1)> is available to validate the index "
|
|
"file to ensure it is correct."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1524
|
|
msgid ""
|
|
"Note that the parser and tool can work on either the signed or unsigned "
|
|
"index file (ie. C<index> or C<index.asc>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1527
|
|
msgid "The index is always encoded in UTF-8."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../builder/virt-builder.pod:1529
|
|
msgid "CACHING"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:1531
|
|
msgid "Caching templates"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1533
|
|
msgid ""
|
|
"Since the templates are usually very large, downloaded templates are cached "
|
|
"in the user's home directory."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1536
|
|
msgid ""
|
|
"The location of the cache is C<$XDG_CACHE_HOME/virt-builder/> or "
|
|
"C<$HOME/.cache/virt-builder>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1539
|
|
msgid ""
|
|
"You can print out information about the cache directory, including which "
|
|
"guests are currently cached, by doing:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1544
|
|
msgid "The cache can be deleted if you want to save space by doing:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1548
|
|
msgid "You can download all (current) templates to the local cache by doing:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1552
|
|
msgid "To disable the template cache, use I<--no-cache>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1554
|
|
msgid ""
|
|
"Only templates are cached. The index and detached digital signatures are "
|
|
"not cached."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:1557
|
|
msgid "Caching packages"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1559
|
|
msgid ""
|
|
"Virt-builder uses L<curl(1)> to download files and it also uses the current "
|
|
"C<http_proxy> (etc) settings when installing packages (I<--install>, "
|
|
"I<--update>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1563
|
|
msgid ""
|
|
"You may therefore want to set those environment variables in order to "
|
|
"maximize the amount of local caching that happens. See L</ENVIRONMENT "
|
|
"VARIABLES> and L<curl(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:1567
|
|
msgid "Local mirrors"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1569
|
|
msgid ""
|
|
"To increase both speed and reliability of installing packages, you can set "
|
|
"up a local mirror of the target distribution, and point the guest package "
|
|
"manager at that."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1573
|
|
msgid ""
|
|
"Because of the order in which each phase of installation happens, you cannot "
|
|
"use I<--write> (to point the package manager at a repo) followed by "
|
|
"I<--install> (to install from that repo). The I<--write> and I<--install> "
|
|
"steps run in the opposite order, regardless of their order on the command "
|
|
"line. You have to do this using I<--run-command> instead of I<--install>."
|
|
msgstr ""
|
|
|
|
#. type: =head4
|
|
#: ../builder/virt-builder.pod:1580
|
|
msgid "Using a local mirror with Fedora"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1582
|
|
msgid "To install a Fedora guest using a local mirror:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1584
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder fedora 20 \\\n"
|
|
" --edit '/etc/yum.repos.d/fedora.repo:\n"
|
|
" s{.*baseurl=.*}{baseurl=http://example.com/mirror/};\n"
|
|
" s{.*metalink=.*}{};\n"
|
|
" ' \\\n"
|
|
" --edit '/etc/yum.repos.d/fedora-updates.repo:\n"
|
|
" s{.*baseurl=.*}{baseurl=http://example.com/mirror-updates/};\n"
|
|
" s{.*metalink=.*}{};\n"
|
|
" ' \\\n"
|
|
" --run-command 'yum -y update' \\\n"
|
|
" --run-command 'yum -y install pkg1 pkg2 ...'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head4
|
|
#: ../builder/virt-builder.pod:1596
|
|
msgid "Using a local mirror with Debian"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1598
|
|
msgid ""
|
|
"Assuming that you are using C<apt-proxy> to mirror the repository, you "
|
|
"should create a new C<sources.list> file to point to your proxy (see "
|
|
"L<https://help.ubuntu.com/community/AptProxy>) and then do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-builder.pod:1602
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-builder fedora 20 \\\n"
|
|
" --upload sources.list:/etc/apt/sources.list \\\n"
|
|
" --run-command 'apt-get -y update' \\\n"
|
|
" --run-command 'apt-get -y install pkg1 pkg2 ...'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../builder/virt-builder.pod:1607
|
|
msgid "DIGITAL SIGNATURES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1609
|
|
msgid ""
|
|
"Virt-builder uses GNU Privacy Guard (GnuPG or gpg) to verify that the index "
|
|
"and templates have not been tampered with."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1612
|
|
msgid "The source points to an index file, which is optionally signed."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1614
|
|
msgid ""
|
|
"Virt-builder downloads the index and checks that the signature is valid and "
|
|
"the signer's fingerprint matches the specified fingerprint (ie. the one "
|
|
"specified in I<gpgkey=..> in the I<.conf>, or with I<--fingerprint>, in that "
|
|
"order)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1619
|
|
msgid ""
|
|
"For checking against the built-in public key/fingerprint, this requires "
|
|
"importing the public key into the user's local gpg keyring (that's just the "
|
|
"way that gpg works)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1623
|
|
msgid "When a template is downloaded, its signature is checked in the same way."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1626
|
|
msgid ""
|
|
"Although the signatures are optional, if you don't have them then "
|
|
"virt-builder users will have to use I<--no-check-signature> on the command "
|
|
"line. This prevents an attacker from replacing the signed index file with "
|
|
"an unsigned index file and having virt-builder silently work without "
|
|
"checking the signature. In any case it is highly recommended that you "
|
|
"always create signed index and templates."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../builder/virt-builder.pod:1633 ../src/guestfs.pod:3367
|
|
msgid "ARCHITECTURE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1635
|
|
msgid ""
|
|
"Virt-builder can build a guest for any architecture no matter what the host "
|
|
"architecture is. For example an x86-64 guest on an ARM host."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1638
|
|
msgid ""
|
|
"However certain options may not work correctly, specifically options that "
|
|
"require running commands in the guest during the build process: "
|
|
"I<--install>, I<--update>, I<--run>, I<--run-command>. You may need to "
|
|
"replace these with their firstboot-equivalents."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1643
|
|
msgid ""
|
|
"An x86-64 host building 32 bit i686 guests should work without any special "
|
|
"steps."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../builder/virt-builder.pod:1646 ../src/guestfs.pod:1913 ../sysprep/virt-sysprep.pod:490
|
|
msgid "SECURITY"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1648
|
|
msgid ""
|
|
"Virt-builder does not need to run as root (in fact, should not be run as "
|
|
"root), and doesn't use setuid, C<sudo> or any similar mechanism."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1651
|
|
msgid ""
|
|
"I<--install>, I<--update>, I<--run> and I<--run-command> are implemented "
|
|
"using an appliance (a small virtual machine) so these commands do not run on "
|
|
"the host. If you are using the libguestfs libvirt backend and have SELinux "
|
|
"enabled then the virtual machine is additionally encapsulated in an SELinux "
|
|
"container (sVirt)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1657
|
|
msgid ""
|
|
"However these options will have access to the host's network and since the "
|
|
"template may contain untrusted code, the code might try to access host "
|
|
"network resources which it should not. You can use I<--no-network> to "
|
|
"prevent this."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1662
|
|
msgid ""
|
|
"Firstboot commands run in the context of the guest when it is booted, and so "
|
|
"the security of your hypervisor / cloud should be considered."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1665
|
|
msgid ""
|
|
"Virt-builder injects a random seed into every guest which it builds. This "
|
|
"helps to ensure that TCP sequence numbers, UUIDs, ssh host keys etc are "
|
|
"truly random when the guest boots."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1669
|
|
msgid "You should check digital signatures and not ignore any signing errors."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../builder/virt-builder.pod:1671
|
|
msgid "CLONES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1673
|
|
msgid ""
|
|
"If you wish to create many new guests of the same type, it is tempting to "
|
|
"run virt-builder once and then copy the output file. You should B<not> do "
|
|
"this. You should run virt-builder once for each new guest you need."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1678
|
|
msgid ""
|
|
"The reason is that each clone needs to have (at least) a separate random "
|
|
"seed, and possibly other unique features (such as filesystem UUIDs) in "
|
|
"future versions of virt-builder."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1682
|
|
msgid ""
|
|
"Another thing you should I<not> do is to boot the guest, then clone the "
|
|
"booted disk image. The reason is that some guests create unique machine "
|
|
"IDs, SSH host keys and so on at first boot, and you would not want clones to "
|
|
"have duplicate identities."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1687
|
|
msgid "See also: L<virt-sysprep(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../builder/virt-builder.pod:1689
|
|
msgid "PERFORMANCE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1691
|
|
msgid ""
|
|
"The most important aspect of getting good performance is caching. Templates "
|
|
"gets downloaded into the cache the first time they are used, or if you use "
|
|
"the I<--cache-all-templates> option. See L</CACHING> above for further "
|
|
"information."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1696
|
|
msgid ""
|
|
"Packages required for the I<--install> and I<--update> options are "
|
|
"downloaded using the host network connection. Setting the C<http_proxy>, "
|
|
"C<https_proxy> and C<ftp_proxy> environment variables to point to a local "
|
|
"web cache may ensure they only need to be downloaded once. You can also try "
|
|
"using a local package repository, although this can be complex to set up and "
|
|
"varies according to which Linux distro you are trying to install."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:1704
|
|
msgid "Using I<--no-sync>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1706
|
|
msgid ""
|
|
"Use I<--no-sync>. However read the caveats in the L</OPTIONS> section "
|
|
"above, since this can cause disk corruption if not used correctly."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:1709
|
|
msgid "Skipping virt-resize"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1711
|
|
msgid ""
|
|
"Virt-builder can skip the virt-resize step under certain conditions. This "
|
|
"makes virt-builder much faster. The conditions are:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1718
|
|
msgid "the output must be a regular file (not a block device), B<and>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1722
|
|
msgid "the user did B<not> use the I<--size> option, B<and>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1726
|
|
msgid "the output format is the same as the template format (usually raw)."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:1730
|
|
msgid "pxzcat"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1732
|
|
msgid ""
|
|
"Virt-builder uses an internal implementation of pxzcat (parallel xzcat) if "
|
|
"liblzma was found at build time. If liblzma was not found at build time, "
|
|
"regular C<xzcat> is used which is single-threaded."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../builder/virt-builder.pod:1736
|
|
msgid "User-Mode Linux"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1738
|
|
msgid ""
|
|
"You can use virt-builder with the User-Mode Linux (UML) backend. This may "
|
|
"be faster when running virt-builder inside a virtual machine (eg. in the "
|
|
"cloud)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1742
|
|
msgid ""
|
|
"To enable the UML backend, read the instructions in L<guestfs(3)/USER-MODE "
|
|
"LINUX BACKEND>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1745
|
|
msgid ""
|
|
"Currently you have to use the I<--no-network> option. This should be fixed "
|
|
"in a future version."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1748
|
|
msgid ""
|
|
"The qcow2 output format is not supported by UML. You can only create "
|
|
"raw-format guests."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../builder/virt-builder.pod:1751 ../src/guestfs.pod:479
|
|
msgid "SELINUX"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1753
|
|
msgid ""
|
|
"Guests which use SELinux (such as Fedora and Red Hat Enterprise Linux) "
|
|
"require that each file has a correct SELinux label."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1756
|
|
msgid ""
|
|
"Virt-builder does not know how to give new files a label, so there are two "
|
|
"possible strategies it can use to ensure correct labelling:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1761
|
|
msgid "Using I<--selinux-relabel>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1763
|
|
msgid ""
|
|
"This runs L<fixfiles(8)> just before finalizing the guest, which sets "
|
|
"SELinux labels correctly in the disk image."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1766
|
|
msgid ""
|
|
"Sometimes fixfiles is not possible during installation, in which case this "
|
|
"option falls back on:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1769
|
|
msgid "Touching C</.autorelabel>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1771
|
|
msgid ""
|
|
"Guest templates may already contain a file called C</.autorelabel>, or it is "
|
|
"touched if I<--selinux-relabel> cannot run fixfiles."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1774
|
|
msgid ""
|
|
"For guests that use SELinux, this causes fixfiles to run at first boot. "
|
|
"Guests will reboot themselves once the first time you use them, which is "
|
|
"normal and harmless."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1782
|
|
msgid ""
|
|
"For other environment variables which affect all libguestfs programs, see "
|
|
"L<guestfs(3)/ENVIRONMENT VARIABLES>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1787
|
|
msgid "C<http_proxy>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1789
|
|
msgid "C<https_proxy>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1791
|
|
msgid "C<no_proxy>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1793
|
|
msgid ""
|
|
"Set the proxy for downloads. These environment variables (and more) are "
|
|
"actually interpreted by L<curl(1)>, not virt-builder."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1796
|
|
msgid "C<HOME>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1798
|
|
msgid ""
|
|
"Used to determine the location of the template cache, and the location of "
|
|
"the user' sources. See L</CACHING> and L</SOURCES OF TEMPLATES>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1801
|
|
msgid "C<XDG_CACHE_HOME>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1803
|
|
msgid "Used to determine the location of the template cache. See L</CACHING>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1805
|
|
msgid "C<XDG_CONFIG_HOME>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1807
|
|
msgid ""
|
|
"Used to determine the location of the user' sources. See L</SOURCES OF "
|
|
"TEMPLATES>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-builder.pod:1810
|
|
msgid "C<XDG_CONFIG_DIRS>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1812
|
|
msgid ""
|
|
"Used to determine the location of the system sources. See L</SOURCES OF "
|
|
"TEMPLATES>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1819 ../cat/virt-cat.pod:246 ../cat/virt-filesystems.pod:392 ../cat/virt-ls.pod:488 ../daemon/guestfsd.pod:75 ../df/virt-df.pod:262 ../diff/virt-diff.pod:250 ../edit/virt-edit.pod:359 ../fuse/guestmount.pod:407 ../inspector/virt-inspector.pod:498 ../resize/virt-resize.pod:753 ../sparsify/virt-sparsify.pod:309
|
|
msgid "This program returns 0 if successful, or non-zero if there was an error."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1824
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-copy-out(1)>, "
|
|
"L<virt-install(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
|
|
"L<virt-sysprep(1)>, L<oz-install(1)>, L<gpg(1)>, L<curl(1)>, "
|
|
"L<virt-make-fs(1)>, L<genisoimage(1)>, L<fixfiles(8)>, "
|
|
"L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-builder.pod:1846 ../builder/virt-index-validate.pod:92 ../fuse/guestunmount.pod:164 ../golang/examples/guestfs-golang.pod:99
|
|
msgid "Copyright (C) 2013 Red Hat Inc."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-index-validate.pod:5
|
|
msgid "virt-index-validate - Validate virt-builder index file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../builder/virt-index-validate.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-index-validate index\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-index-validate.pod:13
|
|
msgid ""
|
|
"L<virt-builder(1)> uses an index file to store metadata about templates that "
|
|
"it knows how to use. This index file has a specific format which "
|
|
"virt-index-validate knows how to validate."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-index-validate.pod:17
|
|
msgid ""
|
|
"Note that virt-index-validate can validate either the signed or unsigned "
|
|
"index file (ie. either C<index> or C<index.asc>). It can only validate a "
|
|
"local file, not a URL."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-index-validate.pod:25
|
|
msgid "B<--compat-1.24.0>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-index-validate.pod:27
|
|
msgid ""
|
|
"Check for compatibility with virt-builder 1.24.0. (Using this option "
|
|
"implies I<--compat-1.24.1>, so you don't need to use both.)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-index-validate.pod:30 ../builder/virt-index-validate.pod:49
|
|
msgid "In particular:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-index-validate.pod:36
|
|
msgid ""
|
|
"This version of virt-builder could not handle C<[...]> (square brackets) in "
|
|
"field names (eg. C<checksum[sha512]=...>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-index-validate.pod:41
|
|
msgid "It required detached signatures (C<sig=...>)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../builder/virt-index-validate.pod:45
|
|
msgid "B<--compat-1.24.1>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-index-validate.pod:47
|
|
msgid "Check for compatibility with virt-builder E<ge> 1.24.1."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-index-validate.pod:55
|
|
msgid ""
|
|
"This version of virt-builder could not handle C<.> (period) in field names "
|
|
"or C<,> (comma) in subfield names."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-index-validate.pod:60
|
|
msgid "It could not handle comments appearing in the file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-index-validate.pod:78
|
|
msgid ""
|
|
"This program returns 0 if the index file validates, or non-zero if there was "
|
|
"an error."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../builder/virt-index-validate.pod:83
|
|
msgid "L<virt-builder(1)>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:5
|
|
msgid "virt-cat - Display files in a virtual machine"
|
|
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
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-cat domname file\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-cat.pod:17
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-cat disk.img file\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:21
|
|
msgid ""
|
|
"C<virt-cat> is a command line tool to display the contents of C<file> where "
|
|
"C<file> exists in the named virtual machine (or disk image)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:24
|
|
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 '/')."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:28
|
|
msgid ""
|
|
"C<virt-cat> can be used to quickly view a file. To edit a file, use "
|
|
"C<virt-edit>. For more complex cases you should look at the L<guestfish(1)> "
|
|
"tool (see L</USING GUESTFISH> below)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:34
|
|
msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-cat.pod:37
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-cat -d mydomain /etc/fstab\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:39
|
|
msgid "List syslog messages from a VM disk image file:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-cat.pod:41
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-cat -a disk.img /var/log/messages | tail\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
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-cat -d mydomain /var/log/messages | \\\n"
|
|
" grep 'dhclient: bound to' | tail\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:48
|
|
msgid "Find out what packages were recently installed:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-cat.pod:50
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-cat -d mydomain /var/log/yum.log | tail\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../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 ""
|
|
" virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
|
|
" who /tmp/utmp\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:57
|
|
msgid "or who was logged on:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-cat.pod:59
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
|
|
" last -f /tmp/wtmp\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103 ../cat/virt-ls.pod:263 ../df/virt-df.pod:85 ../edit/virt-edit.pod:74 ../inspector/virt-inspector.pod:66 ../rescue/virt-rescue.pod:127
|
|
msgid ""
|
|
"Add I<file> 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-cat.pod:104 ../cat/virt-filesystems.pod:154 ../cat/virt-ls.pod:310 ../diff/virt-diff.pod:129 ../edit/virt-edit.pod:118 ../fish/guestfish.pod:220 ../fuse/guestmount.pod:210 ../inspector/virt-inspector.pod:91
|
|
msgid "B<--echo-keys>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:106
|
|
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: verbatim
|
|
#: ../cat/virt-cat.pod:122
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-cat --format=raw -a disk.img file\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-cat.pod:126
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-cat --format=raw -a disk.img --format -a another.img file\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-cat.pod:135 ../cat/virt-filesystems.pod:206 ../cat/virt-ls.pod:357 ../diff/virt-diff.pod:174 ../edit/virt-edit.pod:164 ../fish/guestfish.pod:292 ../fuse/guestmount.pod:247 ../inspector/virt-inspector.pod:113
|
|
msgid "B<--keys-from-stdin>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:137 ../cat/virt-filesystems.pod:208 ../cat/virt-ls.pod:359 ../diff/virt-diff.pod:176 ../edit/virt-edit.pod:166 ../fish/guestfish.pod:294 ../fuse/guestmount.pod:249 ../inspector/virt-inspector.pod:115
|
|
msgid ""
|
|
"Read key or passphrase parameters from stdin. The default is to try to read "
|
|
"passphrases from the user by opening C</dev/tty>."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:439 ../edit/virt-edit.pod:187 ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:267
|
|
msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:160
|
|
msgid "Previous versions of virt-cat allowed you to write either:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-cat.pod:162
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-cat disk.img [disk.img ...] file\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:164 ../cat/virt-ls.pod:445 ../edit/virt-edit.pod:193 ../inspector/virt-inspector.pod:149 ../rescue/virt-rescue.pod:273
|
|
msgid "or"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-cat.pod:166
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-cat guestname file\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:168 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:197 ../inspector/virt-inspector.pod:153 ../rescue/virt-rescue.pod:277
|
|
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:172 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:201 ../inspector/virt-inspector.pod:157 ../rescue/virt-rescue.pod:281
|
|
msgid "For compatibility the old style is still supported."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../cat/virt-cat.pod:174 ../edit/virt-edit.pod:265 ../fish/guestfish.pod:888
|
|
msgid "WINDOWS PATHS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:176
|
|
msgid ""
|
|
"C<virt-cat> has a limited ability to understand Windows drive letters and "
|
|
"paths (eg. C<E:\\foo\\bar.txt>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:270
|
|
msgid "If and only if the guest is running Windows then:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:185 ../edit/virt-edit.pod:276
|
|
msgid ""
|
|
"Drive letter prefixes like C<C:> are resolved against the Windows Registry "
|
|
"to the correct filesystem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:190 ../edit/virt-edit.pod:281
|
|
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:195
|
|
msgid ""
|
|
"The path is resolved case insensitively to locate the file that should be "
|
|
"displayed."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:291
|
|
msgid "There are some known shortcomings:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:206 ../edit/virt-edit.pod:297
|
|
msgid "Some NTFS symbolic links may not be followed correctly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:210 ../edit/virt-edit.pod:301
|
|
msgid "NTFS junction points that cross filesystems are not followed."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../cat/virt-cat.pod:214 ../edit/virt-edit.pod:305
|
|
msgid "USING GUESTFISH"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:216
|
|
msgid ""
|
|
"L<guestfish(1)> is a more powerful, lower level tool which you can use when "
|
|
"C<virt-cat> doesn't work."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:219
|
|
msgid "Using C<virt-cat> is approximately equivalent to doing:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-cat.pod:221
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --ro -i -d domname download file -\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:223
|
|
msgid ""
|
|
"where C<domname> is the name of the libvirt guest, and C<file> is the full "
|
|
"path to the file. Note the final C<-> (meaning \"output to stdout\")."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:227
|
|
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:232
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:234
|
|
msgid ""
|
|
"where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
|
|
"the disk image, and C<file> is the full path to the file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:251
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
|
|
"L<virt-tar-out(1)>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-cat.pod:264 ../cat/virt-filesystems.pod:412 ../inspector/virt-inspector.pod:526 ../ocaml/examples/guestfs-ocaml.pod:99 ../python/examples/guestfs-python.pod:73 ../resize/virt-resize.pod:785 ../ruby/examples/guestfs-ruby.pod:56
|
|
msgid "Copyright (C) 2010-2012 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<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
|
|
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<virt-resize(1)>). If you are curious about what an "
|
|
"unknown disk image contains, use this tool along with L<virt-inspector(1)>."
|
|
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</dev/sda1> 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:116 ../diff/virt-diff.pod:62 ../tools/virt-list-filesystems:122
|
|
msgid "B<--all>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:118
|
|
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:123
|
|
msgid "See also I<--long>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:125
|
|
msgid "B<--blkdevs>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:127
|
|
msgid "B<--block-devices>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:129
|
|
msgid "Display block devices."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:297 ../df/virt-df.pod:108 ../diff/virt-diff.pod:99
|
|
msgid "B<--csv>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:299 ../df/virt-df.pod:110 ../diff/virt-diff.pod:101
|
|
msgid ""
|
|
"Write out the results in CSV format (comma-separated values). This format "
|
|
"can be imported easily into databases and spreadsheets, but read L</NOTE "
|
|
"ABOUT CSV FORMAT> below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:156
|
|
msgid ""
|
|
"When prompting for keys and passphrases, virt-filesystems 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:161
|
|
msgid "B<--extra>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:163
|
|
msgid ""
|
|
"This causes filesystems that are not ordinary, mountable filesystems to be "
|
|
"displayed. This category includes swapspace, and filesystems that are empty "
|
|
"or contain unknown data."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:167
|
|
msgid "This option implies I<--filesystems>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:169
|
|
msgid "B<--filesystems>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:171
|
|
msgid ""
|
|
"Display mountable filesystems. If no display option was selected then this "
|
|
"option is implied."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:174
|
|
msgid "With I<--extra>, non-mountable filesystems are shown too."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-filesystems.pod:187
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-filesystems --format=raw -a disk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-filesystems.pod:191
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-filesystems --format=raw -a disk.img --format -a another.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:200 ../cat/virt-ls.pod:348 ../df/virt-df.pod:145 ../diff/virt-diff.pod:165 ../fish/guestfish.pod:162 ../tools/virt-list-partitions:110
|
|
msgid "B<-h>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:202 ../cat/virt-ls.pod:350 ../df/virt-df.pod:147 ../diff/virt-diff.pod:167 ../tools/virt-list-partitions:112
|
|
msgid "B<--human-readable>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:204
|
|
msgid "In I<--long> mode, display sizes in human-readable format."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:213 ../cat/virt-ls.pod:364 ../tools/virt-list-filesystems:111 ../tools/virt-list-partitions:122
|
|
msgid "B<--long>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:215
|
|
msgid "Display extra columns of data (\"long format\")."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:217
|
|
msgid "A title row is added unless you also specify I<--no-title>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:219
|
|
msgid ""
|
|
"The extra columns displayed depend on what output you select, and the "
|
|
"ordering of columns may change in future versions. Use the title row, "
|
|
"I<--csv> output and/or L<csvtool(1)> to match columns to data in external "
|
|
"programs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:224
|
|
msgid ""
|
|
"Use I<-h> if you want sizes to be displayed in human-readable format. The "
|
|
"default is to show raw numbers of I<bytes>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:227
|
|
msgid "Use I<--uuid> to display UUIDs too."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:229
|
|
msgid "B<--lvs>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:231
|
|
msgid "B<--logvols>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:233
|
|
msgid "B<--logical-volumes>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:235
|
|
msgid ""
|
|
"Display LVM logical volumes. In this mode, these are displayed irrespective "
|
|
"of whether the LVs contain filesystems."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:238
|
|
msgid "B<--no-title>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:240
|
|
msgid "In I<--long> mode, don't add a title row."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:242
|
|
msgid ""
|
|
"Note that the order of the columns is not fixed, and may change in future "
|
|
"versions of virt-filesystems, so using this option may give you unexpected "
|
|
"surprises."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:246
|
|
msgid "B<--parts>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:248
|
|
msgid "B<--partitions>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:250
|
|
msgid ""
|
|
"Display partitions. In this mode, these are displayed irrespective of "
|
|
"whether the partitions contain filesystems."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:253
|
|
msgid "B<--pvs>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:255
|
|
msgid "B<--physvols>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:257
|
|
msgid "B<--physical-volumes>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:259
|
|
msgid "Display LVM physical volumes."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:263
|
|
msgid "B<--uuids>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:265
|
|
msgid "In I<--long> mode, display UUIDs as well."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:279
|
|
msgid "B<--vgs>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:281
|
|
msgid "B<--volgroups>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:283
|
|
msgid "B<--volume-groups>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:285
|
|
msgid "Display LVM volume groups."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../cat/virt-filesystems.pod:293
|
|
msgid "COLUMNS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:295
|
|
msgid ""
|
|
"Note that columns in the output are subject to reordering and change in "
|
|
"future versions of this tool."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:300
|
|
msgid "B<Name>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:302
|
|
msgid "The filesystem, partition, block device or LVM name."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:304
|
|
msgid ""
|
|
"For device and partition names these are displayed as canonical libguestfs "
|
|
"names, so that for example C</dev/sda2> is the second partition on the first "
|
|
"device."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:308
|
|
msgid ""
|
|
"If the I<--long> option is B<not> specified, then only the name column is "
|
|
"shown in the output."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:311
|
|
msgid "B<Type>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:313
|
|
msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:315
|
|
msgid "B<VFS>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:317
|
|
msgid ""
|
|
"If there is a filesystem, then this column displays the filesystem type if "
|
|
"one could be detected, eg. C<ext4>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:320
|
|
msgid "B<Label>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:322
|
|
msgid ""
|
|
"If the object has a label (used for identifying and mounting filesystems) "
|
|
"then this column contains the label."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:325
|
|
msgid "B<MBR>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:327
|
|
msgid ""
|
|
"The partition type byte, displayed as a two digit hexadecimal number. A "
|
|
"comprehensive list of partition types can be found here: "
|
|
"L<http://www.win.tue.nl/~aeb/partitions/partition_types-1.html>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:331
|
|
msgid "This is only applicable for DOS (MBR) partitions."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:333
|
|
msgid "B<Size>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:335
|
|
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:338
|
|
msgid "B<Parent>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:340
|
|
msgid "The parent column records the parent relationship between objects."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:342
|
|
msgid ""
|
|
"For example, if the object is a partition, then this column contains the "
|
|
"name of the containing device. If the object is a logical volume, then this "
|
|
"column is the name of the volume group."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:346
|
|
msgid ""
|
|
"If there is more than one parent, then this column is (internal to the "
|
|
"column) a comma-separated list, eg. C</dev/sda,/dev/sdb>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-filesystems.pod:349
|
|
msgid "B<UUID>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:351
|
|
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:355
|
|
msgid "The UUID is only displayed if the I<--uuid> option is given."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:455 ../df/virt-df.pod:229 ../diff/virt-diff.pod:224
|
|
msgid "NOTE ABOUT CSV FORMAT"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:361 ../cat/virt-ls.pod:457 ../df/virt-df.pod:231 ../diff/virt-diff.pod:226
|
|
msgid ""
|
|
"Comma-separated values (CSV) is a deceptive format. It I<seems> like it "
|
|
"should be easy to parse, but it is definitely not easy to parse."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:364 ../cat/virt-ls.pod:460 ../df/virt-df.pod:234 ../diff/virt-diff.pod:229
|
|
msgid ""
|
|
"Myth: Just split fields at commas. Reality: This does I<not> work "
|
|
"reliably. This example has two columns:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-filesystems.pod:367 ../cat/virt-ls.pod:463 ../df/virt-df.pod:237 ../diff/virt-diff.pod:232
|
|
#, no-wrap
|
|
msgid ""
|
|
" \"foo,bar\",baz\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:369 ../cat/virt-ls.pod:465 ../df/virt-df.pod:239 ../diff/virt-diff.pod:234
|
|
msgid ""
|
|
"Myth: Read the file one line at a time. Reality: This does I<not> work "
|
|
"reliably. This example has one row:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-filesystems.pod:372 ../cat/virt-ls.pod:468 ../df/virt-df.pod:242 ../diff/virt-diff.pod:237
|
|
#, no-wrap
|
|
msgid ""
|
|
" \"foo\n"
|
|
" bar\",baz\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:471 ../df/virt-df.pod:245 ../diff/virt-diff.pod:240
|
|
msgid ""
|
|
"For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
|
|
"packaged in major Linux distributions)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:378 ../cat/virt-ls.pod:474 ../df/virt-df.pod:248 ../diff/virt-diff.pod:243
|
|
msgid ""
|
|
"For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
|
|
"or Python's built-in csv library)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:381 ../cat/virt-ls.pod:477 ../df/virt-df.pod:251 ../diff/virt-diff.pod:246
|
|
msgid "Most spreadsheets and databases can import CSV directly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-filesystems.pod:397
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
|
|
"L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, "
|
|
"L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:5
|
|
msgid "virt-ls - List files in a virtual machine"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-ls.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls [--options] -d domname directory [directory ...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-ls.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory "
|
|
"...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:13 ../df/virt-df.pod:19 ../rescue/virt-rescue.pod:15
|
|
msgid "Old style:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-ls.pod:15
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls [--options] domname directory\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-ls.pod:17
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls [--options] disk.img [disk.img ...] directory\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:21
|
|
msgid ""
|
|
"C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
|
|
"more from a virtual machine or disk image."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:24
|
|
msgid ""
|
|
"Multiple directory names can be given, in which case the output from each is "
|
|
"concatenated."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:27
|
|
msgid ""
|
|
"To list directories from a libvirt guest use the I<-d> option to specify the "
|
|
"name of the guest. For a disk image, use the I<-a> option."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:31
|
|
msgid ""
|
|
"C<virt-ls> can do many simple file listings. For more complicated cases you "
|
|
"may need to use L<guestfish(1)>, or write a program directly to the "
|
|
"L<guestfs(3)> API."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:37
|
|
msgid "Get a list of all files and directories in a virtual machine:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-ls.pod:39
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls -R -d guest /\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:41 ../examples/guestfs-testing.pod:277
|
|
msgid "List all setuid or setgid programs in a Linux virtual machine:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-ls.pod:43
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls -lR -d guest / | grep '^- [42]'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:45 ../examples/guestfs-testing.pod:281
|
|
msgid "List all public-writable directories in a Linux virtual machine:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-ls.pod:47
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls -lR -d guest / | grep '^d ...7'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:49 ../examples/guestfs-testing.pod:285
|
|
msgid "List all Unix domain sockets in a Linux virtual machine:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-ls.pod:51
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls -lR -d guest / | grep '^s'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:53 ../examples/guestfs-testing.pod:289
|
|
msgid "List all regular files with filenames ending in '.png':"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-ls.pod:55
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:57
|
|
msgid "To display files larger than 10MB in home directories:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-ls.pod:59
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:61 ../examples/guestfs-testing.pod:297
|
|
msgid "Find everything modified in the last 7 days:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-ls.pod:63
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:65 ../examples/guestfs-testing.pod:301
|
|
msgid "Find regular files modified in the last 24 hours:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-ls.pod:67
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../cat/virt-ls.pod:69
|
|
msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:71
|
|
msgid ""
|
|
"Although it is possible to use virt-ls to look for differences, since "
|
|
"libguestfs E<ge> 1.26 a new tool is available called L<virt-diff(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../cat/virt-ls.pod:74
|
|
msgid "OUTPUT MODES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:76
|
|
msgid ""
|
|
"C<virt-ls> has four output modes, controlled by different combinations of "
|
|
"the I<-l> and I<-R> options."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../cat/virt-ls.pod:79
|
|
msgid "SIMPLE LISTING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:81
|
|
msgid "A simple listing is like the ordinary L<ls(1)> command:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-ls.pod:83
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ virt-ls -d guest /\n"
|
|
" bin\n"
|
|
" boot\n"
|
|
" [etc.]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../cat/virt-ls.pod:88
|
|
msgid "LONG LISTING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:90
|
|
msgid ""
|
|
"With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
|
|
"(more specifically, like the C<guestfs_ll> function)."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-ls.pod:93
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ virt-ls -l -d guest /\n"
|
|
" total 204\n"
|
|
" dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
|
|
" dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
|
|
" [etc.]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:99
|
|
msgid ""
|
|
"Note that while this is useful for displaying a directory, do not try "
|
|
"parsing this output in another program. Use L</RECURSIVE LONG LISTING> "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../cat/virt-ls.pod:103
|
|
msgid "RECURSIVE LISTING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:105
|
|
msgid ""
|
|
"With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
|
|
"and directories recursively:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-ls.pod:108
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ virt-ls -R -d guest /tmp\n"
|
|
" foo\n"
|
|
" foo/bar\n"
|
|
" [etc.]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:113
|
|
msgid ""
|
|
"To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
|
|
"converts C<\\0> characters to C<\\n>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../cat/virt-ls.pod:116
|
|
msgid "RECURSIVE LONG LISTING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:118
|
|
msgid ""
|
|
"Using I<-lR> options together changes the output to display directories "
|
|
"recursively, with file stats, and optionally other features such as "
|
|
"checksums and extended attributes."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:122
|
|
msgid ""
|
|
"Most of the interesting features of C<virt-ls> are only available when using "
|
|
"I<-lR> mode."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:125
|
|
msgid ""
|
|
"The fields are normally space-separated. Filenames are B<not> quoted, so "
|
|
"you cannot use the output in another program (because filenames can contain "
|
|
"spaces and other unsafe characters). If the guest was untrusted and someone "
|
|
"knew you were using C<virt-ls> to analyze the guest, they could play tricks "
|
|
"on you by creating filenames with embedded newline characters. To B<safely> "
|
|
"parse the output in another program, use the I<--csv> (Comma-Separated "
|
|
"Values) option."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:133
|
|
msgid ""
|
|
"Note that this output format is completely unrelated to the C<ls -lR> "
|
|
"command."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-ls.pod:136
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ virt-ls -lR -d guest /bin\n"
|
|
" d 0555 4096 /bin\n"
|
|
" - 0755 123 /bin/alsaunmute\n"
|
|
" - 0755 28328 /bin/arch\n"
|
|
" l 0777 4 /bin/awk -> gawk\n"
|
|
" - 0755 27216 /bin/basename\n"
|
|
" - 0755 943360 /bin/bash\n"
|
|
" [etc.]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:145
|
|
msgid "These basic fields are always shown:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-ls.pod:149
|
|
msgid "type"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:151
|
|
msgid ""
|
|
"The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
|
|
"(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
|
|
"link), C<s> (socket) or C<u> (unknown)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-ls.pod:161
|
|
msgid "permissions"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:163
|
|
msgid "The Unix permissions, displayed as a 4 digit octal number."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-ls.pod:165
|
|
msgid "size"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:167
|
|
msgid ""
|
|
"The size of the file. This is shown in bytes unless I<-h> or "
|
|
"I<--human-readable> option is given, in which case this is shown as a "
|
|
"human-readable number."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../cat/virt-ls.pod:171 ../fish/guestfish-actions.pod:6732
|
|
msgid "path"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:173
|
|
msgid "The full path of the file or directory."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-ls.pod:175
|
|
msgid "link"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:177
|
|
msgid "For symbolic links only, the link target."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:181
|
|
msgid ""
|
|
"In I<-lR> mode, additional command line options enable the display of more "
|
|
"fields."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:184
|
|
msgid ""
|
|
"With the I<--uids> flag, these additional fields are displayed before the "
|
|
"path:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-ls.pod:189
|
|
msgid "uid"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-ls.pod:191
|
|
msgid "gid"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:193
|
|
msgid ""
|
|
"The UID and GID of the owner of the file (displayed numerically). Note "
|
|
"these only make sense in the context of a Unix-like guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:198
|
|
msgid "With the I<--times> flag, these additional fields are displayed:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-ls.pod:202
|
|
msgid "atime"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:204
|
|
msgid "The time of last access."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-ls.pod:206
|
|
msgid "mtime"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:208
|
|
msgid "The time of last modification."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-ls.pod:210
|
|
msgid "ctime"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:212
|
|
msgid "The time of last status change."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:216
|
|
msgid ""
|
|
"The time fields are displayed as string dates and times, unless one of the "
|
|
"I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:219
|
|
msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-ls.pod:223
|
|
msgid "device"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:225
|
|
msgid ""
|
|
"The device containing the file (displayed as major:minor). This may not "
|
|
"match devices as known to the guest."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-ls.pod:228
|
|
msgid "inode"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:230
|
|
msgid "The inode number."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-ls.pod:232
|
|
msgid "nlink"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:234
|
|
msgid "The number of hard links."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-ls.pod:236
|
|
msgid "rdev"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:238
|
|
msgid "For block and char special files, the device (displayed as major:minor)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-ls.pod:241
|
|
msgid "blocks"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:243
|
|
msgid "The number of 512 byte blocks allocated to the file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:247
|
|
msgid ""
|
|
"With the I<--checksum> flag, the checksum of the file contents is shown "
|
|
"(only for regular files). Computing file checksums can take a considerable "
|
|
"amount of time."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-ls.pod:276 ../diff/virt-diff.pod:78
|
|
msgid "B<--checksum>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-ls.pod:278 ../diff/virt-diff.pod:80
|
|
msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:280
|
|
msgid ""
|
|
"Display checksum over file contents for regular files. With no argument, "
|
|
"this defaults to using I<md5>. Using an argument, you can select the "
|
|
"checksum type to use."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:284 ../cat/virt-ls.pod:321 ../cat/virt-ls.pod:354 ../cat/virt-ls.pod:387 ../cat/virt-ls.pod:397 ../cat/virt-ls.pod:404 ../cat/virt-ls.pod:411 ../cat/virt-ls.pod:418 ../diff/virt-diff.pod:171
|
|
msgid ""
|
|
"This option only has effect in I<-lR> output mode. See L</RECURSIVE LONG "
|
|
"LISTING> above."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:312
|
|
msgid ""
|
|
"When prompting for keys and passphrases, virt-ls 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-ls.pod:317 ../diff/virt-diff.pod:136
|
|
msgid "B<--extra-stats>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:319 ../diff/virt-diff.pod:138
|
|
msgid "Display extra stats."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-ls.pod:335
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls --format=raw -a disk.img /dir\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-ls.pod:339
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:352 ../diff/virt-diff.pod:169
|
|
msgid "Display file sizes in human-readable format."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-ls.pod:366
|
|
msgid "B<-R>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-ls.pod:368
|
|
msgid "B<--recursive>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:370
|
|
msgid ""
|
|
"Select the mode. With neither of these options, C<virt-ls> produces a "
|
|
"simple, flat list of the files in the named directory. See L</SIMPLE "
|
|
"LISTING>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:374
|
|
msgid ""
|
|
"C<virt-ls -l> produces a \"long listing\", which shows more detail. See "
|
|
"L</LONG LISTING>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:377
|
|
msgid ""
|
|
"C<virt-ls -R> produces a recursive list of files starting at the named "
|
|
"directory. See L</RECURSIVE LISTING>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:380
|
|
msgid ""
|
|
"C<virt-ls -lR> produces a recursive long listing which can be more easily "
|
|
"parsed. See L</RECURSIVE LONG LISTING>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-ls.pod:383 ../diff/virt-diff.pod:179
|
|
msgid "B<--times>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:385 ../diff/virt-diff.pod:181
|
|
msgid "Display time fields."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-ls.pod:390 ../diff/virt-diff.pod:183
|
|
msgid "B<--time-days>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:392 ../diff/virt-diff.pod:185
|
|
msgid "Display time fields as days before now (negative if in the future)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:394 ../diff/virt-diff.pod:187
|
|
msgid ""
|
|
"Note that C<0> in output means \"up to 1 day before now\", or that the age "
|
|
"of the file is between 0 and 86399 seconds."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-ls.pod:400 ../diff/virt-diff.pod:190
|
|
msgid "B<--time-relative>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:402 ../diff/virt-diff.pod:192
|
|
msgid "Display time fields as seconds before now (negative if in the future)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-ls.pod:407 ../diff/virt-diff.pod:194
|
|
msgid "B<--time-t>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:409 ../diff/virt-diff.pod:196
|
|
msgid "Display time fields as seconds since the Unix epoch."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../cat/virt-ls.pod:414 ../diff/virt-diff.pod:198
|
|
msgid "B<--uids>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:416 ../diff/virt-diff.pod:200
|
|
msgid "Display UID and GID fields."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:441
|
|
msgid "Previous versions of virt-ls allowed you to write either:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-ls.pod:443
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls disk.img [disk.img ...] /dir\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../cat/virt-ls.pod:447
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls guestname /dir\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../cat/virt-ls.pod:493
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, "
|
|
"L<virt-diff(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../daemon/guestfsd.pod:5
|
|
msgid "guestfsd - guestfs daemon"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../daemon/guestfsd.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfsd [-r] [-v|--verbose]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../daemon/guestfsd.pod:13
|
|
msgid ""
|
|
"C<guestfsd> is the libguestfs daemon. Normal users never need to run this "
|
|
"program explicitly. This man page discusses what C<guestfsd> does in both "
|
|
"the libguestfs appliance and when using libguestfs live."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../daemon/guestfsd.pod:17
|
|
msgid "LIBGUESTFS APPLIANCE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../daemon/guestfsd.pod:19
|
|
msgid ""
|
|
"For the architecture of the libguestfs appliance, see "
|
|
"L<guestfs(3)/ARCHITECTURE>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../daemon/guestfsd.pod:22
|
|
msgid ""
|
|
"After the appliance boots, the C</init> script in the appliance starts "
|
|
"C<guestfsd> with no arguments. C<guestfsd> opens the virtio-serial port on "
|
|
"a known path (see L</FILES>). It initiates the protocol (see "
|
|
"L<guestfs(3)/COMMUNICATION PROTOCOL>) and processes requests one at a time "
|
|
"from the library until the appliance is destroyed."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../daemon/guestfsd.pod:28
|
|
msgid ""
|
|
"Filesystems are mounted under C</sysroot> and all filesystem operations "
|
|
"happen relative to this directory."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../daemon/guestfsd.pod:31
|
|
msgid "LIBGUESTFS LIVE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../daemon/guestfsd.pod:33
|
|
msgid ""
|
|
"In the libguestfs live case, C<guestfsd -r> is started from the rc-scripts, "
|
|
"systemd, etc."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../daemon/guestfsd.pod:36
|
|
msgid ""
|
|
"The C<-r> option causes the daemon to operate on the root filesystem instead "
|
|
"of C</sysroot>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../daemon/guestfsd.pod:39
|
|
msgid ""
|
|
"Currently (because of limitations in virtio-serial) only one client can "
|
|
"connect at a time, and C<guestfsd> must be restarted after each client "
|
|
"disconnects. If libguestfs live were changed to use a different transport "
|
|
"such as TCP/IP then this limitation could be removed."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../daemon/guestfsd.pod:49
|
|
msgid "B<-?>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../daemon/guestfsd.pod:55 ../fish/guestfish.pod:400 ../fuse/guestmount.pod:336 ../rescue/virt-rescue.pod:198
|
|
msgid "B<-r>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../daemon/guestfsd.pod:57
|
|
msgid ""
|
|
"Set the root filesystem to be C</> (instead of the default which is "
|
|
"C</sysroot>). Also do not unmount filesystems when the daemon exits."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../daemon/guestfsd.pod:60
|
|
msgid "This option is used to enable libguestfs live."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../daemon/guestfsd.pod:68
|
|
msgid ""
|
|
"The verbose flag is also set if the Linux command line contains the "
|
|
"substring C<guestfs_verbose=1>."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../daemon/guestfsd.pod:78 ../fish/guestfish.pod:1539 ../fuse/guestmount.pod:386 ../rescue/virt-rescue.pod:402
|
|
msgid "FILES"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../daemon/guestfsd.pod:82
|
|
msgid "C</dev/virtio-ports/org.libguestfs.channel.0>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../daemon/guestfsd.pod:84
|
|
msgid "The virtio serial port which C<guestfsd> connects to."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../daemon/guestfsd.pod:86
|
|
msgid "C</proc/cmdline>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../daemon/guestfsd.pod:88
|
|
msgid ""
|
|
"The Linux command line is parsed to discover C<guestfs_*> flags. The "
|
|
"following flags are understood:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../daemon/guestfsd.pod:93
|
|
msgid "B<guestfs_verbose=1>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../daemon/guestfsd.pod:95
|
|
msgid ""
|
|
"Enable verbose messages. This flag is passed by the libguestfs library to "
|
|
"the appliance to make the daemon more verbose (it acts like the I<-v> flag "
|
|
"on the command line). Unrelated to the daemon, it also causes the appliance "
|
|
"init script to print out a lot more debugging information."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../daemon/guestfsd.pod:101
|
|
msgid "B<guestfs_channel=PATH>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../daemon/guestfsd.pod:103
|
|
msgid ""
|
|
"Set the path to the virtio-serial channel to something other than the "
|
|
"default (which is C</dev/virtio-ports/org.libguestfs.channel.0>). This is "
|
|
"used by the User-Mode Linux backend to use a regular emulated serial port "
|
|
"instead of virtio-serial."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../daemon/guestfsd.pod:108
|
|
msgid "B<guestfs_network=1>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../daemon/guestfsd.pod:110
|
|
msgid ""
|
|
"This is set if the appliance network is enabled (see "
|
|
"C<guestfs_set_network>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../daemon/guestfsd.pod:119
|
|
msgid "L<guestfs(3)>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../df/virt-df.pod:5
|
|
msgid "virt-df - Display free space on virtual filesystems"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../df/virt-df.pod:9
|
|
msgid "All guests:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../df/virt-df.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-df [--options]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../df/virt-df.pod:13
|
|
msgid "Single guest:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../df/virt-df.pod:15
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-df [--options] -d domname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../df/virt-df.pod:17
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-df [--options] -a disk.img [-a disk.img ...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../df/virt-df.pod:21
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-df [--options] domname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../df/virt-df.pod:23
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-df [--options] disk.img [disk.img ...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../df/virt-df.pod:27
|
|
msgid ""
|
|
"C<virt-df> is a command line tool to display free space on virtual machine "
|
|
"filesystems. Unlike other tools, it doesn't just display the size of disk "
|
|
"allocated to a virtual machine, but can look inside disk images to see how "
|
|
"much space is really being used."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../df/virt-df.pod:32
|
|
msgid ""
|
|
"If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
|
|
"to get a list of all active and inactive guests, and performs a C<df>-type "
|
|
"operation on each one in turn, printing out the results."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../df/virt-df.pod:36
|
|
msgid ""
|
|
"If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a "
|
|
"C<df>-type operation on either the single named libvirt domain, or on the "
|
|
"disk image(s) listed on the command line (which must all belong to a single "
|
|
"VM). B<In this mode (with arguments), C<virt-df> will only work for a "
|
|
"single guest>. If you want to run on multiple guests, then you have to "
|
|
"invoke C<virt-df> multiple times."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../df/virt-df.pod:43
|
|
msgid ""
|
|
"Use the I<--csv> option to get a format which can be easily parsed by other "
|
|
"programs. Other options are similar to the standard L<df(1)> command."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../df/virt-df.pod:49
|
|
msgid ""
|
|
"Show disk usage for a single libvirt guest called C<F14x64>. Make the "
|
|
"output human-readable:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../df/virt-df.pod:52
|
|
#, no-wrap
|
|
msgid ""
|
|
" # virt-df -d F14x64 -h\n"
|
|
" Filesystem Size Used Available Use%\n"
|
|
" F14x64:/dev/sda1 484M 66M 393M 14%\n"
|
|
" F14x64:/dev/vg_f13x64/lv_root 7.4G 3.4G 4.0G 46%\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../df/virt-df.pod:57
|
|
msgid "Show disk usage for a disk image file called C<test.img>:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../df/virt-df.pod:59
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ virt-df -a test1.img\n"
|
|
" Filesystem 1K-blocks Used Available Use%\n"
|
|
" test1.img:/dev/sda1 99099 1551 92432 2%\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../df/virt-df.pod:63
|
|
msgid ""
|
|
"If a single guest has multiple disks, use the I<-a> option repeatedly. A "
|
|
"plus sign (C<+>) is displayed for each additional disk. B<Note: Do not do "
|
|
"this with unrelated guest disks.>"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../df/virt-df.pod:67
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ virt-df -a Win7x32TwoDisks-a -a Win7x32TwoDisks-b \n"
|
|
" Filesystem 1K-blocks Used Available Use%\n"
|
|
" Win7x32TwoDisks-a+:/dev/sda1 102396 24712 77684 25%\n"
|
|
" Win7x32TwoDisks-a+:/dev/sda2 12478460 7403416 5075044 60%\n"
|
|
" Win7x32TwoDisks-a+:/dev/sdb1 521212 55728 465484 11%\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../df/virt-df.pod:132
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-df --format=raw -a disk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../df/virt-df.pod:136
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-df --format=raw -a disk.img --format -a another.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../df/virt-df.pod:149
|
|
msgid "Print sizes in human-readable format."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../df/virt-df.pod:151
|
|
msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../df/virt-df.pod:153 ../fish/guestfish.pod:261 ../fuse/guestmount.pod:239
|
|
msgid "B<-i>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../df/virt-df.pod:155
|
|
msgid "B<--inodes>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../df/virt-df.pod:157
|
|
msgid "Print inodes instead of blocks."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../df/virt-df.pod:159
|
|
msgid "B<--one-per-guest>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../df/virt-df.pod:161
|
|
msgid ""
|
|
"Since libguestfs 1.22, this is the default. This option does nothing and is "
|
|
"left here for backwards compatibility with older scripts."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../df/virt-df.pod:166
|
|
msgid ""
|
|
"Since libguestfs 1.22, virt-df is multithreaded and examines guests in "
|
|
"parallel. By default the number of threads to use is chosen based on the "
|
|
"amount of free memory available at the time that virt-df is started. You "
|
|
"can force virt-df to use at most C<nr_threads> by using the I<-P> option."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../df/virt-df.pod:181
|
|
msgid ""
|
|
"Note that only domains that we fetch from libvirt come with UUIDs. For disk "
|
|
"images, we still print the disk image name even when this option is "
|
|
"specified."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../df/virt-df.pod:203
|
|
msgid "STATVFS NUMBERS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../df/virt-df.pod:205
|
|
msgid ""
|
|
"C<virt-df> (and L<df(1)>) get information by issuing a L<statvfs(3)> 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:211
|
|
msgid "From the host"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../df/virt-df.pod:213 ../df/virt-df.pod:221
|
|
msgid "Run this command:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../df/virt-df.pod:215
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --ro -d GuestName -i statvfs /\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../df/virt-df.pod:217 ../df/virt-df.pod:225
|
|
msgid "(change C</> to see stats for other filesystems)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../df/virt-df.pod:219
|
|
msgid "From inside the guest"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../df/virt-df.pod:223
|
|
#, no-wrap
|
|
msgid ""
|
|
" python -c 'import os; s = os.statvfs (\"/\"); print s'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../df/virt-df.pod:267
|
|
msgid ""
|
|
"L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
|
|
"L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../diff/virt-diff.pod:5
|
|
msgid "virt-diff - Differences between files in two virtual machines"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../diff/virt-diff.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-diff [--options] -d domain1 -D domain2\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../diff/virt-diff.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-diff [--options] -a disk1.img [-a ...] -A disk2.img [-A ...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../diff/virt-diff.pod:15
|
|
msgid ""
|
|
"C<virt-diff> lists the differences between files in two virtual machines or "
|
|
"disk images. The usual use case is to show the changes in a VM after it has "
|
|
"been running for a while, by taking a snapshot, running the VM, and then "
|
|
"using this tool to show what changed between the new VM state and the old "
|
|
"snapshot."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../diff/virt-diff.pod:21
|
|
msgid ""
|
|
"This tool will find differences in filenames, file sizes, checksums, "
|
|
"extended attributes, file content and more from a virtual machine or disk "
|
|
"image. However it B<does not> look at the boot loader, unused space between "
|
|
"partitions or within filesystems, \"hidden\" sectors and so on. In other "
|
|
"words, it is not a security or forensics tool."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../diff/virt-diff.pod:27
|
|
msgid ""
|
|
"To specify two guests, you have to use the I<-a> or I<-d> option(s) for the "
|
|
"first guest, and the I<-A> or I<-D> option(s) for the second guest. The "
|
|
"common case is:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../diff/virt-diff.pod:31
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-diff -a old.img -A new.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../diff/virt-diff.pod:33
|
|
msgid "or using names known to libvirt:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../diff/virt-diff.pod:35
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-diff -d oldguest -D newguest\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../diff/virt-diff.pod:49
|
|
msgid ""
|
|
"Add I<file> which should be a disk image from the first virtual machine. If "
|
|
"the virtual machine has multiple block devices, you must supply all of them "
|
|
"with separate I<-a> options."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../diff/virt-diff.pod:56 ../sysprep/virt-sysprep.pod:57
|
|
msgid "B<-a> URI"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../diff/virt-diff.pod:58 ../sysprep/virt-sysprep.pod:59
|
|
msgid "B<--add> URI"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../diff/virt-diff.pod:64
|
|
msgid "Same as I<--extra-stats> I<--times> I<--uids> I<--xattrs>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../diff/virt-diff.pod:66
|
|
msgid "B<--atime>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../diff/virt-diff.pod:68
|
|
msgid ""
|
|
"The default is to ignore changes in file access times, since those are "
|
|
"unlikely to be interesting. Using this flag shows atime differences as "
|
|
"well."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../diff/virt-diff.pod:72
|
|
msgid "B<-A> file"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../diff/virt-diff.pod:74
|
|
msgid "B<-A> URI"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../diff/virt-diff.pod:76
|
|
msgid "Add a disk image from the second virtual machine."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../diff/virt-diff.pod:82
|
|
msgid ""
|
|
"Use a checksum over file contents to detect when regular files have changed "
|
|
"content."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../diff/virt-diff.pod:85
|
|
msgid ""
|
|
"With no argument, this defaults to using I<md5>. Using an argument, you can "
|
|
"select the checksum type to use. If the flag is omitted then file times and "
|
|
"size are used to determine if a file has changed."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../diff/virt-diff.pod:105
|
|
msgid "B<--dir-links>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../diff/virt-diff.pod:107
|
|
msgid ""
|
|
"The default is to ignore changed in the number of links in directory "
|
|
"entries, since those are unlikely to be interesting. Using this flag shows "
|
|
"changes to the nlink field of directories."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../diff/virt-diff.pod:111
|
|
msgid "B<--dir-times>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../diff/virt-diff.pod:113
|
|
msgid ""
|
|
"The default is to ignore changed times on directory entries, since those are "
|
|
"unlikely to be interesting. Using this flag shows changes to the time "
|
|
"fields of directories."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../diff/virt-diff.pod:121
|
|
msgid ""
|
|
"Add all the disks from the named libvirt guest, as the first guest. Domain "
|
|
"UUIDs can be used instead of names."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../diff/virt-diff.pod:124
|
|
msgid "B<-D> guest"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../diff/virt-diff.pod:126
|
|
msgid ""
|
|
"Add all the disks from the named libvirt guest, as the second guest. Domain "
|
|
"UUIDs can be used instead of names."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../diff/virt-diff.pod:131
|
|
msgid ""
|
|
"When prompting for keys and passphrases, virt-diff 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: textblock
|
|
#: ../diff/virt-diff.pod:144
|
|
msgid ""
|
|
"The default for the I<-a>/I<-A> option is to auto-detect the format of the "
|
|
"disk image. Using this forces the disk format for I<-a>/I<-A> options which "
|
|
"follow on the command line. Using I<--format> with no argument switches "
|
|
"back to auto-detection for subsequent I<-a>/I<-A> options."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../diff/virt-diff.pod:152
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-diff --format=raw -a disk.img [...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../diff/virt-diff.pod:156
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-diff --format=raw -a disk.img --format -a another.img [...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../diff/virt-diff.pod:218
|
|
msgid "B<--xattrs>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../diff/virt-diff.pod:220
|
|
msgid "Display extended attributes."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../diff/virt-diff.pod:255
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, "
|
|
"L<virt-ls(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:5
|
|
msgid "virt-edit - Edit a file in a virtual machine"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../edit/virt-edit.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-edit [--options] -d domname file [file ...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../edit/virt-edit.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../edit/virt-edit.pod:13
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../edit/virt-edit.pod:17
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-edit domname file\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:191
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-edit disk.img [disk.img ...] file\n"
|
|
"\n"
|
|
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:21 ../tools/virt-tar:63 ../tools/virt-win-reg:50
|
|
msgid "WARNING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:23
|
|
msgid ""
|
|
"You must I<not> use C<virt-edit> on live virtual machines. If you do this, "
|
|
"you risk disk corruption in the VM. C<virt-edit> tries to stop you from "
|
|
"doing this, but doesn't catch all cases."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:29
|
|
msgid ""
|
|
"C<virt-edit> is a command line tool to edit C<file> where each C<file> "
|
|
"exists in the named virtual machine (or disk image)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:32
|
|
msgid ""
|
|
"Multiple filenames can be given, in which case they are each edited in "
|
|
"turn. Each filename must be a full path, starting at the root directory "
|
|
"(starting with '/')."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:36
|
|
msgid "If you want to just view a file, use L<virt-cat(1)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:38
|
|
msgid ""
|
|
"For more complex cases you should look at the L<guestfish(1)> tool (see "
|
|
"L</USING GUESTFISH> below)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:41
|
|
msgid ""
|
|
"C<virt-edit> cannot be used to create a new file. L<guestfish(1)> can do "
|
|
"that and much more."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:46
|
|
msgid "Edit the named files interactively:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../edit/virt-edit.pod:48
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-edit -d mydomain /boot/grub/grub.conf\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../edit/virt-edit.pod:50
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-edit -d mydomain /etc/passwd\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:52
|
|
msgid "For Windows guests, some Windows paths are understood:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../edit/virt-edit.pod:54
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:56
|
|
msgid ""
|
|
"If Perl is installed, you can also edit files non-interactively (see "
|
|
"L</NON-INTERACTIVE EDITING> below). To change the init default level to 5:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../edit/virt-edit.pod:60
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../edit/virt-edit.pod:87
|
|
msgid "B<-b> extension"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../edit/virt-edit.pod:89
|
|
msgid "B<--backup> extension"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:91
|
|
msgid ""
|
|
"Create a backup of the original file I<in the guest disk image>. The backup "
|
|
"has the original filename with C<extension> added."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:94
|
|
msgid ""
|
|
"Usually the first character of C<extension> would be a dot C<.> so you would "
|
|
"write:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../edit/virt-edit.pod:97
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-edit -b .orig [etc]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:99
|
|
msgid "By default, no backup file is made."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../edit/virt-edit.pod:101 ../fish/guestfish.pod:193 ../fuse/guestmount.pod:180 ../inspector/virt-inspector.pod:73 ../tools/virt-list-filesystems:78 ../tools/virt-list-partitions:79 ../tools/virt-tar:126 ../tools/virt-win-reg:127
|
|
msgid "B<-c URI>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../edit/virt-edit.pod:103 ../fish/guestfish.pod:195 ../fuse/guestmount.pod:182 ../inspector/virt-inspector.pod:75 ../tools/virt-list-filesystems:80 ../tools/virt-list-partitions:81 ../tools/virt-tar:128 ../tools/virt-win-reg:129
|
|
msgid "B<--connect URI>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:108 ../tools/virt-list-filesystems:85 ../tools/virt-list-partitions:86 ../tools/virt-tar:133 ../tools/virt-win-reg:134
|
|
msgid ""
|
|
"If you specify guest block devices directly, then libvirt is not used at "
|
|
"all."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:120
|
|
msgid ""
|
|
"When prompting for keys and passphrases, virt-edit 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
|
|
#: ../edit/virt-edit.pod:125
|
|
msgid "B<-e> EXPR"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../edit/virt-edit.pod:127
|
|
msgid "B<--edit> EXPR"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../edit/virt-edit.pod:129
|
|
msgid "B<--expr> EXPR"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:131
|
|
msgid ""
|
|
"Instead of launching the external editor, non-interactively apply the Perl "
|
|
"expression C<EXPR> to each line in the file. See L</NON-INTERACTIVE "
|
|
"EDITING> below."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../edit/virt-edit.pod:140
|
|
msgid "B<--format> raw|qcow2|..."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../edit/virt-edit.pod:151
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-edit --format=raw -a disk.img file\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../edit/virt-edit.pod:155
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-edit --format=raw -a disk.img --format -a another.img file\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:189
|
|
msgid "Previous versions of virt-edit allowed you to write either:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../edit/virt-edit.pod:195
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-edit guestname file\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../edit/virt-edit.pod:203
|
|
msgid "NON-INTERACTIVE EDITING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:205
|
|
msgid ""
|
|
"C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
|
|
"administrator can interactively edit the file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:208
|
|
msgid ""
|
|
"There are two ways also to use C<virt-edit> from scripts in order to make "
|
|
"automated edits to files. (Note that although you I<can> use C<virt-edit> "
|
|
"like this, it's less error-prone to write scripts directly using the "
|
|
"libguestfs API and Augeas for configuration file editing.)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:214
|
|
msgid ""
|
|
"The first method is to temporarily set C<$EDITOR> to any script or program "
|
|
"you want to run. The script is invoked as C<$EDITOR tmpfile> and it should "
|
|
"update C<tmpfile> in place however it likes."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:218
|
|
msgid ""
|
|
"The second method is to use the I<-e> parameter of C<virt-edit> to run a "
|
|
"short Perl snippet in the style of L<sed(1)>. For example to replace all "
|
|
"instances of C<foo> with C<bar> in a file:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../edit/virt-edit.pod:222
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-edit -d domname filename -e 's/foo/bar/'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:224
|
|
msgid ""
|
|
"The full power of Perl regular expressions can be used (see L<perlre(1)>). "
|
|
"For example to delete root's password you could do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../edit/virt-edit.pod:227 ../examples/guestfs-recipes.pod:583
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:229
|
|
msgid ""
|
|
"What really happens is that the snippet is evaluated as a Perl expression "
|
|
"for each line of the file. The line, including the final C<\\n>, is passed "
|
|
"in C<$_> and the expression should update C<$_> or leave it unchanged."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:234
|
|
msgid ""
|
|
"To delete a line, set C<$_> to the empty string. For example, to delete the "
|
|
"C<apache> user account from the password file you can do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../edit/virt-edit.pod:237
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:239
|
|
msgid ""
|
|
"To insert a line, prepend or append it to C<$_>. However appending lines to "
|
|
"the end of the file is rather difficult this way since there is no concept "
|
|
"of \"last line of the file\" - your expression just doesn't get called "
|
|
"again. You might want to use the first method (setting C<$EDITOR>) if you "
|
|
"want to do this."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:245
|
|
msgid ""
|
|
"The variable C<$lineno> contains the current line number. As is "
|
|
"traditional, the first line in the file is number C<1>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:248
|
|
msgid ""
|
|
"The return value from the expression is ignored, but the expression may call "
|
|
"C<die> in order to abort the whole program, leaving the original file "
|
|
"untouched."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:252
|
|
msgid ""
|
|
"Remember when matching the end of a line that C<$_> may contain the final "
|
|
"C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
|
|
"newline then neither of these. Thus to match or substitute some text at the "
|
|
"end of a line, use this regular expression:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../edit/virt-edit.pod:257
|
|
#, no-wrap
|
|
msgid ""
|
|
" /some text(\\r?\\n)?$/\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:259
|
|
msgid ""
|
|
"Alternately, use the perl C<chomp> function, being careful not to chomp "
|
|
"C<$_> itself (since that would remove all newlines from the file):"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../edit/virt-edit.pod:263
|
|
#, no-wrap
|
|
msgid ""
|
|
" my $m = $_; chomp $m; $m =~ /some text$/\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:267
|
|
msgid ""
|
|
"C<virt-edit> has a limited ability to understand Windows drive letters and "
|
|
"paths (eg. C<E:\\foo\\bar.txt>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:286
|
|
msgid ""
|
|
"The path is resolved case insensitively to locate the file that should be "
|
|
"edited."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:307
|
|
msgid ""
|
|
"L<guestfish(1)> is a more powerful, lower level tool which you can use when "
|
|
"C<virt-edit> doesn't work."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:310
|
|
msgid "Using C<virt-edit> is approximately equivalent to doing:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../edit/virt-edit.pod:312
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --rw -i -d domname edit /file\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:314
|
|
msgid ""
|
|
"where C<domname> is the name of the libvirt guest, and C</file> is the full "
|
|
"path to the file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:317
|
|
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 edit a file on a disk image "
|
|
"directly, use:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../edit/virt-edit.pod:322
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:324
|
|
msgid ""
|
|
"where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
|
|
"the disk image to edit, and C</file> is the full path to the file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:328
|
|
msgid ""
|
|
"C<virt-edit> cannot create new files. Use the guestfish commands C<touch>, "
|
|
"C<write> or C<upload> instead:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../edit/virt-edit.pod:331
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --rw -i -d domname touch /newfile\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../edit/virt-edit.pod:333
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --rw -i -d domname write /newfile \"new content\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../edit/virt-edit.pod:335
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --rw -i -d domname upload localfile /newfile\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../edit/virt-edit.pod:341
|
|
msgid "C<EDITOR>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:343
|
|
msgid ""
|
|
"If set, this string is used as the editor. It may contain arguments, "
|
|
"eg. C<\"emacs -nw\">"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:346
|
|
msgid "If not set, C<vi> is used."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../edit/virt-edit.pod:364
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
|
|
"L<virt-tar-in(1)>, L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../erlang/examples/guestfs-erlang.pod:5
|
|
msgid "guestfs-erlang - How to use libguestfs from Erlang"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../erlang/examples/guestfs-erlang.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" {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<guestfs(3)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../erlang/examples/guestfs-erlang.pod:23 ../lua/examples/guestfs-lua.pod:33
|
|
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<erl-guestfs>. This program must be on the current PATH, or else you "
|
|
"should specify the full path to the program:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../erlang/examples/guestfs-erlang.pod:29
|
|
#, no-wrap
|
|
msgid ""
|
|
" {ok, G} = guestfs:create().\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../erlang/examples/guestfs-erlang.pod:31
|
|
#, no-wrap
|
|
msgid ""
|
|
" {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../erlang/examples/guestfs-erlang.pod:33
|
|
msgid "C<G> 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 ""
|
|
" ok = guestfs:close(G).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../erlang/examples/guestfs-erlang.pod:40 ../lua/examples/guestfs-lua.pod:58
|
|
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<Result> term (which could be a list, "
|
|
"string, tuple etc.). If there is nothing for the function to return, then "
|
|
"the atom C<ok> 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<Msg> is the error message (string) and C<Errno> is the Unix error "
|
|
"(integer)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../erlang/examples/guestfs-erlang.pod:70
|
|
msgid "C<Errno> can be zero. See L<guestfs(3)/guestfs_last_errno>."
|
|
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<erl-guestfs> from another version of libguestfs, "
|
|
"which you should not do."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../erlang/examples/guestfs-erlang.pod:78
|
|
msgid "C<Function> 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<Arg> is the name of the unknown argument."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../erlang/examples/guestfs-erlang.pod:89 ../golang/examples/guestfs-golang.pod:70 ../java/examples/guestfs-java.pod:73 ../lua/examples/guestfs-lua.pod:130 ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:32 ../python/examples/guestfs-python.pod:45 ../ruby/examples/guestfs-ruby.pod:28
|
|
msgid "EXAMPLE 1: CREATE A DISK IMAGE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../erlang/examples/guestfs-erlang.pod:91 ../golang/examples/guestfs-golang.pod:72 ../java/examples/guestfs-java.pod:75 ../lua/examples/guestfs-lua.pod:132 ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:34 ../python/examples/guestfs-python.pod:47 ../ruby/examples/guestfs-ruby.pod:30
|
|
msgid "@EXAMPLE1@"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../erlang/examples/guestfs-erlang.pod:93 ../golang/examples/guestfs-golang.pod:74 ../java/examples/guestfs-java.pod:77 ../lua/examples/guestfs-lua.pod:134 ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:36 ../python/examples/guestfs-python.pod:49 ../ruby/examples/guestfs-ruby.pod:32
|
|
msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../erlang/examples/guestfs-erlang.pod:95 ../golang/examples/guestfs-golang.pod:76 ../java/examples/guestfs-java.pod:79 ../lua/examples/guestfs-lua.pod:136 ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:38 ../python/examples/guestfs-python.pod:51 ../ruby/examples/guestfs-ruby.pod:34
|
|
msgid "@EXAMPLE2@"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../erlang/examples/guestfs-erlang.pod:99
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-golang(3)>, "
|
|
"L<guestfs-java(3)>, L<guestfs-lua(3)>, L<guestfs-ocaml(3)>, "
|
|
"L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
|
|
"L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../erlang/examples/guestfs-erlang.pod:118 ../examples/guestfs-testing.pod:399 ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57 ../java/examples/guestfs-java.pod:102 ../perl/examples/guestfs-perl.pod:61 ../sparsify/virt-sparsify.pod:358
|
|
msgid "Copyright (C) 2011-2012 Red Hat Inc."
|
|
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 <guestfs.h>\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. 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:20
|
|
#, 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 ""
|
|
|
|
#. 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<guestfs(3)>."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-examples.pod:25
|
|
msgid "EXAMPLE: CREATE A DISK IMAGE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-examples.pod:27
|
|
msgid "@CREATE_DISK@"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-examples.pod:29
|
|
msgid "EXAMPLE: INSPECT A VIRTUAL MACHINE DISK IMAGE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-examples.pod:31
|
|
msgid "@INSPECT_VM@"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-examples.pod:33
|
|
msgid "EXAMPLE: ENABLE DEBUGGING AND LOGGING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-examples.pod:35
|
|
msgid "@DEBUG_LOGGING@"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-examples.pod:37
|
|
msgid "EXAMPLE: DISPLAY THE OPERATING SYSTEM ICON OF A GUEST"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-examples.pod:39
|
|
msgid "@DISPLAY_ICON@"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-examples.pod:41
|
|
msgid "EXAMPLE: THE LIBVIRT AUTHENTICATION API"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-examples.pod:43
|
|
msgid "@LIBVIRT_AUTH@"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-examples.pod:45
|
|
msgid "EXAMPLE: THE MOUNT LOCAL API"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-examples.pod:47
|
|
msgid "@MOUNT_LOCAL@"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-examples.pod:49
|
|
msgid "EXAMPLE: MULTIPLE HANDLES AND THREADS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-examples.pod:51
|
|
msgid "@COPY_OVER@"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-examples.pod:53
|
|
msgid "EXAMPLE: FETCH DHCP ADDRESS FROM A GUEST"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-examples.pod:55
|
|
msgid "@VIRT_DHCP_ADDRESS@"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-examples.pod:59
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-golang(3)>, "
|
|
"L<guestfs-java(3)>, L<guestfs-lua(3)>, L<guestfs-ocaml(3)>, "
|
|
"L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
|
|
"L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-examples.pod:77 ../make-fs/virt-make-fs.pod:237
|
|
msgid "Copyright (C) 2010-2014 Red Hat Inc."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:5
|
|
msgid "guestfs-faq - libguestfs Frequently Asked Questions (FAQ)"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-faq.pod:7
|
|
msgid "ABOUT LIBGUESTFS"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:9
|
|
msgid "What is libguestfs?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:11
|
|
msgid ""
|
|
"libguestfs is a way to create, access and modify disk images. You can look "
|
|
"inside disk images, modify the files they contain, create them from scratch, "
|
|
"resize them, and much more. It's especially useful from scripts and "
|
|
"programs and from the command line."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:16
|
|
msgid ""
|
|
"libguestfs is a C library (hence \"lib-\"), and a set of tools built on this "
|
|
"library, and bindings for many common programming languages."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:19
|
|
msgid ""
|
|
"For more information about what libguestfs can do read the introduction on "
|
|
"the home page (L<http://libguestfs.org>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:22
|
|
msgid "What are the virt tools?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:24
|
|
msgid ""
|
|
"Virt tools (website: L<http://virt-tools.org>) are a whole set of "
|
|
"virtualization management tools aimed at system administrators. Some of "
|
|
"them come from libguestfs, some from libvirt and many others from other open "
|
|
"source projects. So virt tools is a superset of libguestfs. However "
|
|
"libguestfs comes with many important tools. See L<http://libguestfs.org> "
|
|
"for a full list."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:31
|
|
msgid "Does libguestfs need { libvirt / KVM / Red Hat / Fedora }?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:33
|
|
msgid "No!"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:35
|
|
msgid "libvirt is not a requirement for libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:37
|
|
msgid ""
|
|
"libguestfs works with any disk image, including ones created in VMware, KVM, "
|
|
"qemu, VirtualBox, Xen, and many other hypervisors, and ones which you have "
|
|
"created from scratch."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:41
|
|
msgid ""
|
|
"S<Red Hat> sponsors (ie. pays for) development of libguestfs and a huge "
|
|
"number of other open source projects. But you can run libguestfs and the "
|
|
"virt tools on many different Linux distros and Mac OS X. We try our best to "
|
|
"support all Linux distros as first-class citizens. Some virt tools have "
|
|
"been ported to Windows."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:47
|
|
msgid "How does libguestfs compare to other tools?"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:51
|
|
msgid "I<vs. kpartx>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:53
|
|
msgid ""
|
|
"Libguestfs takes a different approach from kpartx. kpartx needs root, and "
|
|
"mounts filesystems on the host kernel (which can be insecure - see "
|
|
"L<guestfs(3)/SECURITY>). Libguestfs isolates your host kernel from guests, "
|
|
"is more flexible, scriptable, supports LVM, doesn't require root, is "
|
|
"isolated from other processes, and cleans up after itself. Libguestfs is "
|
|
"more than just file access because you can use it to create images from "
|
|
"scratch."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:61
|
|
msgid "I<vs. vdfuse>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:63
|
|
msgid ""
|
|
"vdfuse is like kpartx but for VirtualBox images. See the kpartx comparison "
|
|
"above. You can use libguestfs on the partition files exposed by vdfuse, "
|
|
"although it's not necessary since libguestfs can access VirtualBox images "
|
|
"directly."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:68
|
|
msgid "I<vs. qemu-nbd>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:70
|
|
msgid ""
|
|
"NBD (Network Block Device) is a protocol for exporting block devices over "
|
|
"the network. qemu-nbd is an NBD server which can handle any disk format "
|
|
"supported by qemu (eg. raw, qcow2). You can use libguestfs and qemu-nbd or "
|
|
"nbdkit together to access block devices over the network, for example: "
|
|
"C<guestfish -a nbd://remote>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:76
|
|
msgid "I<vs. mounting filesystems in the host>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:78
|
|
msgid ""
|
|
"Mounting guest filesystems in the host is insecure and should be avoided "
|
|
"completely for untrusted guests. Use libguestfs to provide a layer of "
|
|
"protection against filesystem exploits. See also L<guestmount(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:83
|
|
msgid "I<vs. parted>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:85
|
|
msgid ""
|
|
"Libguestfs supports LVM. Libguestfs uses parted and provides most parted "
|
|
"features through the libguestfs API."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-faq.pod:90
|
|
msgid "GETTING HELP AND REPORTING BUGS"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:92
|
|
msgid "How do I know what version I'm using?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:94
|
|
msgid "The simplest method is:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:96
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --version\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:98
|
|
msgid ""
|
|
"Libguestfs development happens along an unstable branch and we periodically "
|
|
"create a stable branch which we backport stable patches to. To find out "
|
|
"more, read L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:102
|
|
msgid "How can I get help?"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:104
|
|
msgid "What mailing lists or chat rooms are available?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:106
|
|
msgid ""
|
|
"If you are a S<Red Hat> customer using Red Hat Enterprise Linux, please "
|
|
"contact S<Red Hat Support>: L<http://redhat.com/support>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:109
|
|
msgid ""
|
|
"There is a mailing list, mainly for development, but users are also welcome "
|
|
"to ask questions about libguestfs and the virt tools: "
|
|
"L<https://www.redhat.com/mailman/listinfo/libguestfs>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:113
|
|
msgid ""
|
|
"You can also talk to us on IRC channel C<#libguestfs> on FreeNode. We're "
|
|
"not always around, so please stay in the channel after asking your question "
|
|
"and someone will get back to you."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:117
|
|
msgid ""
|
|
"For other virt tools (not ones supplied with libguestfs) there is a general "
|
|
"virt tools mailing list: "
|
|
"L<https://www.redhat.com/mailman/listinfo/virt-tools-list>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:121
|
|
msgid "How do I report bugs?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:123
|
|
msgid "Please use the following link to enter a bug in Bugzilla:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:125 ../examples/guestfs-testing.pod:21
|
|
msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:127
|
|
msgid "Include as much detail as you can and a way to reproduce the problem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:129
|
|
msgid "Include the full output of L<libguestfs-test-tool(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-faq.pod:131
|
|
msgid "COMMON PROBLEMS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:133
|
|
msgid ""
|
|
"See also L<guestfs(3)/LIBGUESTFS GOTCHAS> for some \"gotchas\" with using "
|
|
"the libguestfs API."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:136
|
|
msgid "\"Could not allocate dynamic translator buffer\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:138
|
|
msgid ""
|
|
"This obscure error is in fact an SELinux failure. You have to enable the "
|
|
"following SELinux boolean:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:141
|
|
#, no-wrap
|
|
msgid ""
|
|
" setsebool -P virt_use_execmem=on\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:143
|
|
msgid ""
|
|
"For more information see "
|
|
"L<https://bugzilla.redhat.com/show_bug.cgi?id=806106>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:146
|
|
msgid "\"child process died unexpectedly\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:148
|
|
msgid ""
|
|
"[This error message was changed in libguestfs 1.21.18 to something more "
|
|
"explanatory.]"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:151
|
|
msgid ""
|
|
"This error indicates that qemu failed or the host kernel could not boot. To "
|
|
"get further information about the failure, you have to run:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:154 ../examples/guestfs-faq.pod:952 ../examples/guestfs-testing.pod:35 ../test-tool/libguestfs-test-tool.pod:21
|
|
#, no-wrap
|
|
msgid ""
|
|
" libguestfs-test-tool\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:156
|
|
msgid ""
|
|
"If, after using this, you still don't understand the failure, contact us "
|
|
"(see previous section)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:159
|
|
msgid ""
|
|
"libguestfs: error: cannot find any suitable libguestfs supermin, fixed or "
|
|
"old-style appliance on LIBGUESTFS_PATH"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:161
|
|
msgid "febootstrap-supermin-helper: ext2: parent directory not found"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:163
|
|
msgid "supermin-helper: ext2: parent directory not found"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:165
|
|
msgid ""
|
|
"If you see any of these errors on Debian/Ubuntu, you need to run the "
|
|
"following command:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:168 ../examples/guestfs-faq.pod:296 ../examples/guestfs-faq.pod:344
|
|
#, no-wrap
|
|
msgid ""
|
|
" sudo update-guestfs-appliance\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:170
|
|
msgid "\"Permission denied\" when running libguestfs as root"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:172
|
|
msgid ""
|
|
"You get a permission denied error when opening a disk image, even though you "
|
|
"are running libguestfs as root."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:175
|
|
msgid ""
|
|
"This is caused by libvirt, and so only happens when using the libvirt "
|
|
"backend. When run as root, libvirt decides to run the qemu appliance as "
|
|
"user C<qemu.qemu>. Unfortunately this usually means that qemu cannot open "
|
|
"disk images, especially if those disk images are owned by root, or are "
|
|
"present in directories which require root access."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:181
|
|
msgid ""
|
|
"There is a bug open against libvirt to fix this: "
|
|
"L<https://bugzilla.redhat.com/show_bug.cgi?id=1045069>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:184
|
|
msgid "You can work around this by one of the following methods:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:190
|
|
msgid "Switch to the direct backend:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:192 ../examples/guestfs-faq.pod:576 ../examples/guestfs-testing.pod:127 ../test-tool/libguestfs-test-tool.pod:124
|
|
#, no-wrap
|
|
msgid ""
|
|
" export LIBGUESTFS_BACKEND=direct\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:196
|
|
msgid "Don't run libguestfs as root."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:200
|
|
msgid ""
|
|
"Chmod the disk image and any parent directories so that the qemu user can "
|
|
"access them."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:205
|
|
msgid "(Nasty) Edit C</etc/libvirt/qemu.conf> and change the C<user> setting."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:209
|
|
msgid "execl: /init: Permission denied"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:211
|
|
msgid ""
|
|
"B<Note:> If this error happens when you are using a distro package of "
|
|
"libguestfs (eg. from Fedora, Debian, etc) then file a bug against the "
|
|
"distro. This is not an error which normal users should ever see if the "
|
|
"distro package has been prepared correctly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:216
|
|
msgid "This error happens during the supermin boot phase of starting the appliance:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:219
|
|
#, no-wrap
|
|
msgid ""
|
|
" supermin: mounting new root on /root\n"
|
|
" supermin: chroot\n"
|
|
" execl: /init: Permission denied\n"
|
|
" supermin: debug: listing directory /\n"
|
|
" [...followed by a lot of debug output...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:225
|
|
msgid ""
|
|
"This is a complicated bug related to L<supermin(1)> appliances. The "
|
|
"appliance is constructed by copying files like C</bin/bash> and many "
|
|
"libraries from the host. The file C<hostfiles> lists the files that should "
|
|
"be copied from the host into the appliance. If some files don't exist on "
|
|
"the host then they are missed out, but if these files are needed in order to "
|
|
"(eg) run C</bin/bash> then you'll see the above error."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:233
|
|
msgid ""
|
|
"Diagnosing the problem involves studying the libraries needed by "
|
|
"C</bin/bash>, ie:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:236
|
|
#, no-wrap
|
|
msgid ""
|
|
" ldd /bin/bash\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:238
|
|
msgid ""
|
|
"comparing that with C<hostfiles>, with the files actually available in the "
|
|
"host filesystem, and with the debug output printed in the error message. "
|
|
"Once you've worked out which file is missing, install that file using your "
|
|
"package manager and try again."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:243
|
|
msgid ""
|
|
"You should also check that files like C</init> and C</bin/bash> (in the "
|
|
"appliance) are executable. The debug output shows file modes."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-faq.pod:246
|
|
msgid "DOWNLOADING, INSTALLING, COMPILING LIBGUESTFS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:250
|
|
msgid "<!-- old anchor for the next section --> <a name=\"binaries\"/>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:255
|
|
msgid "Where can I get the latest binaries for ...?"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:259
|
|
msgid "Fedora E<ge> 11"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:261
|
|
msgid "Use:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:263
|
|
#, no-wrap
|
|
msgid ""
|
|
" yum install '*guestf*'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:265
|
|
msgid ""
|
|
"For the latest builds, see: "
|
|
"L<http://koji.fedoraproject.org/koji/packageinfo?packageID=8391>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:268
|
|
msgid "Red Hat Enterprise Linux"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:272
|
|
msgid "RHEL 5"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:274
|
|
msgid ""
|
|
"The version shipped in official RHEL 5 is very old and should not be used "
|
|
"except in conjunction with virt-v2v. Use the up-to-date libguestfs 1.20 "
|
|
"package in EPEL 5: L<https://fedoraproject.org/wiki/EPEL>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:279
|
|
msgid "RHEL 6"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:281
|
|
msgid ""
|
|
"It is part of the default install. On RHEL 6 and 7 (only) you have to "
|
|
"install C<libguestfs-winsupport> to get Windows guest support."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:284
|
|
msgid "RHEL 7"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:286
|
|
msgid ""
|
|
"It will be part of the default install, and based on S<libguestfs 1.22>. "
|
|
"You will need to install C<libguestfs-winsupport> separately to get Windows "
|
|
"guest support."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:292
|
|
msgid "Debian and Ubuntu"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:294
|
|
msgid "After installing libguestfs you need to do:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:298
|
|
msgid "On Ubuntu only:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:300 ../examples/guestfs-faq.pod:330 ../examples/guestfs-faq.pod:353
|
|
#, no-wrap
|
|
msgid ""
|
|
" sudo chmod 0644 /boot/vmlinuz*\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:302
|
|
msgid "You may need to add yourself to the C<kvm> group:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:304
|
|
#, no-wrap
|
|
msgid ""
|
|
" sudo usermod -a -G kvm yourlogin\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:308
|
|
msgid "Debian Squeeze (6)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:310
|
|
msgid ""
|
|
"Hilko Bengen has built libguestfs in squeeze backports: "
|
|
"L<http://packages.debian.org/search?keywords=guestfs&searchon=names§ion=all&suite=squeeze-backports>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:313
|
|
msgid "Debian Wheezy and later (7+)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:315
|
|
msgid ""
|
|
"Hilko Bengen supports libguestfs on Debian. Official Debian packages are "
|
|
"available: L<http://packages.debian.org/search?keywords=libguestfs>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:319
|
|
msgid "Ubuntu"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:321
|
|
msgid ""
|
|
"We don't have a full time Ubuntu maintainer, and the packages supplied by "
|
|
"Canonical (which are outside our control) are sometimes broken."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:324
|
|
msgid ""
|
|
"Canonical decided to change the permissions on the kernel so that it's not "
|
|
"readable except by root. This is completely stupid, but they won't change "
|
|
"it (L<https://bugs.launchpad.net/ubuntu/+source/linux/+bug/759725>). So "
|
|
"every user should do this:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:334
|
|
msgid "Ubuntu 12.04"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:336
|
|
msgid ""
|
|
"libguestfs in this version of Ubuntu works, but you need to update "
|
|
"febootstrap and seabios to the latest versions."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:339
|
|
msgid ""
|
|
"You need febootstrap E<ge> 3.14-2 from: "
|
|
"L<http://packages.ubuntu.com/precise/febootstrap>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:342
|
|
msgid "After installing or updating febootstrap, rebuild the appliance:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:346
|
|
msgid ""
|
|
"You need seabios E<ge> 0.6.2-0ubuntu2.1 or E<ge> 0.6.2-0ubuntu3 from: "
|
|
"L<http://packages.ubuntu.com/precise-updates/seabios> or "
|
|
"L<http://packages.ubuntu.com/quantal/seabios>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:351
|
|
msgid "Also you need to do (see above):"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:359
|
|
msgid "Gentoo"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:361
|
|
msgid ""
|
|
"Libguestfs was added to Gentoo in 2012-07 by Andreis Vinogradovs "
|
|
"(libguestfs) and Maxim Koltsov (mainly hivex). Do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:364
|
|
#, no-wrap
|
|
msgid ""
|
|
" emerge libguestfs\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:366
|
|
msgid "SuSE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:368
|
|
msgid "Libguestfs was added to SuSE in 2012 by Olaf Hering."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:370
|
|
msgid "ArchLinux"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:372
|
|
msgid "Libguestfs was added to the AUR in 2010."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:374
|
|
msgid "Other Linux distro"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:376
|
|
msgid "Compile from source (next section)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:378
|
|
msgid "Other non-Linux distro"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:380
|
|
msgid "You'll have to compile from source, and port it."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:384
|
|
msgid "How can I compile and install libguestfs from source?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:386
|
|
msgid ""
|
|
"If your Linux distro has a working port of supermin (that is, Fedora, S<Red "
|
|
"Hat Enterprise Linux E<ge> 6.3>, Debian, Ubuntu and ArchLinux) then you "
|
|
"should just be able to compile from source in the usual way. Download the "
|
|
"latest tarball from L<http://libguestfs.org/download>, unpack it, and start "
|
|
"by reading the README file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:392
|
|
msgid ""
|
|
"If you I<don't> have supermin, you will need to use the \"fixed appliance "
|
|
"method\". See: L<http://libguestfs.org/download/binaries/appliance/>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:396
|
|
msgid "Patches to port supermin to more Linux distros are welcome."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:398
|
|
msgid ""
|
|
"Why do I get an error when I try to rebuild from the source RPMs supplied by "
|
|
"Red Hat / Fedora?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:401
|
|
msgid "B<Note:> This issue is fixed in S<Fedora E<ge> 19> and S<RHEL E<ge> 6.5>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:403
|
|
msgid ""
|
|
"Because of the complexity of building the libguestfs appliance, the source "
|
|
"RPMs provided cannot be rebuilt directly using C<rpmbuild> or C<mock>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:407
|
|
msgid ""
|
|
"If you use Koji (which is open source software and may be installed "
|
|
"locally), then the SRPMs can be rebuilt in Koji. "
|
|
"L<https://fedoraproject.org/wiki/Koji>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:411
|
|
msgid ""
|
|
"If you don't have or want to use Koji, then you have to give libguestfs "
|
|
"access to the network so it can download the RPMs for building the "
|
|
"appliance. You also need to set an RPM macro to tell libguestfs to use the "
|
|
"network. Put the following line into a file called C<$HOME/.rpmmacros>:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:417
|
|
#, no-wrap
|
|
msgid ""
|
|
" %libguestfs_buildnet 1\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:419
|
|
msgid "If you are using mock, do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:421
|
|
#, no-wrap
|
|
msgid ""
|
|
" mock -D '%libguestfs_buildnet 1' [etc]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:423
|
|
msgid "How can I add support for sVirt?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:425
|
|
msgid ""
|
|
"B<Note for Fedora/RHEL users:> This configuration is the default starting "
|
|
"with S<Fedora 18> and S<RHEL 7>. If you find any problems, please let us "
|
|
"know or file a bug."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:429
|
|
msgid ""
|
|
"L<SVirt|http://selinuxproject.org/page/SVirt> provides a hardened appliance "
|
|
"using SELinux, making it very hard for a rogue disk image to \"escape\" from "
|
|
"the confinement of libguestfs and damage the host (it's fair to say that "
|
|
"even in standard libguestfs this would be hard, but sVirt provides an extra "
|
|
"layer of protection for the host and more importantly protects virtual "
|
|
"machines on the same host from each other)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:437
|
|
msgid ""
|
|
"Currently to enable sVirt you will need libvirt E<ge> 0.10.2 (1.0 or later "
|
|
"preferred), libguestfs E<ge> 1.20, and the SELinux policies from recent "
|
|
"Fedora. If you are not running S<Fedora 18+>, you will need to make changes "
|
|
"to your SELinux policy - contact us on the mailing list."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:442
|
|
msgid "Once you have the requirements, do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:444
|
|
#, no-wrap
|
|
msgid ""
|
|
" ./configure --with-default-backend=libvirt # libguestfs >= 1.22\n"
|
|
" ./configure --with-default-attach-method=libvirt # libguestfs <= 1.20\n"
|
|
" make\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:448
|
|
msgid "Set SELinux to Enforcing mode, and sVirt should be used automatically."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:450
|
|
msgid ""
|
|
"All, or almost all, features of libguestfs should work under sVirt. There "
|
|
"is one known shortcoming: L<virt-rescue(1)> will not use libvirt (hence "
|
|
"sVirt), but falls back to direct launch of qemu. So you won't currently get "
|
|
"the benefit of sVirt protection when using virt-rescue."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:455
|
|
msgid ""
|
|
"You can check if sVirt is being used by enabling libvirtd logging (see "
|
|
"C</etc/libvirt/libvirtd.log>), killing and restarting libvirtd, and checking "
|
|
"the log files for S<\"Setting SELinux context on ...\"> messages."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:459
|
|
msgid ""
|
|
"In theory sVirt should support AppArmor, but we have not tried it. It will "
|
|
"almost certainly require patching libvirt and writing an AppArmor policy."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:463
|
|
msgid "Libguestfs has a really long list of dependencies!"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:465
|
|
msgid "That's because it does a lot of things."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:467
|
|
msgid ""
|
|
"Libguestfs -- I<as it is packaged for Fedora> -- satisfies the following "
|
|
"conditions:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:474
|
|
msgid ""
|
|
"The Fedora package is full featured, that is, it supports every possible "
|
|
"feature of libguestfs (every filesystem, every filesystem tool, etc.)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:478
|
|
msgid ""
|
|
"A common request is to split up libguestfs into separate feature areas so "
|
|
"you could, say, install XFS support and NTFS support separately. This is "
|
|
"not possible right now."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:484
|
|
msgid ""
|
|
"The download size of the libguestfs package is relatively small (ie. not "
|
|
"ten's of megabytes as it would be if it included a complete, \"statically "
|
|
"linked\" appliance)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:490
|
|
msgid ""
|
|
"The Fedora package automatically updates itself if there is a security "
|
|
"update. It doesn't include a huge static blob that has to be rebuilt and "
|
|
"users have to re-download if there is an update."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:496
|
|
msgid ""
|
|
"Able to be installed without needing direct network access. This is "
|
|
"important when using closed networks, privately mirrored repositories or RHN "
|
|
"Satellite."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:500 ../rescue/virt-rescue.pod:362
|
|
msgid "5."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:502
|
|
msgid "The Fedora package can be tested during the build."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:506
|
|
msgid ""
|
|
"If you want to drop any one of those conditions, then you can package "
|
|
"libguestfs differently and make it have fewer dependencies, fewer features "
|
|
"or a faster start up time:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:512
|
|
msgid "1. (full featured)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:514
|
|
msgid ""
|
|
"Take C<appliance/packagelist.in> in the source, and comment out any features "
|
|
"you don't actually care about. For example if you never anticipate editing "
|
|
"a Windows guest, remove all the ntfs-related packages. You can get away "
|
|
"with fewer dependencies."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:519
|
|
msgid "2. (download size) / 3. (updates)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:521
|
|
msgid ""
|
|
"Use L<libguestfs-make-fixed-appliance(1)> to build a compressed appliance. "
|
|
"Bundle this with your package and set C<$LIBGUESTFS_PATH> to point to it. "
|
|
"Users will have to download this large appliance, but no dependencies are "
|
|
"needed, and L<supermin-helper(1)> is not used."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:526
|
|
msgid "4. (network access)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:528
|
|
msgid ""
|
|
"Reconstruct and cache the appliance once during package install. The Debian "
|
|
"packaging currently works like this, but requires network access during "
|
|
"package install."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:532
|
|
msgid "5. (tests)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:534
|
|
msgid ""
|
|
"Don't run any tests during the build. The build will be much faster, but "
|
|
"also less likely to work correctly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:537
|
|
msgid ""
|
|
"Note that running the tests in C<tests/qemu> is probably a good idea, since "
|
|
"those are sanity tests. Also you should do S<C<make quickcheck>> to ensure "
|
|
"libguestfs is basically working."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:543
|
|
msgid "Errors during launch on Fedora E<ge> 18, RHEL E<ge> 7"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:545
|
|
msgid ""
|
|
"In Fedora E<ge> 18 and RHEL E<ge> 7, libguestfs uses libvirt to manage the "
|
|
"appliance. Previously (and upstream) libguestfs runs qemu directly:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:549
|
|
#, no-wrap
|
|
msgid ""
|
|
" +----------------------------------+\n"
|
|
" | libguestfs |\n"
|
|
" +----------------+-----------------+\n"
|
|
" | direct backend | libvirt backend |\n"
|
|
" +----------------+-----------------+\n"
|
|
" | |\n"
|
|
" v v\n"
|
|
" +-------+ +----------+\n"
|
|
" | qemu | | libvirtd |\n"
|
|
" +-------+ +----------+\n"
|
|
" |\n"
|
|
" v\n"
|
|
" +-------+\n"
|
|
" | qemu |\n"
|
|
" +-------+\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:565
|
|
#, no-wrap
|
|
msgid ""
|
|
" upstream Fedora 18+\n"
|
|
" non-Fedora RHEL 7+\n"
|
|
" non-RHEL\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:569
|
|
msgid ""
|
|
"The libvirt backend is more sophisticated, supporting SELinux/sVirt (see "
|
|
"above), hotplugging and more. It is, however, more complex and so less "
|
|
"robust."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:573
|
|
msgid ""
|
|
"If you have permissions problems using the libvirt backend, you can switch "
|
|
"to the direct backend by setting this environment variable:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:578
|
|
msgid "before running any libguestfs program or virt tool."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:580
|
|
msgid "How can I switch to a fixed / prebuilt appliance?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:582
|
|
msgid ""
|
|
"This may improve the stability and performance of libguestfs on Fedora and "
|
|
"RHEL."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:585
|
|
msgid "Any time after installing libguestfs, run the following commands as root:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:588
|
|
#, no-wrap
|
|
msgid ""
|
|
" mkdir -p /usr/local/lib/guestfs/appliance\n"
|
|
" libguestfs-make-fixed-appliance /usr/local/lib/guestfs/appliance\n"
|
|
" ls -l /usr/local/lib/guestfs/appliance\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:592
|
|
msgid ""
|
|
"Now set the following environment variable before using libguestfs or any "
|
|
"virt tool:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:595 ../examples/guestfs-performance.pod:143
|
|
#, no-wrap
|
|
msgid ""
|
|
" export LIBGUESTFS_PATH=/usr/local/lib/guestfs/appliance\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:597
|
|
msgid ""
|
|
"Of course you can change the path to any directory you want. You can share "
|
|
"the appliance across machines that have the same architecture (eg. all "
|
|
"x86-64), but note that libvirt will prevent you from sharing the appliance "
|
|
"across NFS because of permissions problems (so either switch to the direct "
|
|
"backend or don't use NFS)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:603
|
|
msgid "How can I speed up libguestfs builds?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:605
|
|
msgid ""
|
|
"By far the most important thing you can do is to install and properly "
|
|
"configure Squid. Note that the default configuration that ships with Squid "
|
|
"is rubbish, so configuring it is not optional."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:609
|
|
msgid ""
|
|
"A very good place to start with Squid configuration is here: "
|
|
"L<https://fedoraproject.org/wiki/Extras/MockTricks#Using_Squid_to_Speed_Up_Mock_package_downloads>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:612
|
|
msgid ""
|
|
"Make sure Squid is running, and that the environment variables "
|
|
"C<$http_proxy> and C<$ftp_proxy> are pointing to it."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:615
|
|
msgid ""
|
|
"With Squid running and correctly configured, appliance builds should be "
|
|
"reduced to a few minutes."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../examples/guestfs-faq.pod:618
|
|
msgid "How can I speed up libguestfs builds (Debian)?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:620
|
|
msgid ""
|
|
"Hilko Bengen suggests using \"approx\" which is a Debian archive proxy "
|
|
"(L<http://packages.debian.org/approx>). This tool is documented on Debian "
|
|
"in the approx(8) manual page."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-faq.pod:624
|
|
msgid "SPEED, DISK SPACE USED BY LIBGUESTFS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:626
|
|
msgid ""
|
|
"B<Note:> Most of the information in this section has moved: "
|
|
"L<guestfs-performance(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:629
|
|
msgid "Upload or write seem very slow."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:631
|
|
msgid ""
|
|
"If the underlying disk is not fully allocated (eg. sparse raw or qcow2) then "
|
|
"writes can be slow because the host operating system has to do costly disk "
|
|
"allocations while you are writing. The solution is to use a fully allocated "
|
|
"format instead, ie. non-sparse raw, or qcow2 with the "
|
|
"C<preallocation=metadata> option."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:637
|
|
msgid "Libguestfs uses too much disk space!"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:639
|
|
msgid "libguestfs caches a large-ish appliance in:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:641
|
|
#, no-wrap
|
|
msgid ""
|
|
" /var/tmp/.guestfs-<UID>\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:643
|
|
msgid ""
|
|
"If the environment variable C<TMPDIR> is defined, then "
|
|
"C<$TMPDIR/.guestfs-E<lt>UIDE<gt>> is used instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:646
|
|
msgid "It is safe to delete this directory when you are not using libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:648
|
|
msgid ""
|
|
"virt-sparsify seems to make the image grow to the full size of the virtual "
|
|
"disk"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:651
|
|
msgid ""
|
|
"If the input to L<virt-sparsify(1)> is raw, then the output will be raw "
|
|
"sparse. Make sure you are measuring the output with a tool which "
|
|
"understands sparseness such as C<du -sh>. It can make a huge difference:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:655 ../sparsify/virt-sparsify.pod:35
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ ls -lh test1.img\n"
|
|
" -rw-rw-r--. 1 rjones rjones 100M Aug 8 08:08 test1.img\n"
|
|
" $ du -sh test1.img\n"
|
|
" 3.6M\ttest1.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:660 ../sparsify/virt-sparsify.pod:40
|
|
msgid "(Compare the apparent size B<100M> vs the actual size B<3.6M>)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:662
|
|
msgid ""
|
|
"If all this confuses you, use a non-sparse output format by specifying the "
|
|
"I<--convert> option, eg:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:665
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-sparsify --convert qcow2 disk.raw disk.qcow2\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:667
|
|
msgid "Why doesn't virt-resize work on the disk image in-place?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:669
|
|
msgid ""
|
|
"Resizing a disk image is very tricky -- especially making sure that you "
|
|
"don't lose data or break the bootloader. The current method effectively "
|
|
"creates a new disk image and copies the data plus bootloader from the old "
|
|
"one. If something goes wrong, you can always go back to the original."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:675
|
|
msgid ""
|
|
"If we were to make virt-resize work in-place then there would have to be "
|
|
"limitations: for example, you wouldn't be allowed to move existing "
|
|
"partitions (because moving data across the same disk is most likely to "
|
|
"corrupt data in the event of a power failure or crash), and LVM would be "
|
|
"very difficult to support (because of the almost arbitrary mapping between "
|
|
"LV content and underlying disk blocks)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:682
|
|
msgid ""
|
|
"Another method we have considered is to place a snapshot over the original "
|
|
"disk image, so that the original data is untouched and only differences are "
|
|
"recorded in the snapshot. You can do this today using C<qemu-img create> + "
|
|
"C<virt-resize>, but qemu currently isn't smart enough to recognize when the "
|
|
"same block is written back to the snapshot as already exists in the backing "
|
|
"disk, so you will find that this doesn't save you any space or time."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:690
|
|
msgid ""
|
|
"In summary, this is a hard problem, and what we have now mostly works so we "
|
|
"are reluctant to change it."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:693
|
|
msgid "Why doesn't virt-sparsify work on the disk image in-place?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:695
|
|
msgid ""
|
|
"Eventually we plan to make virt-sparsify work on disk images in-place, "
|
|
"instead of copying the disk image. However it requires several changes to "
|
|
"both the Linux kernel and qemu which are slowly making their way upstream "
|
|
"(thanks to the tireless efforts of Paolo Bonzini). Then we will have to "
|
|
"modify virt-sparsify to support this. Finally there will be some "
|
|
"integration work required to make sure all the pieces work together."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:703
|
|
msgid ""
|
|
"Even with this implemented there may be some limitations: For example, it "
|
|
"requires completely different steps (and is probably harder) to sparsify a "
|
|
"disk image that is stored on a SAN LUN, compared to one which is stored in a "
|
|
"local raw image file, so you can expect that different storage and backing "
|
|
"formats will become supported at different times. Some backing filesystems "
|
|
"/ formats may never support sparsification (eg. disk images stored on VFAT, "
|
|
"old-style non-thin LVs)."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-faq.pod:712
|
|
msgid "PROBLEMS OPENING DISK IMAGES"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:714
|
|
msgid "Remote libvirt guests cannot be opened."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:716
|
|
msgid ""
|
|
"Opening remote libvirt guests is not supported at this time. For example "
|
|
"this won't work:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:719
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -c qemu://remote/system -d Guest\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:721
|
|
msgid ""
|
|
"To open remote disks you have to export them somehow, then connect to the "
|
|
"export. For example if you decided to use NBD:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:724
|
|
#, no-wrap
|
|
msgid ""
|
|
" remote$ qemu-nbd -t -p 10809 guest.img\n"
|
|
" local$ guestfish -a nbd://remote:10809 -i\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:727
|
|
msgid ""
|
|
"Other possibilities include ssh (if qemu is recent enough), NFS or iSCSI. "
|
|
"See L<guestfs(3)/REMOTE STORAGE>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:730
|
|
msgid "How can I open this strange disk source?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:732
|
|
msgid ""
|
|
"You have a disk image located inside another system that requires access via "
|
|
"a library / HTTP / REST / proprietary API, or is compressed or archived in "
|
|
"some way. (One example would be remote access to OpenStack glance images "
|
|
"without actually downloading them.)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:737
|
|
msgid ""
|
|
"We have a sister project called nbdkit "
|
|
"(L<https://github.com/libguestfs/nbdkit>). This project lets you turn any "
|
|
"disk source into an NBD server. Libguestfs can access NBD servers directly, "
|
|
"eg:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:742
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -a nbd://remote\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:744
|
|
msgid ""
|
|
"nbdkit is liberally licensed, so you can link it to or include it in "
|
|
"proprietary libraries and code. It also has a simple, stable plugin API so "
|
|
"you can easily write plugins against the API which will continue to work in "
|
|
"future."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:749
|
|
msgid ""
|
|
"Error opening VMDK disks: \"uses a vmdk feature which is not supported by "
|
|
"this qemu version: VMDK version 3\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:751
|
|
msgid ""
|
|
"Qemu (and hence libguestfs) only supports certain VMDK disk images. Others "
|
|
"won't work, giving this or similar errors."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:754
|
|
msgid ""
|
|
"Ideally someone would fix qemu to support the latest VMDK features, but in "
|
|
"the meantime you have three options:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:761
|
|
msgid ""
|
|
"If the guest is hosted on a live, reachable ESX server, then locate and "
|
|
"download the disk image called I<somename>C<-flat.vmdk>. Despite the name, "
|
|
"this is a raw disk image, and can be opened by anything."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:765
|
|
msgid ""
|
|
"If you have a recent enough version of qemu and libguestfs, then you may be "
|
|
"able to access this disk image remotely using either HTTPS or ssh. See "
|
|
"L<guestfs(3)/REMOTE STORAGE>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:771
|
|
msgid ""
|
|
"Use VMware's proprietary vdiskmanager tool to convert the image to raw "
|
|
"format."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:776
|
|
msgid ""
|
|
"Use nbdkit with the proprietary VDDK plugin to live export the disk image as "
|
|
"an NBD source. This should allow you to read and write the VMDK file."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:782
|
|
msgid "UFS disks (as used by BSD) cannot be opened."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:784
|
|
msgid ""
|
|
"The UFS filesystem format has many variants, and these are not "
|
|
"self-identifying. The Linux kernel has to be told which variant of UFS it "
|
|
"has to use, which libguestfs cannot know."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:788
|
|
msgid ""
|
|
"You have to pass the right C<ufstype> mount option when mounting these "
|
|
"filesystems."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:791
|
|
msgid "See L<https://www.kernel.org/doc/Documentation/filesystems/ufs.txt>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:793
|
|
msgid "Windows ReFS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:795
|
|
msgid ""
|
|
"Windows ReFS is Microsoft's ZFS/Btrfs copy. This filesystem has not yet "
|
|
"been reverse engineered and implemented in the Linux kernel, and therefore "
|
|
"libguestfs doesn't support it. At the moment it seems to be very rare \"in "
|
|
"the wild\"."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:800
|
|
msgid "Non-ASCII characters don't appear on VFAT filesystems."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:802
|
|
msgid "Typical symptoms of this problem:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:808
|
|
msgid ""
|
|
"You get an error when you create a file where the filename contains "
|
|
"non-ASCII characters, particularly non 8-bit characters from Asian languages "
|
|
"(Chinese, Japanese, etc). The filesystem is VFAT."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:814
|
|
msgid ""
|
|
"When you list a directory from a VFAT filesystem, filenames appear as "
|
|
"question marks."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:819
|
|
msgid "This is a design flaw of the GNU/Linux system."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:821
|
|
msgid ""
|
|
"VFAT stores long filenames as UTF-16 characters. When opening or returning "
|
|
"filenames, the Linux kernel has to translate these to some form of 8 bit "
|
|
"string. UTF-8 would be the obvious choice, except for Linux users who "
|
|
"persist in using non-UTF-8 locales (the user's locale is not known to the "
|
|
"kernel because it's a function of libc)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:827
|
|
msgid ""
|
|
"Therefore you have to tell the kernel what translation you want done when "
|
|
"you mount the filesystem. The two methods are the C<iocharset> parameter "
|
|
"(which is not relevant to libguestfs) and the C<utf8> flag."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:831
|
|
msgid ""
|
|
"So to use a VFAT filesystem you must add the C<utf8> flag when mounting. "
|
|
"From guestfish, use:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:834
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><fs> mount-options utf8 /dev/sda1 /\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:836
|
|
msgid "or on the guestfish command line:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:838
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish [...] -m /dev/sda1:/:utf8\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:840
|
|
msgid "or from the API:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:842
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_mount_options (g, \"utf8\", \"/dev/sda1\", \"/\");\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:844
|
|
msgid "The kernel will then translate filenames to and from UTF-8 strings."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:846
|
|
msgid ""
|
|
"We considered adding this mount option transparently, but unfortunately "
|
|
"there are several problems with doing that:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:853
|
|
msgid ""
|
|
"On some Linux systems, the C<utf8> mount option doesn't work. We don't "
|
|
"precisely understand what systems or why, but this was reliably reported by "
|
|
"one user."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:859
|
|
msgid ""
|
|
"It would prevent you from using the C<iocharset> parameter because it is "
|
|
"incompatible with C<utf8>. It is probably not a good idea to use this "
|
|
"parameter, but we don't want to prevent it."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:865
|
|
msgid "Non-ASCII characters appear as underscore (_) on ISO9660 filesystems."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:867
|
|
msgid ""
|
|
"The filesystem was not prepared correctly with mkisofs or genisoimage. Make "
|
|
"sure the filesystem was created using Joliet and/or Rock Ridge extensions. "
|
|
"libguestfs does not require any special mount options to handle the "
|
|
"filesystem."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-faq.pod:872
|
|
msgid "USING LIBGUESTFS IN YOUR OWN PROGRAMS"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:874
|
|
msgid "The API has hundreds of methods, where do I start?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:876
|
|
msgid ""
|
|
"We recommend you start by reading the API overview: L<guestfs(3)/API "
|
|
"OVERVIEW>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:879
|
|
msgid ""
|
|
"Although the API overview covers the C API, it is still worth reading even "
|
|
"if you are going to use another programming language, because the API is the "
|
|
"same, just with simple logical changes to the names of the calls:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:884
|
|
#, no-wrap
|
|
msgid ""
|
|
" C guestfs_ln_sf (g, target, linkname);\n"
|
|
" Python g.ln_sf (target, linkname);\n"
|
|
" OCaml g#ln_sf target linkname;\n"
|
|
" Perl $g->ln_sf (target, linkname);\n"
|
|
" Shell (guestfish) ln-sf target linkname\n"
|
|
" PHP guestfs_ln_sf ($g, $target, $linkname);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:891
|
|
msgid ""
|
|
"Once you're familiar with the API overview, you should look at this list of "
|
|
"starting points for other language bindings: L<guestfs(3)/USING LIBGUESTFS "
|
|
"WITH OTHER PROGRAMMING LANGUAGES>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:895
|
|
msgid "Can I use libguestfs in my proprietary / closed source / commercial program?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:898
|
|
msgid ""
|
|
"In general, yes. However this is not legal advice - read the license that "
|
|
"comes with libguestfs, and if you have specific questions contact a lawyer."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:902
|
|
msgid ""
|
|
"In the source tree the license is in the file C<COPYING.LIB> (LGPLv2+ for "
|
|
"the library and bindings) and C<COPYING> (GPLv2+ for the standalone "
|
|
"programs)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:908
|
|
msgid "<!-- old anchor for the next section --> <a name=\"debug\"/>"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-faq.pod:913
|
|
msgid "DEBUGGING LIBGUESTFS"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:915
|
|
msgid "Help, it's not working!"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:917
|
|
msgid ""
|
|
"Please supply all the information in this checklist, in an email sent to "
|
|
"C<libguestfs> @ C<redhat.com>:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:924
|
|
msgid "What are you trying to achieve?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:928
|
|
msgid "What exact commands did you run?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:932
|
|
msgid "What was the precise error / output of these commands?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:936
|
|
msgid ""
|
|
"Enable debugging, run the commands again, and capture the B<complete> "
|
|
"output. B<Do not edit the output.>"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:939
|
|
#, no-wrap
|
|
msgid ""
|
|
" export LIBGUESTFS_DEBUG=1\n"
|
|
" export LIBGUESTFS_TRACE=1\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:944
|
|
msgid ""
|
|
"Include the version of libguestfs, the operating system version, and how you "
|
|
"installed libguestfs (eg. from source, C<yum install>, etc.)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:949
|
|
msgid ""
|
|
"If no libguestfs program seems to work at all, run the program below and "
|
|
"paste the B<complete, unedited> output into the email:"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:956
|
|
msgid ""
|
|
"How do I debug when using any libguestfs program or tool (eg. virt-v2v or "
|
|
"virt-df)?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:959
|
|
msgid ""
|
|
"There are two C<LIBGUESTFS_*> environment variables you can set in order to "
|
|
"get more information from libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:964
|
|
msgid "C<LIBGUESTFS_TRACE>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:966
|
|
msgid ""
|
|
"Set this to 1 and libguestfs will print out each command / API call in a "
|
|
"format which is similar to guestfish commands."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../examples/guestfs-faq.pod:969
|
|
msgid "C<LIBGUESTFS_DEBUG>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:971
|
|
msgid ""
|
|
"Set this to 1 in order to enable massive amounts of debug messages. If you "
|
|
"think there is some problem inside the libguestfs appliance, then you should "
|
|
"use this option."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:977
|
|
msgid "To set these from the shell, do this before running the program:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:979
|
|
#, no-wrap
|
|
msgid ""
|
|
" export LIBGUESTFS_TRACE=1\n"
|
|
" export LIBGUESTFS_DEBUG=1\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:982
|
|
msgid "For csh/tcsh the equivalent commands would be:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:984
|
|
#, no-wrap
|
|
msgid ""
|
|
" setenv LIBGUESTFS_TRACE 1\n"
|
|
" setenv LIBGUESTFS_DEBUG 1\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:987
|
|
msgid "For further information, see: L<guestfs(3)/ENVIRONMENT VARIABLES>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:989
|
|
msgid "How do I debug when using guestfish?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:991
|
|
msgid ""
|
|
"You can use the same environment variables above. Alternatively use the "
|
|
"guestfish options -x (to trace commands) or -v (to get the full debug "
|
|
"output), or both."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:995
|
|
msgid "For further information, see: L<guestfish(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:997
|
|
msgid "How do I debug when using the API?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:999
|
|
msgid ""
|
|
"Call L<guestfs(3)/guestfs_set_trace> to enable command traces, and/or "
|
|
"L<guestfs(3)/guestfs_set_verbose> to enable debug messages."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1002
|
|
msgid ""
|
|
"For best results, call these functions as early as possible, just after "
|
|
"creating the guestfs handle if you can, and definitely before calling "
|
|
"launch."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:1006
|
|
msgid "How do I capture debug output and put it into my logging system?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1008
|
|
msgid ""
|
|
"Use the event API. For examples, see: L<guestfs(3)/SETTING CALLBACKS TO "
|
|
"HANDLE EVENTS> and the C<examples/debug-logging.c> program in the libguestfs "
|
|
"sources."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:1012
|
|
msgid "Digging deeper into the appliance boot process."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1014
|
|
msgid ""
|
|
"Enable debugging and then read this documentation on the appliance boot "
|
|
"process: L<guestfs(3)/INTERNALS>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:1017
|
|
msgid "libguestfs hangs or fails during run/launch."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1019
|
|
msgid ""
|
|
"Enable debugging and look at the full output. If you cannot work out what "
|
|
"is going on, file a bug report, including the I<complete> output of "
|
|
"L<libguestfs-test-tool(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-faq.pod:1023
|
|
msgid "DESIGN/INTERNALS OF LIBGUESTFS"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:1025
|
|
msgid "Why don't you do everything through the FUSE / filesystem interface?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1028
|
|
msgid ""
|
|
"We offer a command called L<guestmount(1)> which lets you mount guest "
|
|
"filesystems on the host. This is implemented as a FUSE module. Why don't "
|
|
"we just implement the whole of libguestfs using this mechanism, instead of "
|
|
"having the large and rather complicated API?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1033
|
|
msgid ""
|
|
"The reasons are twofold. Firstly, libguestfs offers API calls for doing "
|
|
"things like creating and deleting partitions and logical volumes, which "
|
|
"don't fit into a filesystem model very easily. Or rather, you could fit "
|
|
"them in: for example, creating a partition could be mapped to C<mkdir "
|
|
"/fs/hda1> but then you'd have to specify some method to choose the size of "
|
|
"the partition (maybe C<echo 100M E<gt> /fs/hda1/.size>), and the partition "
|
|
"type, start and end sectors etc., but once you've done that the "
|
|
"filesystem-based API starts to look more complicated than the call-based API "
|
|
"we currently have."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1043
|
|
msgid ""
|
|
"The second reason is for efficiency. FUSE itself is reasonably efficient, "
|
|
"but it does make lots of small, independent calls into the FUSE module. In "
|
|
"guestmount these have to be translated into messages to the libguestfs "
|
|
"appliance which has a big overhead (in time and round trips). For example, "
|
|
"reading a file in 64 KB chunks is inefficient because each chunk would turn "
|
|
"into a single round trip. In the libguestfs API it is much more efficient "
|
|
"to download an entire file or directory through one of the streaming calls "
|
|
"like C<guestfs_download> or C<guestfs_tar_out>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:1053
|
|
msgid "Why don't you do everything through GVFS?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1055
|
|
msgid "The problems are similar to the problems with FUSE."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1057
|
|
msgid ""
|
|
"GVFS is a better abstraction than POSIX/FUSE. There is an FTP backend for "
|
|
"GVFS, which is encouraging because FTP is conceptually similar to the "
|
|
"libguestfs API. However the GVFS FTP backend makes multiple simultaneous "
|
|
"connections in order to keep interactivity, which we can't easily do with "
|
|
"libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1065
|
|
msgid "<!-- old anchor for the next section --> <a name=\"backup\"/>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:1070
|
|
msgid "Why can I write to the disk, even though I added it read-only?"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:1072
|
|
msgid "Why does C<--ro> appear to have no effect?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1074
|
|
msgid ""
|
|
"When you add a disk read-only, libguestfs places a writable overlay on top "
|
|
"of the underlying disk. Writes go into this overlay, and are discarded when "
|
|
"the handle is closed (or C<guestfish> etc. exits)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1078
|
|
msgid ""
|
|
"There are two reasons for doing it this way: Firstly read-only disks aren't "
|
|
"possible in many cases (eg. IDE simply doesn't support them, so you couldn't "
|
|
"have an IDE-emulated read-only disk, although this is not common in real "
|
|
"libguestfs installations)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1083
|
|
msgid ""
|
|
"Secondly and more importantly, even if read-only disks were possible, you "
|
|
"wouldn't want them. Mounting any filesystem that has a journal, even "
|
|
"C<mount -o ro>, causes writes to the filesystem because the journal has to "
|
|
"be replayed and metadata updated. If the disk was truly read-only, you "
|
|
"wouldn't be able to mount a dirty filesystem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1089
|
|
msgid ""
|
|
"To make it usable, we create the overlay as a place to temporarily store "
|
|
"these writes, and then we discard it afterwards. This ensures that the "
|
|
"underlying disk is always untouched."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1093
|
|
msgid ""
|
|
"Note also that there is a regression test for this when building libguestfs "
|
|
"(in C<tests/qemu>). This is one reason why it's important for packagers to "
|
|
"run the test suite."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:1097
|
|
msgid "Does C<--ro> make all disks read-only?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1099
|
|
msgid ""
|
|
"I<No!> The C<--ro> option only affects disks added on the command line, "
|
|
"ie. using C<-a> and C<-d> options."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1102
|
|
msgid ""
|
|
"In guestfish, if you use the C<add> command, then disk is added read-write "
|
|
"(unless you specify the C<readonly:true> flag explicitly with the command)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:1106
|
|
msgid "Can I use C<guestfish --ro> as a way to backup my virtual machines?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1108
|
|
msgid ""
|
|
"Usually this is I<not> a good idea. The question is answered in more detail "
|
|
"in this mailing list posting: "
|
|
"L<https://www.redhat.com/archives/libguestfs/2010-August/msg00024.html>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1112
|
|
msgid "See also the next question."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:1114
|
|
msgid "Why can't I run fsck on a live filesystem using C<guestfish --ro>?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1116
|
|
msgid "This command will usually I<not> work:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:1118
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --ro -a /dev/vg/my_root_fs run : fsck /dev/sda\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1120
|
|
msgid ""
|
|
"The reason for this is that qemu creates a snapshot over the original "
|
|
"filesystem, but it doesn't create a strict point-in-time snapshot. Blocks "
|
|
"of data on the underlying filesystem are read by qemu at different times as "
|
|
"the fsck operation progresses, with host writes in between. The result is "
|
|
"that fsck sees massive corruption (imaginary, not real!) and fails."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1127
|
|
msgid ""
|
|
"What you have to do is to create a point-in-time snapshot. If it's a "
|
|
"logical volume, use an LVM2 snapshot. If the filesystem is located inside "
|
|
"something like a btrfs/ZFS file, use a btrfs/ZFS snapshot, and then run the "
|
|
"fsck on the snapshot. In practice you don't need to use libguestfs for this "
|
|
"-- just run C</sbin/fsck> directly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1133
|
|
msgid ""
|
|
"Creating point-in-time snapshots of host devices and files is outside the "
|
|
"scope of libguestfs, although libguestfs can operate on them once they are "
|
|
"created."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:1137
|
|
msgid "What's the difference between guestfish and virt-rescue?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1139
|
|
msgid ""
|
|
"A lot of people are confused by the two superficially similar tools we "
|
|
"provide:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:1142
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ guestfish --ro -a guest.img\n"
|
|
" ><fs> run\n"
|
|
" ><fs> fsck /dev/sda1\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:1146
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ virt-rescue --ro guest.img\n"
|
|
" ><rescue> /sbin/fsck /dev/sda1\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1149
|
|
msgid ""
|
|
"And the related question which then arises is why you can't type in full "
|
|
"shell commands with all the --options in guestfish (but you can in "
|
|
"L<virt-rescue(1)>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1153
|
|
msgid ""
|
|
"L<guestfish(1)> is a program providing structured access to the "
|
|
"L<guestfs(3)> API. It happens to be a nice interactive shell too, but its "
|
|
"primary purpose is structured access from shell scripts. Think of it more "
|
|
"like a language binding, like Python and other bindings, but for shell. The "
|
|
"key differentiating factor of guestfish (and the libguestfs API in general) "
|
|
"is the ability to automate changes."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1160
|
|
msgid ""
|
|
"L<virt-rescue(1)> is a free-for-all freeform way to boot the libguestfs "
|
|
"appliance and make arbitrary changes to your VM. It's not structured, you "
|
|
"can't automate it, but for making quick ad-hoc fixes to your guests, it can "
|
|
"be quite useful."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1165
|
|
msgid ""
|
|
"But, libguestfs also has a \"backdoor\" into the appliance allowing you to "
|
|
"send arbitrary shell commands. It's not as flexible as virt-rescue, because "
|
|
"you can't interact with the shell commands, but here it is anyway:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:1170
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><fs> debug sh \"cmd arg1 arg2 ...\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1172
|
|
msgid ""
|
|
"Note that you should B<not> rely on this. It could be removed or changed in "
|
|
"future. If your program needs some operation, please add it to the "
|
|
"libguestfs API instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:1176
|
|
msgid "What's the deal with C<guestfish -i>?"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:1178
|
|
msgid ""
|
|
"Why does virt-cat only work on a real VM image, but virt-df works on any "
|
|
"disk image?"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:1181
|
|
msgid "What does \"no root device found in this operating system image\" mean?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1184
|
|
msgid ""
|
|
"These questions are all related at a fundamental level which may not be "
|
|
"immediately obvious."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1187
|
|
msgid ""
|
|
"At the L<guestfs(3)> API level, a \"disk image\" is just a pile of "
|
|
"partitions and filesystems."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1190
|
|
msgid ""
|
|
"In contrast, when the virtual machine boots, it mounts those filesystems "
|
|
"into a consistent hierarchy such as:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:1193
|
|
#, no-wrap
|
|
msgid ""
|
|
" / (/dev/sda2)\n"
|
|
" |\n"
|
|
" +-- /boot (/dev/sda1)\n"
|
|
" |\n"
|
|
" +-- /home (/dev/vg_external/Homes)\n"
|
|
" |\n"
|
|
" +-- /usr (/dev/vg_os/lv_usr)\n"
|
|
" |\n"
|
|
" +-- /var (/dev/vg_os/lv_var)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1203
|
|
msgid "(or drive letters on Windows)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1205
|
|
msgid ""
|
|
"The API first of all sees the disk image at the \"pile of filesystems\" "
|
|
"level. But it also has a way to inspect the disk image to see if it "
|
|
"contains an operating system, and how the disks are mounted when the "
|
|
"operating system boots: L<guestfs(3)/INSPECTION>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1210
|
|
msgid "Users expect some tools (like L<virt-cat(1)>) to work with VM paths:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-faq.pod:1212
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-cat fedora.img /var/log/messages\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1214
|
|
msgid ""
|
|
"How does virt-cat know that C</var> is a separate partition? The trick is "
|
|
"that virt-cat performs inspection on the disk image, and uses that to "
|
|
"translate the path correctly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1218
|
|
msgid ""
|
|
"Some tools (including L<virt-cat(1)>, L<virt-edit(1)>, L<virt-ls(1)>) use "
|
|
"inspection to map VM paths. Other tools, such as L<virt-df(1)> and "
|
|
"L<virt-filesystems(1)> operate entirely at the raw \"big pile of "
|
|
"filesystems\" level of the libguestfs API, and don't use inspection."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1223
|
|
msgid ""
|
|
"L<guestfish(1)> is in an interesting middle ground. If you use the I<-a> "
|
|
"and I<-m> command line options, then you have to tell guestfish exactly how "
|
|
"to add disk images and where to mount partitions. This is the raw API level."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1228
|
|
msgid ""
|
|
"If you use the I<-i> option, libguestfs performs inspection and mounts the "
|
|
"filesystems for you."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1231
|
|
msgid ""
|
|
"The error C<no root device found in this operating system image> is related "
|
|
"to this. It means inspection was unable to locate an operating system "
|
|
"within the disk image you gave it. You might see this from programs like "
|
|
"virt-cat if you try to run them on something which is just a disk image, not "
|
|
"a virtual machine disk image."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:1237
|
|
msgid "What do these C<debug*> and C<internal-*> functions do?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1239
|
|
msgid ""
|
|
"There are some functions which are used for debugging and internal purposes "
|
|
"which are I<not> part of the stable API."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1242
|
|
msgid ""
|
|
"The C<debug*> (or C<guestfs_debug*>) functions, primarily "
|
|
"L<guestfs(3)/guestfs_debug> and a handful of others, are used for debugging "
|
|
"libguestfs. Although they are not part of the stable API and thus may "
|
|
"change or be removed at any time, some programs may want to call these while "
|
|
"waiting for features to be added to libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1248
|
|
msgid ""
|
|
"The C<internal-*> (or C<guestfs_internal_*>) functions are purely to be used "
|
|
"by libguestfs itself. There is no reason for programs to call them, and "
|
|
"programs should not try to use them. Using them will often cause bad things "
|
|
"to happen, as well as not being part of the documented stable API."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-faq.pod:1254
|
|
msgid "DEVELOPERS"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:1256
|
|
msgid "Where do I send patches?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1258
|
|
msgid ""
|
|
"Please send patches to the libguestfs mailing list "
|
|
"L<https://www.redhat.com/mailman/listinfo/libguestfs>. You don't have to be "
|
|
"subscribed, but there will be a delay until your posting is manually "
|
|
"approved."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1263
|
|
msgid ""
|
|
"B<Please don't use github pull requests - they will be ignored>. The "
|
|
"reasons are (a) we want to discuss and dissect patches on the mailing list, "
|
|
"and (b) github pull requests turn into merge commits but we prefer to have a "
|
|
"linear history."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:1268
|
|
msgid "How do I propose a feature?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1270
|
|
msgid ""
|
|
"Large new features that you intend to contribute should be discussed on the "
|
|
"mailing list first (L<https://www.redhat.com/mailman/listinfo/libguestfs>). "
|
|
"This avoids disappointment and wasted work if we don't think the feature "
|
|
"would fit into the libguestfs project."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1276
|
|
msgid ""
|
|
"If you want to suggest a useful feature but don't want to write the code, "
|
|
"you can file a bug (see L</GETTING HELP AND REPORTING BUGS>) with C<\"RFE: "
|
|
"\"> at the beginning of the Summary line."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:1280
|
|
msgid "Who can commit to libguestfs git?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1282
|
|
msgid ""
|
|
"About 5 people have commit access to github. Patches should be posted on "
|
|
"the list first and ACKed. The policy for ACKing and pushing patches is "
|
|
"outlined here:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1286
|
|
msgid "L<https://www.redhat.com/archives/libguestfs/2012-January/msg00023.html>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-faq.pod:1288
|
|
msgid "Can I fork libguestfs?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1290
|
|
msgid ""
|
|
"Of course you can. Git makes it easy to fork libguestfs. Github makes it "
|
|
"even easier. It's nice if you tell us on the mailing list about forks and "
|
|
"the reasons for them."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1296
|
|
msgid "L<guestfish(1)>, L<guestfs(3)>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-faq.pod:1306
|
|
msgid "Copyright (C) 2012-2014 Red Hat Inc."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:5
|
|
msgid "guestfs-performance - engineering libguestfs for greatest performance"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:9
|
|
msgid ""
|
|
"This page documents how to get the greatest performance out of libguestfs, "
|
|
"especially when you expect to use libguestfs to manipulate thousands of "
|
|
"virtual machines or disk images."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:13
|
|
msgid ""
|
|
"Three main areas are covered. Libguestfs runs an appliance (a small Linux "
|
|
"distribution) inside qemu/KVM. The first two areas are: minimizing the time "
|
|
"taken to start this appliance, and the number of times the appliance has to "
|
|
"be started. The third area is shortening the time taken for inspection of "
|
|
"VMs."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-performance.pod:19
|
|
msgid "BASELINE MEASUREMENTS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:21
|
|
msgid "Before making changes to how you use libguestfs, take baseline measurements."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-performance.pod:24
|
|
msgid "BASELINE: STARTING THE APPLIANCE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:26
|
|
msgid "On an unloaded machine, time how long it takes to start up the appliance:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:29 ../examples/guestfs-performance.pod:171 ../examples/guestfs-testing.pod:51
|
|
#, no-wrap
|
|
msgid ""
|
|
" time guestfish -a /dev/null run\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:31
|
|
msgid ""
|
|
"Run this command several times in a row and discard the first few runs, so "
|
|
"that you are measuring a typical \"hot cache\" case."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../examples/guestfs-performance.pod:34 ../examples/guestfs-performance.pod:67
|
|
msgid "Explanation"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:36
|
|
msgid ""
|
|
"This command starts up the libguestfs appliance on a null disk, and then "
|
|
"immediately shuts it down. The first time you run the command, it will "
|
|
"create an appliance and cache it (usually under C</var/tmp/.guestfs-*>). "
|
|
"Subsequent runs should reuse the cached appliance."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../examples/guestfs-performance.pod:42 ../examples/guestfs-performance.pod:78
|
|
msgid "Expected results"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:44
|
|
msgid ""
|
|
"You should expect to be getting times under 6 seconds. If the times you see "
|
|
"on an unloaded machine are above this, then see the section "
|
|
"L</TROUBLESHOOTING POOR PERFORMANCE> below."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-performance.pod:48
|
|
msgid "BASELINE: PERFORMING INSPECTION OF A GUEST"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:50
|
|
msgid ""
|
|
"For this test you will need an unloaded machine and at least one real guest "
|
|
"or disk image. If you are planning to use libguestfs against only X guests "
|
|
"(eg. X = Windows), then using an X guest here would be most appropriate. If "
|
|
"you are planning to run libguestfs against a mix of guests, then use a mix "
|
|
"of guests for testing here."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:56
|
|
msgid ""
|
|
"Time how long it takes to perform inspection and mount the disks of the "
|
|
"guest. Use the first command if you will be using disk images, and the "
|
|
"second command if you will be using libvirt."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:60
|
|
#, no-wrap
|
|
msgid ""
|
|
" time guestfish --ro -a disk.img -i exit\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:62
|
|
#, no-wrap
|
|
msgid ""
|
|
" time guestfish --ro -d GuestName -i exit\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:64
|
|
msgid ""
|
|
"Run the command several times in a row and discard the first few runs, so "
|
|
"that you are measuring a typical \"hot cache\" case."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:69
|
|
msgid ""
|
|
"This command starts up the libguestfs appliance on the named disk image or "
|
|
"libvirt guest, performs libguestfs inspection on it (see "
|
|
"L<guestfs(3)/INSPECTION>), mounts the guest's disks, then discards all these "
|
|
"results and shuts down."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:74
|
|
msgid ""
|
|
"The first time you run the command, it will create an appliance and cache it "
|
|
"(usually under C</var/tmp/.guestfs-*>). Subsequent runs should reuse the "
|
|
"cached appliance."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:80
|
|
msgid ""
|
|
"You should expect times which are E<le> 5 seconds greater than measured in "
|
|
"the first baseline test above. (For example, if the first baseline test ran "
|
|
"in 5 seconds, then this test should run in E<le> 10 seconds)."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-performance.pod:85
|
|
msgid "UNDERSTANDING THE APPLIANCE AND WHEN IT IS BUILT/CACHED"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:87
|
|
msgid ""
|
|
"The first time you use libguestfs, it will build and cache an appliance. "
|
|
"This is usually in C</var/tmp/.guestfs-*>, unless you have set C<$TMPDIR> or "
|
|
"C<$LIBGUESTFS_CACHEDIR> in which case it will be under that temporary "
|
|
"directory."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:92
|
|
msgid ""
|
|
"For more information about how the appliance is constructed, see "
|
|
"L<supermin(1)/SUPERMIN APPLIANCES>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:95
|
|
msgid ""
|
|
"Every time libguestfs runs it will check that no host files used by the "
|
|
"appliance have changed. If any have, then the appliance is rebuilt. This "
|
|
"usually happens when a package is installed or updated on the host "
|
|
"(eg. using programs like C<yum> or C<apt-get>). The reason for "
|
|
"reconstructing the appliance is security: the new program that has been "
|
|
"installed might contain a security fix, and so we want to include the fixed "
|
|
"program in the appliance automatically."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:103
|
|
msgid "These are the performance implications:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:109
|
|
msgid ""
|
|
"The process of building (or rebuilding) the cached appliance is slow, and "
|
|
"you can avoid this happening by using a fixed appliance (see below)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:115
|
|
msgid ""
|
|
"If not using a fixed appliance, be aware that updating software on the host "
|
|
"will cause a one time rebuild of the appliance."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:120
|
|
msgid ""
|
|
"C</var/tmp> (or C<$TMPDIR>, C<$LIBGUESTFS_CACHEDIR>) should be on a fast "
|
|
"disk, and have plenty of space for the appliance."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-performance.pod:125
|
|
msgid "USING A FIXED APPLIANCE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:127
|
|
msgid ""
|
|
"To fully control when the appliance is built, you can build a fixed "
|
|
"appliance. This appliance should be stored on a fast local disk."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:130
|
|
msgid "To build the appliance, run the command:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:132
|
|
#, no-wrap
|
|
msgid ""
|
|
" libguestfs-make-fixed-appliance <directory>\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:134
|
|
msgid ""
|
|
"replacing C<E<lt>directoryE<gt>> with the name of a directory where the "
|
|
"appliance will be stored (normally you would name a subdirectory, for "
|
|
"example: C</usr/local/lib/guestfs/appliance> or C</dev/shm/appliance>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:139
|
|
msgid ""
|
|
"Then set C<$LIBGUESTFS_PATH> (and ensure this environment variable is set in "
|
|
"your libguestfs program), or modify your program so it calls "
|
|
"C<guestfs_set_path>. For example:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:145
|
|
msgid ""
|
|
"Now you can run libguestfs programs, virt tools, guestfish etc. as normal. "
|
|
"The programs will use your fixed appliance, and will not ever build, "
|
|
"rebuild, or cache their own appliance."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:149
|
|
msgid ""
|
|
"(For detailed information on this subject, see: "
|
|
"L<libguestfs-make-fixed-appliance(1)>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-performance.pod:152
|
|
msgid "PERFORMANCE OF THE FIXED APPLIANCE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:154
|
|
msgid ""
|
|
"In our testing we did not find that using a fixed appliance gave any "
|
|
"measurable performance benefit, even when the appliance was located in "
|
|
"memory (ie. on C</dev/shm>). However there are two points to consider:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:163
|
|
msgid ""
|
|
"Using a fixed appliance stops libguestfs from ever rebuilding the appliance, "
|
|
"meaning that libguestfs will have more predictable start-up times."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:169
|
|
msgid "The appliance is loaded on demand. A simple test such as:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:173
|
|
msgid ""
|
|
"does not load very much of the appliance. A real libguestfs program using "
|
|
"complicated API calls would demand-load a lot more of the appliance. Being "
|
|
"able to store the appliance in a specified location makes the performance "
|
|
"more predictable."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-performance.pod:180
|
|
msgid "REDUCING THE NUMBER OF TIMES THE APPLIANCE IS LAUNCHED"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:182
|
|
msgid ""
|
|
"By far the most effective, though not always the simplest way to get good "
|
|
"performance is to ensure that the appliance is launched the minimum number "
|
|
"of times. This will probably involve changing your libguestfs application."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:187
|
|
msgid ""
|
|
"Try to call C<guestfs_launch> at most once per target virtual machine or "
|
|
"disk image."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:190
|
|
msgid ""
|
|
"Instead of using a separate instance of L<guestfish(1)> to make a series of "
|
|
"changes to the same guest, use a single instance of guestfish and/or use the "
|
|
"guestfish I<--listen> option."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:194
|
|
msgid ""
|
|
"Consider writing your program as a daemon which holds a guest open while "
|
|
"making a series of changes. Or marshal all the operations you want to "
|
|
"perform before opening the guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:198
|
|
msgid ""
|
|
"You can also try adding disks from multiple guests to a single appliance. "
|
|
"Before trying this, note the following points:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:205
|
|
msgid ""
|
|
"Adding multiple guests to one appliance is a security problem because it may "
|
|
"allow one guest to interfere with the disks of another guest. Only do it if "
|
|
"you trust all the guests, or if you can group guests by trust."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:212
|
|
msgid ""
|
|
"There is a hard limit to the number of disks you can add to a single "
|
|
"appliance. Call L<guestfs(3)/guestfs_max_disks> to get this limit. For "
|
|
"further information see L<guestfs(3)/LIMITS>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:218
|
|
msgid ""
|
|
"Using libguestfs this way is complicated. Disks can have unexpected "
|
|
"interactions: for example, if two guests use the same UUID for a filesystem "
|
|
"(because they were cloned), or have volume groups with the same name (but "
|
|
"see C<guestfs_lvm_set_filter>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:225
|
|
msgid ""
|
|
"L<virt-df(1)> adds multiple disks by default, so the source code for this "
|
|
"program would be a good place to start."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-performance.pod:228
|
|
msgid "SHORTENING THE TIME TAKEN FOR INSPECTION OF VMs"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:230
|
|
msgid ""
|
|
"The main advice is obvious: Do not perform inspection (which is expensive) "
|
|
"unless you need the results."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:233
|
|
msgid ""
|
|
"If you previously performed inspection on the guest, then it may be safe to "
|
|
"cache and reuse the results from last time."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:236
|
|
msgid ""
|
|
"Some disks don't need to be inspected at all: for example, if you are "
|
|
"creating a disk image, or if the disk image is not a VM, or if the disk "
|
|
"image has a known layout."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:240
|
|
msgid ""
|
|
"Even when basic inspection (C<guestfs_inspect_os>) is required, auxiliary "
|
|
"inspection operations may be avoided:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:247
|
|
msgid "Mounting disks is only necessary to get further filesystem information."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:252
|
|
msgid ""
|
|
"Listing applications (C<guestfs_inspect_list_applications>) is an expensive "
|
|
"operation on Linux, but almost free on Windows."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:257
|
|
msgid ""
|
|
"Generating a guest icon (C<guestfs_inspect_get_icon>) is cheap on Linux but "
|
|
"expensive on Windows."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-performance.pod:262
|
|
msgid "PARALLEL APPLIANCES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:264
|
|
msgid ""
|
|
"Libguestfs appliances are mostly I/O bound and you can launch multiple "
|
|
"appliances in parallel. Provided there is enough free memory, there should "
|
|
"be little difference in launching 1 appliance vs N appliances in parallel."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:269
|
|
msgid ""
|
|
"On a 2-core (4-thread) laptop with 16 GB of RAM, using the (not especially "
|
|
"realistic) test Perl script below, the following plot shows excellent "
|
|
"scalability when running between 1 and 20 appliances in parallel:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:274
|
|
#, no-wrap
|
|
msgid ""
|
|
" 12 ++---+----+----+----+-----+----+----+----+----+---++\n"
|
|
" + + + + + + + + + + *\n"
|
|
" | |\n"
|
|
" | * |\n"
|
|
" 11 ++ ++\n"
|
|
" | |\n"
|
|
" | |\n"
|
|
" | * * |\n"
|
|
" 10 ++ ++\n"
|
|
" | * |\n"
|
|
" | |\n"
|
|
" s | |\n"
|
|
" 9 ++ ++\n"
|
|
" e | |\n"
|
|
" | * |\n"
|
|
" c | |\n"
|
|
" 8 ++ * ++\n"
|
|
" o | * |\n"
|
|
" | |\n"
|
|
" n 7 ++ ++\n"
|
|
" | * |\n"
|
|
" d | * |\n"
|
|
" | |\n"
|
|
" s 6 ++ ++\n"
|
|
" | * * |\n"
|
|
" | * |\n"
|
|
" | |\n"
|
|
" 5 ++ ++\n"
|
|
" | |\n"
|
|
" | * |\n"
|
|
" | * * |\n"
|
|
" 4 ++ ++\n"
|
|
" | |\n"
|
|
" | |\n"
|
|
" + * * * + + + + + + + +\n"
|
|
" 3 ++-*-+----+----+----+-----+----+----+----+----+---++\n"
|
|
" 0 2 4 6 8 10 12 14 16 18 20\n"
|
|
" number of parallel appliances\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:313
|
|
msgid ""
|
|
"It is possible to run many more than 20 appliances in parallel, but if you "
|
|
"are using the libvirt backend then you should be aware that out of the box "
|
|
"libvirt limits the number of client connections to 20."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:317
|
|
msgid ""
|
|
"The simple Perl script below was used to collect the data for the plot "
|
|
"above, but there is much more information on this subject, including more "
|
|
"advanced test scripts and graphs, available in the following blog postings:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:322
|
|
msgid ""
|
|
"L<http://rwmj.wordpress.com/2013/02/25/multiple-libguestfs-appliances-in-parallel-part-1/> "
|
|
"L<http://rwmj.wordpress.com/2013/02/25/multiple-libguestfs-appliances-in-parallel-part-2/> "
|
|
"L<http://rwmj.wordpress.com/2013/02/25/multiple-libguestfs-appliances-in-parallel-part-3/> "
|
|
"L<http://rwmj.wordpress.com/2013/02/25/multiple-libguestfs-appliances-in-parallel-part-4/>"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:327
|
|
#, no-wrap
|
|
msgid ""
|
|
" #!/usr/bin/perl -w\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:329
|
|
#, no-wrap
|
|
msgid ""
|
|
" use strict;\n"
|
|
" use threads;\n"
|
|
" use Sys::Guestfs;\n"
|
|
" use Time::HiRes qw(time);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:334
|
|
#, no-wrap
|
|
msgid ""
|
|
" sub test {\n"
|
|
" my $g = Sys::Guestfs->new;\n"
|
|
" $g->add_drive_ro (\"/dev/null\");\n"
|
|
" $g->launch ();\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:339
|
|
#, no-wrap
|
|
msgid ""
|
|
" # You could add some work for libguestfs to do here.\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:341
|
|
#, no-wrap
|
|
msgid ""
|
|
" $g->close ();\n"
|
|
" }\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:344
|
|
#, no-wrap
|
|
msgid ""
|
|
" # Get everything into cache.\n"
|
|
" test (); test (); test ();\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:347
|
|
#, no-wrap
|
|
msgid ""
|
|
" for my $nr_threads (1..20) {\n"
|
|
" my $start_t = time ();\n"
|
|
" my @threads;\n"
|
|
" foreach (1..$nr_threads) {\n"
|
|
" push @threads, threads->create (\\&test)\n"
|
|
" }\n"
|
|
" foreach (@threads) {\n"
|
|
" $_->join ();\n"
|
|
" if (my $err = $_->error ()) {\n"
|
|
" die \"launch failed with $nr_threads threads: $err\"\n"
|
|
" }\n"
|
|
" }\n"
|
|
" my $end_t = time ();\n"
|
|
" printf (\"%d %.2f\\n\", $nr_threads, $end_t - $start_t);\n"
|
|
" }\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-performance.pod:363
|
|
msgid "USING USER-MODE LINUX"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:365
|
|
msgid ""
|
|
"Since libguestfs 1.24, it has been possible to use the User-Mode Linux (uml) "
|
|
"backend instead of KVM (see L<guestfs(3)/USER-MODE LINUX BACKEND>). This "
|
|
"section makes some general remarks about this backend, but it is B<highly "
|
|
"advisable> to measure your own workload under UML rather than trusting "
|
|
"comments or intuition."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:376
|
|
msgid "UML usually performs the same or slightly slower than KVM, on baremetal."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:380
|
|
msgid ""
|
|
"However UML often performs the same under virtualization as it does on "
|
|
"baremetal, whereas KVM can run much slower under virtualization (since "
|
|
"hardware virt acceleration is not available)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:386
|
|
msgid ""
|
|
"Upload and download is as much as 10 times slower on UML than KVM. "
|
|
"Libguestfs sends this data over the UML emulated serial port, which is far "
|
|
"less efficient than KVM's virtio-serial."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:392
|
|
msgid ""
|
|
"UML lacks some features (eg. qcow2 support), so it may not be applicable at "
|
|
"all."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:397
|
|
msgid ""
|
|
"For some actual figures, see: "
|
|
"L<http://rwmj.wordpress.com/2013/08/14/performance-of-user-mode-linux-as-a-libguestfs-backend/#content>"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-performance.pod:400
|
|
msgid "TROUBLESHOOTING POOR PERFORMANCE"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-performance.pod:402
|
|
msgid "ENSURE HARDWARE VIRTUALIZATION IS AVAILABLE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:404
|
|
msgid "Use C</proc/cpuinfo> and this page:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:406
|
|
msgid "http://virt-tools.org/learning/check-hardware-virt/"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:408
|
|
msgid ""
|
|
"to ensure that hardware virtualization is available. Note that you may need "
|
|
"to enable it in your BIOS."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:411
|
|
msgid ""
|
|
"Hardware virt is not usually available inside VMs, and libguestfs will run "
|
|
"slowly inside another virtual machine whatever you do. Nested "
|
|
"virtualization does not work well in our experience, and is certainly no "
|
|
"substitute for running libguestfs on baremetal."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-performance.pod:416
|
|
msgid "ENSURE KVM IS AVAILABLE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:418
|
|
msgid ""
|
|
"Ensure that KVM is enabled and available to the user that will run "
|
|
"libguestfs. It should be safe to set 0666 permissions on C</dev/kvm> and "
|
|
"most distributions now do this."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-performance.pod:422
|
|
msgid "PROCESSORS TO AVOID"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:424
|
|
msgid ""
|
|
"Avoid processors that don't have hardware virtualization, and some "
|
|
"processors which are simply very slow (AMD Geode being a great example)."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-performance.pod:428
|
|
msgid "DETAILED TIMINGS USING ANNOTATE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:430
|
|
msgid ""
|
|
"Use the L<annotate(1)>/L<annotate-output(1)> command to show detailed "
|
|
"timings:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:433
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ annotate-output +'%T.%N' guestfish -a /dev/null run -v\n"
|
|
" 22:17:53.215784625 I: Started guestfish -a /dev/null run -v\n"
|
|
" 22:17:53.240335409 E: libguestfs: [00000ms] supermin-helper --verbose -f "
|
|
"checksum '/usr/lib64/guestfs/supermin.d' x86_64\n"
|
|
" 22:17:53.266857866 E: supermin helper [00000ms] whitelist = (not "
|
|
"specified), host_cpu = x86_64, kernel = (null), initrd = (null), appliance = "
|
|
"(null)\n"
|
|
" 22:17:53.272704072 E: supermin helper [00000ms] inputs[0] = "
|
|
"/usr/lib64/guestfs/supermin.d\n"
|
|
" 22:17:53.276528651 E: checking modpath "
|
|
"/lib/modules/3.4.0-1.fc17.x86_64.debug is a directory\n"
|
|
" [etc]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:441
|
|
msgid ""
|
|
"The timestamps are C<hours:minutes:seconds.nanoseconds>. By comparing the "
|
|
"timestamps you can see exactly how long each operation in the boot sequence "
|
|
"takes."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-performance.pod:445
|
|
msgid "DETAILED TIMINGS USING SYSTEMTAP"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:447
|
|
msgid ""
|
|
"You can use SystemTap (L<stap(1)>) to get detailed timings from libguestfs "
|
|
"programs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:450
|
|
msgid "Save the following script as C<time.stap>:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:452 ../src/guestfs.pod:3308
|
|
#, no-wrap
|
|
msgid ""
|
|
" global last;\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:454 ../src/guestfs.pod:3310
|
|
#, no-wrap
|
|
msgid ""
|
|
" function display_time () {\n"
|
|
" now = gettimeofday_us ();\n"
|
|
" delta = 0;\n"
|
|
" if (last > 0)\n"
|
|
" delta = now - last;\n"
|
|
" last = now;\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:461 ../src/guestfs.pod:3317
|
|
#, no-wrap
|
|
msgid ""
|
|
" printf (\"%d (+%d):\", now, delta);\n"
|
|
" }\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:464 ../src/guestfs.pod:3320
|
|
#, no-wrap
|
|
msgid ""
|
|
" probe begin {\n"
|
|
" last = 0;\n"
|
|
" printf (\"ready\\n\");\n"
|
|
" }\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:469 ../src/guestfs.pod:3325
|
|
#, no-wrap
|
|
msgid ""
|
|
" /* Display all calls to static markers. */\n"
|
|
" probe process(\"/usr/lib*/libguestfs.so.0\")\n"
|
|
" .provider(\"guestfs\").mark(\"*\") ? {\n"
|
|
" display_time();\n"
|
|
" printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
|
|
" }\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:476
|
|
#, no-wrap
|
|
msgid ""
|
|
" /* Display all calls to guestfs_* functions. */\n"
|
|
" probe process(\"/usr/lib*/libguestfs.so.0\")\n"
|
|
" .function(\"guestfs_[a-z]*\") ? {\n"
|
|
" display_time();\n"
|
|
" printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
|
|
" }\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:483
|
|
msgid "Run it as root in one window:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:485
|
|
#, no-wrap
|
|
msgid ""
|
|
" # stap time.stap\n"
|
|
" ready\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:488
|
|
msgid ""
|
|
"It prints \"ready\" when SystemTap has loaded the program. Run your "
|
|
"libguestfs program, guestfish or a virt tool in another window. For "
|
|
"example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:492
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ guestfish -a /dev/null run\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:494
|
|
msgid ""
|
|
"In the stap window you will see a large amount of output, with the time "
|
|
"taken for each step shown (microseconds in parenthesis). For example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:498
|
|
#, no-wrap
|
|
msgid ""
|
|
" xxxx (+0):\tguestfs_create \n"
|
|
" xxxx (+29):\tguestfs_set_pgroup g=0x17a9de0 pgroup=0x1\n"
|
|
" xxxx (+9):\tguestfs_add_drive_opts_argv g=0x17a9de0 [...]\n"
|
|
" xxxx (+8):\tguestfs___safe_strdup g=0x17a9de0 str=0x7f8a153bed5d\n"
|
|
" xxxx (+19):\tguestfs___safe_malloc g=0x17a9de0 nbytes=0x38\n"
|
|
" xxxx (+5):\tguestfs___safe_strdup g=0x17a9de0 str=0x17a9f60\n"
|
|
" xxxx (+10):\tguestfs_launch g=0x17a9de0\n"
|
|
" xxxx (+4):\tlaunch_start \n"
|
|
" [etc]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:508
|
|
msgid ""
|
|
"You will need to consult, and even modify, the source to libguestfs to fully "
|
|
"understand the output."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-performance.pod:511
|
|
msgid "DETAILED DEBUGGING USING GDB"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:513
|
|
msgid ""
|
|
"You can attach to the appliance BIOS/kernel using gdb. If you know what "
|
|
"you're doing, this can be a useful way to diagnose boot regressions."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:517
|
|
msgid ""
|
|
"Firstly, you have to change qemu so it runs with the C<-S> and C<-s> "
|
|
"options. These options cause qemu to pause at boot and allow you to attach "
|
|
"a debugger. Read L<qemu(1)> for further information. Libguestfs invokes "
|
|
"qemu several times (to scan the help output and so on) and you only want the "
|
|
"final invocation of qemu to use these options, so use a qemu wrapper script "
|
|
"like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:524 ../fish/guestfish.pod:1015 ../src/guestfs.pod:1382
|
|
#, no-wrap
|
|
msgid ""
|
|
" #!/bin/bash -\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:526
|
|
#, no-wrap
|
|
msgid ""
|
|
" # Set this to point to the real qemu binary.\n"
|
|
" qemu=/usr/bin/qemu-kvm\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:529
|
|
#, no-wrap
|
|
msgid ""
|
|
" if [ \"$1\" != \"-global\" ]; then\n"
|
|
" # Scanning help output etc.\n"
|
|
" exec $qemu \"$@\"\n"
|
|
" else \n"
|
|
" # Really running qemu.\n"
|
|
" exec $qemu -S -s \"$@\"\n"
|
|
" fi\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:537
|
|
msgid ""
|
|
"Now run guestfish or another libguestfs tool with the qemu wrapper (see "
|
|
"L<guestfs(3)/QEMU WRAPPERS> to understand what this is doing):"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:540
|
|
#, no-wrap
|
|
msgid ""
|
|
" LIBGUESTFS_HV=/path/to/qemu-wrapper guestfish -a /dev/null -v run\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:542
|
|
msgid ""
|
|
"This should pause just after qemu launches. In another window, attach to "
|
|
"qemu using gdb:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-performance.pod:545
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ gdb\n"
|
|
" (gdb) set architecture i8086\n"
|
|
" The target architecture is assumed to be i8086\n"
|
|
" (gdb) target remote :1234\n"
|
|
" Remote debugging using :1234\n"
|
|
" 0x0000fff0 in ?? ()\n"
|
|
" (gdb) cont\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:553
|
|
msgid ""
|
|
"At this point you can use standard gdb techniques, eg. hitting C<^C> to "
|
|
"interrupt the boot and C<bt> get a stack trace, setting breakpoints, etc. "
|
|
"Note that when you are past the BIOS and into the Linux kernel, you'll want "
|
|
"to change the architecture back to 32 or 64 bit."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:561
|
|
msgid ""
|
|
"L<supermin(1)>, L<guestfish(1)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
|
|
"L<libguestfs-make-fixed-appliance(1)>, L<stap(1)>, L<qemu(1)>, L<gdb(1)>, "
|
|
"L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-performance.pod:577 ../format/virt-format.pod:203 ../lua/examples/guestfs-lua.pod:159
|
|
msgid "Copyright (C) 2012 Red Hat Inc."
|
|
msgstr ""
|
|
|
|
#. type: =end
|
|
#: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:8 ../guestfs-release-notes.pod:7 ../guestfs-release-notes.pod:14 ../guestfs-release-notes.pod:200 ../guestfs-release-notes.pod:204 ../guestfs-release-notes.pod:549 ../guestfs-release-notes.pod:553 ../guestfs-release-notes.pod:1105 ../guestfs-release-notes.pod:1109
|
|
msgid "comment"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:5
|
|
msgid ""
|
|
"We break with tradition here and don't use ALL CAPS for the section "
|
|
"headings, as this makes them much easier to read."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:12
|
|
msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:16
|
|
msgid ""
|
|
"This page contains recipes for and links to things you can do using "
|
|
"libguestfs, L<guestfish(1)> and the virt tools."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:19
|
|
msgid "Access a remote disk image using guestfish"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:21
|
|
msgid ""
|
|
"If the disk image is on a remote server which is accessible using SSH, HTTP, "
|
|
"FTP, NBD, iSCSI, or similar, then you can open it directly. See "
|
|
"L<guestfish(1)/ADDING REMOTE STORAGE> for several examples. This requires "
|
|
"libguestfs E<ge> 1.22 and qemu E<ge> 1.5."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:26
|
|
msgid "Audit a virtual machine for setuid files"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:28
|
|
msgid "See: L<virt-ls(1)/EXAMPLES>."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:30
|
|
msgid "Audit a virtual machine for vulnerabilities and security problems"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:32
|
|
msgid ""
|
|
"See: "
|
|
"L<https://rwmj.wordpress.com/2013/05/16/scanning-offline-guests-using-openscap-and-guestmount/#content>"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:35
|
|
msgid "Change the background image in a Windows XP VM"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:37
|
|
msgid ""
|
|
"The links below explain how to use L<guestfish(1)> to change the background "
|
|
"image for a user of a Windows XP VM. Unfortunately the technique appears to "
|
|
"be substantially different for each version of Windows."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:42
|
|
msgid ""
|
|
"L<https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html> "
|
|
"L<https://lists.fedoraproject.org/pipermail/virt/2011-May/002658.html>"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:45
|
|
msgid "Checksum a file or device within a disk image"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:47
|
|
msgid "To checksum a whole device, or a partition, LV etc within a disk image:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:49
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --ro -a disk.img run : checksum-device md5 /dev/sda1\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:51
|
|
msgid ""
|
|
"Replace C<md5> with the type of checksum you want. See "
|
|
"L<guestfs(3)/guestfs_checksum_device> for a list of supported types."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:54
|
|
msgid ""
|
|
"C</dev/sda1> means \"the first partition\". You could use C</dev/sda> to "
|
|
"checksum the whole disk image, or the name of a logical volume or RAID "
|
|
"device."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:58
|
|
msgid "To checksum a single file:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:60
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --ro -a disk.img -i checksum sha256 /etc/passwd\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:62
|
|
msgid "or for a Windows guest:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:64
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --ro -a disk.img -i \\\n"
|
|
" checksum sha256 'win:\\windows\\system32\\config\\SOFTWARE'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:67
|
|
msgid "Cloning a virtual machine"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:69
|
|
msgid ""
|
|
"Use a combination of tools like L<cp(1)>, L<dd(1)>, and virt tools like "
|
|
"L<virt-sysprep(1)>, L<virt-sparsify(1)> and L<virt-resize(1)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:73
|
|
msgid "For more details, see: L<virt-sysprep(1)/COPYING AND CLONING>."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:75
|
|
msgid "Convert a CD-ROM / DVD / ISO to a tarball"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:77
|
|
msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:79
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:81
|
|
msgid "To export just a subdirectory, eg. C</files>, do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:83
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:85
|
|
msgid "Convert from one format/filesystem to another"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:87
|
|
msgid ""
|
|
"If you have a data disk in one format / filesystem / partition / volume "
|
|
"manager, you can convert it another using this technique."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:90
|
|
msgid ""
|
|
"In this example, we start with a data disk that has a single partition "
|
|
"containing a filesystem, and we want to create another disk that contains "
|
|
"the same files but on an ext3 filesystem embedded in a logical volume on a "
|
|
"sparse raw-format disk."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:95
|
|
msgid "First create the formatted-but-empty target disk:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:97
|
|
#, no-wrap
|
|
msgid ""
|
|
" truncate -s 10G target.img\n"
|
|
" virt-format -a target.img --partition=mbr --lvm --filesystem=ext3\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:100
|
|
msgid ""
|
|
"Now, pipe two guestfish instances together to transfer the old data to the "
|
|
"new disk:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:103
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --ro -a source.img -m /dev/sda1 -- tar-out / - | \\\n"
|
|
" guestfish --rw -a target.img -m /dev/VG/LV -- tar-in - /\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:106
|
|
msgid "To browse the final disk image, do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:108
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --ro -a target.img -m /dev/VG/LV\n"
|
|
" ><fs> ll /\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:111
|
|
msgid ""
|
|
"This technique is quite powerful, allowing you for example to split up "
|
|
"source directories over the target filesystems."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:114
|
|
msgid ""
|
|
"Note this won't work (at least, not directly) for bootable virtual machine "
|
|
"disks because it doesn't copy over the boot loader."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:117
|
|
msgid "Convert Windows DVD to bootable USB key"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:119
|
|
msgid "L<http://rwmj.wordpress.com/2013/05/09/tip-convert-a-windows-dvd-iso-to-a-bootable-usb-key-using-guestfish/#content>"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:121
|
|
msgid "Convert Xen-style partitionless image to partitioned disk image"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:123
|
|
msgid ""
|
|
"Xen disk images are often partitionless, meaning that the filesystem starts "
|
|
"directly at the beginning of the disk with no partition table. You can in "
|
|
"fact use these directly in KVM (provided the guest isn't Windows), but some "
|
|
"people like to convert them to regular partitioned disk images, and this is "
|
|
"required for Windows guests. Here is how to use guestfish to do this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:130
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish\n"
|
|
" ><fs> add-ro input.img\n"
|
|
" ><fs> sparse output.img 10G # adjust the output size\n"
|
|
" ><fs> run\n"
|
|
" # Create a partition table on the output disk:\n"
|
|
" ><fs> part-init /dev/sdb mbr\n"
|
|
" ><fs> part-add /dev/sdb p 2048 -2048\n"
|
|
" # Copy the data to the target partition:\n"
|
|
" ><fs> copy-device-to-device /dev/sda /dev/sdb1 sparse:true\n"
|
|
" # Optionally resize the target filesystem. Use ntfsresize\n"
|
|
" # for Windows guests:\n"
|
|
" ><fs> resize2fs /dev/sdb1\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:143
|
|
msgid ""
|
|
"Such a disk image won't be directly bootable. You may need to boot it with "
|
|
"an external kernel and initramfs (see below). Or you can use the guestfish "
|
|
"commands C<syslinux> or C<extlinux> to install a SYSLINUX bootloader."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:148
|
|
msgid "Create empty disk images"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:150
|
|
msgid "The L<virt-format(1)> tool can do this directly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:152
|
|
msgid ""
|
|
"Use L<virt-make-fs(1)> to create a disk image with content. This can also "
|
|
"create some standard disk images such as virtual floppy devices (VFDs)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:156
|
|
msgid ""
|
|
"You can also use the L<guestfish(1)> I<-N> option to create empty disk "
|
|
"images. The useful guide below explains the options available."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:159
|
|
msgid "L<https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/#content>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:161
|
|
msgid "L<virt-builder(1)> can create \"empty\" guests."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:163
|
|
msgid "Delete a file (or other simple file operations)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:165
|
|
msgid "Use guestfish. To delete a file:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:167
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -a disk.img -i rm /file/to/delete\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:169
|
|
msgid "To touch a file (bring it up to date or create it):"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:171
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -a disk.img -i touch /file/to/touch\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:173
|
|
msgid ""
|
|
"To stat a file. Since this is a read-only operation, we can make it safer "
|
|
"by adding the I<--ro> flag."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:176
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --ro -a disk.img -i stat /file/to/stat\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:178
|
|
msgid ""
|
|
"There are dozens of these commands. See L<guestfish(1)> or the output of "
|
|
"C<guestfish -h>"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:181
|
|
msgid "Diff two guests; compare a snapshot to the current version"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:183
|
|
msgid ""
|
|
"Since libguestfs E<ge> 1.26, use L<virt-diff(1)> to look for differences "
|
|
"between two guests (for example if they were originally cloned from the same "
|
|
"source), or between two snapshots from the same guest. In earlier versions "
|
|
"of libguestfs, use L<virt-ls(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:188
|
|
msgid "Disable a systemd service"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:190
|
|
msgid ""
|
|
"The following is the equivalent of C<systemctl mask ...>. To disable the "
|
|
"C<cloud-init> service so it doesn't start at next boot:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:193
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -a disk.img -i \\\n"
|
|
" ln-sf /dev/null /etc/systemd/system/cloud-init.service\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:196
|
|
msgid "To disable tmp-on-tmpfs:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:198
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -a disk.img -i \\\n"
|
|
" ln-sf /dev/null /etc/systemd/system/tmp.mount\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:201
|
|
msgid ""
|
|
"One problem with the commands above is there is no feedback if you get the "
|
|
"name of the service you are trying to mask wrong. But you can use "
|
|
"L<virt-ls(1)> to list the available systemd services like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:205
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls -a /tmp/fedora-19.img -R /lib/systemd/system\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:207
|
|
msgid "Dump raw filesystem content from inside a disk image or VM"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:209
|
|
msgid ""
|
|
"You can use the L<guestfish(1)> C<download> command to extract the raw "
|
|
"filesystem content from any filesystem in a disk image or a VM (even one "
|
|
"which is encrypted or buried inside an LV or RAID device):"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:213
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:215
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:217
|
|
msgid "To download to stdout, replace the filename with a C<-> character:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:219
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --ro -a disk.img run : download /dev/sda1 - | gzip > sda1.gz\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:221
|
|
msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:223
|
|
msgid "See also L</Uploading raw filesystem content>."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:225
|
|
msgid "Edit grub configuration in a VM"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:227
|
|
msgid "You can use this to:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:233
|
|
msgid "Fix a virtual machine that does not boot."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:237
|
|
msgid "Change which kernel is used to boot the VM."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:241
|
|
msgid "Change kernel command line options."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:245
|
|
msgid "Use L<virt-edit(1)> to edit the grub configuration:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:247
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-edit -d BrokenGuest /boot/grub2/grub.cfg\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:249
|
|
msgid ""
|
|
"or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
|
|
"this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:252
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-rescue -d BrokenGuest\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:254
|
|
msgid "Export any directory from a VM"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:256
|
|
msgid "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:259 ../examples/guestfs-testing.pod:188
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-copy-out -d Guest /home .\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:267
|
|
msgid ""
|
|
"The final dot of the command is not a printing error. It means we want to "
|
|
"copy out to the current directory."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:272
|
|
msgid "This creates a directory called C<home> under the current directory."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:276
|
|
msgid ""
|
|
"If the guest is a Windows guest then you can use drive letters and "
|
|
"backslashes, but you must prefix the path with C<win:> and quote it to "
|
|
"protect it from the shell, like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:280
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:282
|
|
msgid "To get the output as a compressed tarball, do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:284
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:286
|
|
msgid ""
|
|
"Although it sounds tempting, this is usually not a reliable way to get a "
|
|
"backup from a running guest. See the entry in the FAQ: "
|
|
"L<http://libguestfs.org/FAQ.html#backup>"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:290
|
|
msgid "Find out which user is using the most space"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:292
|
|
msgid ""
|
|
"This simple script examines a Linux guest to find out which user is using "
|
|
"the most space in their home directory:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:295
|
|
#, no-wrap
|
|
msgid ""
|
|
" #!/bin/sh -\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:297 ../fish/guestfish.pod:1017
|
|
#, no-wrap
|
|
msgid ""
|
|
" set -e\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:299
|
|
#, no-wrap
|
|
msgid ""
|
|
" vm=\"$1\"\n"
|
|
" dir=/home\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:302
|
|
#, no-wrap
|
|
msgid ""
|
|
" eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:304
|
|
#, 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:310 ../fish/guestfish.pod:971
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --remote exit\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:312
|
|
msgid "Export external kernel and initramfs (initrd)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:314
|
|
msgid ""
|
|
"If a Linux guest doesn't have a boot loader or it is broken, then you can "
|
|
"usually boot it using an external kernel and initramfs. In this "
|
|
"configuration, the hypervisor acts like a bootloader, loading the kernel "
|
|
"from the host disk into guest memory and jumping straight into the kernel."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:320
|
|
msgid ""
|
|
"However you may wonder how to get the right kernel corresponding to the disk "
|
|
"image you have. Since libguestfs E<ge> 1.24 L<virt-builder(1)> can get the "
|
|
"latest kernel and corresponding initramfs for you:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:325
|
|
#, no-wrap
|
|
msgid ""
|
|
" mkdir outputdir\n"
|
|
" virt-builder --get-kernel disk.img -o outputdir\n"
|
|
" ls -lh outputdir\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:329
|
|
msgid "Get DHCP address from a VM"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:331
|
|
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:334
|
|
msgid "L<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:336
|
|
msgid ""
|
|
"In the libguestfs source examples directory you will find the latest version "
|
|
"of the C<virt-dhcp-address.c> program."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:339
|
|
msgid "Get the operating system product name string"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:341
|
|
msgid "Save the following script into a file called C<product-name.sh>:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:343
|
|
#, 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:350
|
|
msgid "Make the script executable and run it on a named guest:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:352
|
|
#, 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:355
|
|
msgid ""
|
|
"You can also use an XPath query on the L<virt-inspector(1)> XML using the "
|
|
"C<xpath> command line tool or from your favourite programming language:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:359
|
|
#, no-wrap
|
|
msgid ""
|
|
" # virt-inspector RHEL60x64 > xml\n"
|
|
" # xpath '//product_name' < xml\n"
|
|
" Found 1 nodes:\n"
|
|
" -- NODE --\n"
|
|
" <product_name>Red Hat Enterprise Linux Server release 6.0 "
|
|
"(Santiago)</product_name>\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:365
|
|
msgid "Get the default boot kernel for a Linux VM"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:367
|
|
msgid ""
|
|
"The link below contains a program to print the default boot kernel for a "
|
|
"Linux VM."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:370
|
|
msgid "L<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:372
|
|
msgid ""
|
|
"It uses Augeas, and the technique is generally applicable for many different "
|
|
"tasks, such as:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:379
|
|
msgid "listing the user accounts in the guest"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:383
|
|
msgid "what repositories is it configured to use"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:387
|
|
msgid "what NTP servers does it connect to"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:391
|
|
msgid "what were the boot messages last time it booted"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:395
|
|
msgid "listing who was logged in recently"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:399
|
|
msgid "L<http://augeas.net/>"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:401
|
|
msgid "Hanging guests"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:403
|
|
msgid ""
|
|
"There are various ways to use libguestfs to find out why a guest is hanging "
|
|
"or unresponsive:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:410
|
|
msgid "Read the log files using virt-cat:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:412
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-cat Guest /var/log/messages | less\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:416
|
|
msgid "Read the Windows Event Log (Windows Vista or later only):"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:418 ../examples/guestfs-recipes.pod:576
|
|
msgid "L<https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-guestfish/#content>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:422
|
|
msgid "Find out which files were last updated in a guest:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:424
|
|
msgid "L<https://rwmj.wordpress.com/2012/02/27/using-libguestfs-to-find-out-why-a-windows-guest-was-hanging/#content>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:426
|
|
msgid "This might give you a clue as to what program is running."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:430
|
|
msgid "Hex-dumping sectors from the guest"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:432
|
|
msgid "Hex-dump the boot partition:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:434
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --ro -a disk.img run : pread-device /dev/sda 0x200 0 |\n"
|
|
" hexdump -C\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:437
|
|
msgid "Hex-editing sectors in the guest"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:439
|
|
msgid "Hex-edit the first sector (boot partition):"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:441
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --rw -a disk.img run : hexedit /dev/sda 0x200\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:443
|
|
msgid "Install RPMs in a guest"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:445
|
|
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:451
|
|
msgid "L<https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:453
|
|
msgid ""
|
|
"Since libguestfs 1.20, L<virt-sysprep(1)> has an option for installing "
|
|
"firstboot scripts in Linux guests. Since libguestfs 1.24, "
|
|
"L<virt-builder(1)> can be used to build guests, installing packages along "
|
|
"the way."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:458
|
|
msgid "Install SYSLINUX bootloader in a guest"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:460
|
|
msgid ""
|
|
"SYSLINUX is a small, easy to configure bootloader for Linux and Windows "
|
|
"guests. If your guest is not bootable, you can install the SYSLINUX "
|
|
"bootloader using either the guestfish commands C<syslinux> (for FAT-based "
|
|
"guests) or C<extlinux> (for ext2/3/4 and btrfs-based guests)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:466
|
|
msgid ""
|
|
"This guide assumes a Linux guest where C</dev/sda1> is C</boot>, "
|
|
"C</boot/vmlinuz> is the guest kernel, and C</dev/sda3> is the root "
|
|
"partition. For a Windows guest you would need a FAT-formatted boot "
|
|
"partition and you would need to use the C<syslinux> command instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:471
|
|
msgid ""
|
|
"Create a C<syslinux.cfg> configuration file. You should check the SYSLINUX "
|
|
"documentation at L<http://www.syslinux.org> but it may look something like "
|
|
"this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:475
|
|
#, no-wrap
|
|
msgid ""
|
|
" DEFAULT linux\n"
|
|
" LABEL linux\n"
|
|
" SAY Booting the kernel\n"
|
|
" KERNEL vmlinuz\n"
|
|
" INITRD initrd\n"
|
|
" APPEND ro root=/dev/sda3\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:482
|
|
msgid ""
|
|
"Locate the syslinux master boot record (a file called something like "
|
|
"C</usr/share/syslinux/mbr.bin>)."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:485
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -a disk.img -i\n"
|
|
" # Upload the master boot record and configuration file:\n"
|
|
" ><fs> upload ..../mbr.bin /boot/mbr.bin\n"
|
|
" ><fs> upload ..../syslinux.cfg /boot/syslinux.cfg\n"
|
|
" # Put the MBR into the boot sector:\n"
|
|
" ><fs> copy-file-to-device /boot/mbr.bin /dev/sda size:440\n"
|
|
" # Install syslinux on the first partition:\n"
|
|
" ><fs> extlinux /boot\n"
|
|
" # Set the first partition as bootable:\n"
|
|
" ><fs> part-set-bootable /dev/sda 1 true\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:496
|
|
msgid ""
|
|
"See also: "
|
|
"L<http://rwmj.wordpress.com/2013/04/04/new-in-libguestfs-use-syslinux-or-extlinux-to-make-bootable-guests/#content>"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:499
|
|
msgid "List applications installed in a VM"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:501
|
|
msgid "Save the following to a file C<list-apps.sh>:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:503
|
|
#, 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:510
|
|
msgid ""
|
|
"Make the file executable and then you can run it on any named virtual "
|
|
"machine:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:513
|
|
#, 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:543
|
|
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-inspector(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:547
|
|
msgid "List files and directories in a VM"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:549
|
|
msgid "Use L<virt-ls(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:551
|
|
msgid "List services in a Windows VM"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:553
|
|
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:557
|
|
msgid "L<https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/#content>"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:559
|
|
msgid "Make a disk image sparse"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:561
|
|
msgid "Use L<virt-sparsify(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:563
|
|
msgid "Monitor disk usage over time"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:565
|
|
msgid ""
|
|
"You can use L<virt-df(1)> to monitor disk usage of your guests over time. "
|
|
"The link below contains a guide."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:568
|
|
msgid "L<http://virt-tools.org/learning/advanced-virt-df/>"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:570
|
|
msgid "Reading the Windows Event Log from Windows Vista (or later)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:572
|
|
msgid ""
|
|
"L<guestfish(1)> plus the tools described in the link below can be used to "
|
|
"read out the Windows Event Log from any virtual machine running Windows "
|
|
"Vista or a later version."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:578
|
|
msgid "Remove root password (Linux)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:580
|
|
msgid ""
|
|
"Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
|
|
"files. One use is to remove the root password from a Linux guest:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:585
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-edit -a disk.img /etc/passwd -e 's/^root:.*?:/root::/'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:587
|
|
msgid "Remove Administrator password (Windows)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:589
|
|
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:594
|
|
msgid "L<https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-administrator-password-with-guestfish/>"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:596
|
|
msgid "Sysprepping a virtual machine (Windows)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:598
|
|
msgid ""
|
|
"It is possible to do a \"sysprep\" using libguestfs alone, although not "
|
|
"straightforward. Currently there is code in the Aeolus Oz project which "
|
|
"does this (using libguestfs). It is likely we will add this to "
|
|
"L<virt-sysprep(1)> in future."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:603
|
|
msgid ""
|
|
"L<https://github.com/clalancette/oz> "
|
|
"L<https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html>"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:606
|
|
msgid "Unpack a live CD"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:608
|
|
msgid ""
|
|
"Linux live CDs often contain multiple layers of disk images wrapped like a "
|
|
"Russian doll. You can use L<guestfish(1)> to look inside these multiple "
|
|
"layers, as outlined in the guide below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:612
|
|
msgid "L<https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-cd/#content>"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:614
|
|
msgid "Uploading and downloading files"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:616
|
|
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:619
|
|
msgid "L<https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content>"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:621
|
|
msgid "Uploading raw filesystem content"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:623
|
|
msgid ""
|
|
"You can use L<guestfish(1)> to upload whole filesystems into a VM, even into "
|
|
"a filesystem which is encrypted or buried inside an LV or RAID device:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:627
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --rw -a disk.img run : upload sda1.img /dev/sda1\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:629
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --rw -d Guest run : upload lv.img /dev/vg_guest/lv_root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:631
|
|
msgid ""
|
|
"One common problem is that the filesystem isn't the right size for the "
|
|
"target. If it is too large, there's not much you can do with libguestfs - "
|
|
"you have to prepare the filesystem differently. But if the filesystem needs "
|
|
"to expand into the target, you can use guestfish to resize it to the right "
|
|
"size:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-recipes.pod:637
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --rw -d Guest run : \\\n"
|
|
" upload lv.img /dev/vg_guest/lv_root : \\\n"
|
|
" resize2fs /dev/vg_guest/lv_root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:641
|
|
msgid "(or use C<ntfsresize> if the filesystem is NTFS)."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-recipes.pod:643
|
|
msgid "Use libguestfs tools on VMware ESX guests"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:645
|
|
msgid ""
|
|
"The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
|
|
"tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:649
|
|
msgid "L<https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-guests/#content>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-recipes.pod:653
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, "
|
|
"L<guestfs-erlang(3)>, L<guestfs-golang(3)>, L<guestfs-java(3)>, "
|
|
"L<guestfs-lua(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
|
|
"L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
|
|
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 ""
|
|
"Tests marked with a B<*> (asterisk) can B<destroy data> if you're not "
|
|
"careful. The others are safe and won't modify anything."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:16
|
|
msgid ""
|
|
"Most of these tests will work with any libguestfs E<ge> 1.14. Some of these "
|
|
"tests (marked) require libguestfs E<ge> 1.22."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:19
|
|
msgid "You can report bugs you find through this link:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:23
|
|
msgid ""
|
|
"or post on the mailing list (registration is B<not> 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:27
|
|
msgid "L<https://www.redhat.com/mailman/listinfo/libguestfs>"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../examples/guestfs-testing.pod:29
|
|
msgid "TESTS"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-testing.pod:31
|
|
msgid "Run libguestfs-test-tool"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:33 ../examples/guestfs-testing.pod:226 ../src/guestfs.pod:4454
|
|
msgid "Run:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:37
|
|
msgid ""
|
|
"This command does a very simple, non-destructive test that basic libguestfs "
|
|
"is functioning. You don't need to run it as root."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:40
|
|
msgid ""
|
|
"If it I<doesn't> print C<===== TEST FINISHED OK =====>, report it as a bug. "
|
|
"It is very important that you include the B<complete, unedited> output of "
|
|
"C<libguestfs-test-tool> in your bug report. See the L</BUGS> section at the "
|
|
"end of this page."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-testing.pod:45
|
|
msgid "Check KVM acceleration is being used."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:47
|
|
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: textblock
|
|
#: ../examples/guestfs-testing.pod:53
|
|
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:56
|
|
msgid "How to check for hardware virt:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:58
|
|
msgid "L<http://virt-tools.org/learning/check-hardware-virt/>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:60
|
|
msgid "If the command above does not work at all, use L<libguestfs-test-tool(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-testing.pod:63
|
|
msgid "Check which version of libguestfs, qemu, libvirt, etc is being used."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:65
|
|
msgid "Look at the output of C<libguestfs-test-tool> and check:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:71
|
|
msgid ""
|
|
"Which version of libguestfs is being used? Near the beginning of the output "
|
|
"you'll see a line like:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:74
|
|
#, no-wrap
|
|
msgid ""
|
|
" library version: 1.22.0fedora=19,release=1.fc19,libvirt\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:78
|
|
msgid ""
|
|
"Is libvirt being used? You can tell the difference by looking for the "
|
|
"backend:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:81
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_get_backend: direct\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:83 ../examples/guestfs-testing.pod:149 ../examples/guestfs-testing.pod:256 ../examples/guestfs-testing.pod:269 ../examples/guestfs-testing.pod:329 ../fish/guestfish.pod:1055 ../lua/examples/guestfs-lua.pod:66 ../src/guestfs.pod:3963
|
|
msgid "or:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:85
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_get_backend: libvirt\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:89
|
|
msgid "Which version of qemu is being used? It may be printed out:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:91
|
|
#, no-wrap
|
|
msgid ""
|
|
" libguestfs: qemu version 1.5\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:93
|
|
msgid ""
|
|
"but note that if you're using libvirt then libguestfs doesn't have this "
|
|
"information."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:98
|
|
msgid ""
|
|
"Which kernel is being used? L<supermin(1)> will try to pick the latest "
|
|
"kernel installed on your machine. You can see the version in the appliance "
|
|
"output, eg:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:102
|
|
#, no-wrap
|
|
msgid ""
|
|
" [ 0.000000] Linux version 3.9.2-200.fc18.x86_64 [...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-testing.pod:106
|
|
msgid "Try to open a local guest image with guestfish."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:108
|
|
msgid ""
|
|
"You can use any guest disk image for this test. Make sure you use the "
|
|
"C<--ro> flag so that L<guestfish(1)> will open the disk image read-only."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:112
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --ro -a /path/to/disk.img -i\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:114
|
|
msgid ""
|
|
"If the command is successful, it should print out the guest operating system "
|
|
"name and put you at the guestfish C<E<gt>E<lt>fsE<gt>> prompt. You can use "
|
|
"guestfish commands like S<C<ll />> to look inside the disk image. To exit, "
|
|
"type C<exit>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:119 ../examples/guestfs-testing.pod:140
|
|
msgid ""
|
|
"If you get an error, try enabling debugging (add C<-v> to the command "
|
|
"line). Also make sure that L<libguestfs-test-tool(1)> succeeds."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-testing.pod:122
|
|
msgid "Try to open a remote guest image with guestfish."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:124
|
|
msgid ""
|
|
"B<Note> this test requires S<libguestfs E<ge> 1.22> and S<qemu E<ge> 1.5>. "
|
|
"You may also have to disable libvirt by setting this:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:129
|
|
msgid "If you have a disk image available over HTTP/FTP, try to open it."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:131
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --ro -i --format=raw -a http://www.example.com/disk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:133
|
|
msgid ""
|
|
"For SSH you will need to make sure that ssh-agent is set up so you don't "
|
|
"need a password to log in to the remote machine. Then a command similar to "
|
|
"this should work:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:137
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --ro -i --format=raw \\\n"
|
|
" -a ssh://remote.example.com/path/to/disk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-testing.pod:143
|
|
msgid "Run virt-alignment-scan on all your guests."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:145
|
|
msgid "Run L<virt-alignment-scan(1)> on guests or disk images:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:147
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-alignment-scan -a /path/to/disk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:151
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-alignment-scan -d Guest\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:153
|
|
msgid "Does the alignment report match how the guest partitions are aligned?"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-testing.pod:155
|
|
msgid "Run virt-cat on some files in guests."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:157
|
|
msgid "L<virt-cat(1)> can display files from guests. For a Linux guest, try:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:159
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-cat LinuxGuest /etc/passwd\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:161
|
|
msgid "A recent feature is support for Windows paths, for example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:163
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-cat WindowsGuest 'c:\\windows\\win.ini'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:165
|
|
msgid ""
|
|
"An even better test is if you have a Windows guest with multiple drives. Do "
|
|
"C<D:>, C<E:> etc paths work correctly?"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-testing.pod:168
|
|
msgid "B<*> Copy some files into a B<shut off> guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:170
|
|
msgid ""
|
|
"L<virt-copy-in(1)> can recursively copy files and directories into a guest "
|
|
"or disk image."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:173
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-copy-in -d Guest /etc /tmp\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:175
|
|
msgid ""
|
|
"This should copy local directory C</etc> to C</tmp/etc> in the guest "
|
|
"(recursively). If you boot the guest, can you see all of the copied files "
|
|
"and directories?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:179
|
|
msgid "Shut the guest down and try copying multiple files and directories:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:181
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-copy-in -d Guest /home /etc/issue /tmp\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-testing.pod:183
|
|
msgid "Copy some files out of a guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:185
|
|
msgid ""
|
|
"L<virt-copy-out(1)> can recursively copy files and directories out of a "
|
|
"guest or disk image."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:190
|
|
msgid "Note the final space and period in the command is not a typo."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:192
|
|
msgid "This should copy C</home> from the guest into the current directory."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-testing.pod:194
|
|
msgid "Run virt-df."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:196
|
|
msgid "L<virt-df(1)> lists disk space. Run:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:198
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-df\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:200
|
|
msgid ""
|
|
"You can try comparing this to the results from L<df(1)> inside the guest, "
|
|
"but there are some provisos:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:207
|
|
msgid "The guest must be idle."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:211
|
|
msgid "The guest disks must be synched using L<sync(1)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:215
|
|
msgid ""
|
|
"Any action such as booting the guest will write log files causing the "
|
|
"numbers to change."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:220
|
|
msgid ""
|
|
"We don't guarantee that the numbers will be identical even under these "
|
|
"circumstances. They should be similar. It would indicate a bug if you saw "
|
|
"greatly differing numbers."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-testing.pod:224
|
|
msgid "Try importing virt-df CSV output into a spreadsheet or database."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:228
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-df --csv > /tmp/report.csv\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:230
|
|
msgid ""
|
|
"Now try to load this into your favorite spreadsheet or database. Are the "
|
|
"results reproduced faithfully in the spreadsheet/database?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:233
|
|
msgid ""
|
|
"L<http://www.postgresql.org/docs/8.1/static/sql-copy.html> "
|
|
"L<http://dev.mysql.com/doc/refman/5.1/en/load-data.html>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-testing.pod:236
|
|
msgid "B<*> Edit a file in a B<shut off> guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:238
|
|
msgid ""
|
|
"L<virt-edit(1)> can edit files in guests. Try this command on a RHEL or "
|
|
"Fedora guest:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:241
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-edit LinuxGuest /etc/sysconfig/network\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:243
|
|
msgid "On other Linux guests try editing other files such as:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:245
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-edit LinuxGuest /etc/motd\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:247
|
|
msgid "Are the changes seen inside the guest when it is booted?"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-testing.pod:249
|
|
msgid "Display the filesystems / partitions / LVs in a guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:251
|
|
msgid ""
|
|
"L<virt-filesystems(1)> can be used to display filesystems in a guest. Try "
|
|
"this command on any disk image or guest:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:254
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-filesystems -a /path/to/disk.img --all --long -h\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:258
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-filesystems -d Guest --all --long -h\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:260
|
|
msgid "Do the results match what is seen in the guest?"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-testing.pod:262
|
|
msgid "Run virt-inspector on all your guests."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:264
|
|
msgid ""
|
|
"Use L<virt-inspector(1)> to get a report on all of your guests or disk "
|
|
"images:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:267
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-inspector -a /path/to/disk.img | less\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:271
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-inspector -d Guest | less\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:273
|
|
msgid "Do the results match what is actually in the guest?"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-testing.pod:275
|
|
msgid "Try the auditing features of virt-ls on all your guests."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:279
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls -lR -d Guest / | grep '^- [42]'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:283
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls -lR -d Guest / | grep '^d ...7'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:287
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls -lR -d Guest / | grep '^s'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:291
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls -lR -d Guest / | grep -i '^-.*\\.png$'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:293
|
|
msgid "Display files larger than 10MB in home directories:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:295
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls -lR -d Guest /home | awk '$3 > 10*1024*1024'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:299
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls -lR -d Guest --time-days / | awk '$6 <= 7'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:303
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-ls -lR -d Guest --time-days / | grep '^-' | awk '$6 < 1'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:305
|
|
msgid "Do the results match what is in the guest?"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-testing.pod:307
|
|
msgid "Create a disk image from a tarball."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:309
|
|
msgid ""
|
|
"Use L<virt-make-fs(1)> to create a disk image from any tarball that you "
|
|
"happen to have:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:312
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-make-fs --partition=mbr --type=vfat /any/tarball.tar.gz output.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:314
|
|
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-testing.pod:318
|
|
msgid "Try other partitioning schemes, eg. I<--partition=gpt>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:320
|
|
msgid "Try other filesystem formats, eg. I<--type=ntfs>, I<--type=ext2>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-testing.pod:322
|
|
msgid "B<*> Run virt-rescue on a B<shut off> disk image or guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:324
|
|
msgid ""
|
|
"Use L<virt-rescue(1)> to examine, rescue or repair a B<shut off> guest or "
|
|
"disk image:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:327
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-rescue -a /path/to/disk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:331
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-rescue -d Guest\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:333
|
|
msgid "Can you use ordinary shell commands to examine the guest?"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-testing.pod:335
|
|
msgid "B<*> Resize your guests."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:337
|
|
msgid ""
|
|
"Use L<virt-resize(1)> to give a guest some more disk space. For example, if "
|
|
"you have a disk image that is smaller than 30G, increase it to 30G by doing:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:341
|
|
#, no-wrap
|
|
msgid ""
|
|
" 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: textblock
|
|
#: ../examples/guestfs-testing.pod:346
|
|
msgid "Does the guest still boot? Try expanding other partitions."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-testing.pod:348
|
|
msgid "B<*> Sparsify a guest disk."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:350
|
|
msgid "Using L<virt-sparsify(1)>, make a disk image more sparse:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:352
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-sparsify /path/to/olddisk.img newdisk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:354
|
|
msgid ""
|
|
"Is C<newdisk.img> still bootable after sparsifying? Is the resulting disk "
|
|
"image smaller (use C<du> to check)?"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-testing.pod:357
|
|
msgid "B<*> \"sysprep\" a B<shut off> Linux guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:359
|
|
msgid ""
|
|
"B<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:362
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-sysprep --hostname newhost.example.com -a /path/to/disk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:364
|
|
msgid ""
|
|
"Was the sysprep successful? After booting, what changes were made and were "
|
|
"they successful?"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../examples/guestfs-testing.pod:367
|
|
msgid "Dump the Windows Registry from your Windows guests."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:369
|
|
msgid ""
|
|
"Use L<virt-win-reg(1)> to dump out the Windows Registry from any Windows "
|
|
"guests that you have."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:372
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\Software' |\n"
|
|
" less\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:375
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\System' |\n"
|
|
" less\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:378
|
|
msgid "Does the output match running C<regedit> inside the guest?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:380
|
|
msgid ""
|
|
"A recent feature is the ability to dump user registries, so try this, "
|
|
"replacing I<username> with the name of a local user in the guest:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../examples/guestfs-testing.pod:383
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-win-reg --unsafe-printable-strings WindowsGuest 'HKEY_USERS\\username' "
|
|
"|\n"
|
|
" less\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../examples/guestfs-testing.pod:388
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, "
|
|
"L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1
|
|
msgid "acl-delete-def-file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3
|
|
#, no-wrap
|
|
msgid ""
|
|
" acl-delete-def-file dir\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:7
|
|
msgid ""
|
|
"This function deletes the default POSIX Access Control List (ACL) attached "
|
|
"to directory C<dir>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:8
|
|
msgid "acl-get-file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:10
|
|
#, no-wrap
|
|
msgid ""
|
|
" acl-get-file path acltype\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:12 ../src/guestfs-actions.pod:21
|
|
msgid ""
|
|
"This function returns the POSIX Access Control List (ACL) attached to "
|
|
"C<path>. The ACL is returned in \"long text form\" (see L<acl(5)>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:15 ../fish/guestfish-actions.pod:38 ../src/guestfs-actions.pod:24 ../src/guestfs-actions.pod:56
|
|
msgid "The C<acltype> parameter may be:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:19 ../fish/guestfish-actions.pod:42 ../src/guestfs-actions.pod:28 ../src/guestfs-actions.pod:60
|
|
msgid "C<access>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:21 ../src/guestfs-actions.pod:30
|
|
msgid ""
|
|
"Return the ordinary (access) ACL for any file, directory or other filesystem "
|
|
"object."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:24 ../fish/guestfish-actions.pod:47 ../src/guestfs-actions.pod:33 ../src/guestfs-actions.pod:65
|
|
msgid "C<default>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:26 ../src/guestfs-actions.pod:35
|
|
msgid ""
|
|
"Return the default ACL. Normally this only makes sense if C<path> is a "
|
|
"directory."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:31
|
|
msgid "acl-set-file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:33
|
|
#, no-wrap
|
|
msgid ""
|
|
" acl-set-file path acltype acl\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:35 ../src/guestfs-actions.pod:53
|
|
msgid "This function sets the POSIX Access Control List (ACL) attached to C<path>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:44 ../src/guestfs-actions.pod:62
|
|
msgid ""
|
|
"Set the ordinary (access) ACL for any file, directory or other filesystem "
|
|
"object."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
|
|
msgid ""
|
|
"Set the default ACL. Normally this only makes sense if C<path> is a "
|
|
"directory."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:54 ../src/guestfs-actions.pod:72
|
|
msgid ""
|
|
"The C<acl> parameter is the new ACL in either \"long text form\" or \"short "
|
|
"text form\" (see L<acl(5)>). The new ACL completely replaces any previous "
|
|
"ACL on the file. The ACL must contain the full Unix permissions "
|
|
"(eg. C<u::rwx,g::rx,o::rx>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:59 ../src/guestfs-actions.pod:77
|
|
msgid ""
|
|
"If you are specifying individual users or groups, then the mask field is "
|
|
"also required (eg. C<m::rwx>), followed by the C<u:I<ID>:...> and/or "
|
|
"C<g:I<ID>:...> field(s). A full ACL string might therefore look like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
|
|
#, no-wrap
|
|
msgid ""
|
|
" u::rwx,g::rwx,o::rwx,m::rwx,u:500:rwx,g:500:rwx\n"
|
|
" \\ Unix permissions / \\mask/ \\ ACL /\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:67
|
|
msgid ""
|
|
"You should use numeric UIDs and GIDs. To map usernames and groupnames to "
|
|
"the correct numeric ID in the context of the guest, use the Augeas functions "
|
|
"(see L</aug-init>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:71
|
|
msgid "add-cdrom"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:73
|
|
#, no-wrap
|
|
msgid ""
|
|
" add-cdrom filename\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:75 ../src/guestfs-actions.pod:106
|
|
msgid "This function adds a virtual CD-ROM disk image to the guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:77
|
|
msgid ""
|
|
"The image is added as read-only drive, so this function is equivalent of "
|
|
"L</add-drive-ro>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:80
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</add-drive-ro> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:83 ../fish/guestfish-actions.pod:424 ../fish/guestfish-actions.pod:454 ../fish/guestfish-actions.pod:873 ../fish/guestfish-actions.pod:1417 ../fish/guestfish-actions.pod:1464 ../fish/guestfish-actions.pod:1694 ../fish/guestfish-actions.pod:1722 ../fish/guestfish-actions.pod:1739 ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:1847 ../fish/guestfish-actions.pod:1864 ../fish/guestfish-actions.pod:2210 ../fish/guestfish-actions.pod:2386 ../fish/guestfish-actions.pod:2400 ../fish/guestfish-actions.pod:2520 ../fish/guestfish-actions.pod:2683 ../fish/guestfish-actions.pod:3691 ../fish/guestfish-actions.pod:4106 ../fish/guestfish-actions.pod:4978 ../fish/guestfish-actions.pod:4994 ../fish/guestfish-actions.pod:5010 ../fish/guestfish-actions.pod:5026 ../fish/guestfish-actions.pod:5039 ../fish/guestfish-actions.pod:5052 ../fish/guestfish-actions.pod:5130 ../fish/guestfish-actions.pod:5267 ../fish/guestfish-actions.pod:5280 ../fish/guestfish-actions.pod:5605 ../fish/guestfish-actions.pod:6439 ../fish/guestfish-actions.pod:6569 ../fish/guestfish-actions.pod:6588 ../fish/guestfish-actions.pod:6800 ../fish/guestfish-actions.pod:6958 ../fish/guestfish-actions.pod:6978 ../fish/guestfish-actions.pod:6997 ../fish/guestfish-actions.pod:7035 ../fish/guestfish-actions.pod:7368 ../fish/guestfish-actions.pod:7384 ../fish/guestfish-actions.pod:7522 ../fish/guestfish-actions.pod:7538 ../fish/guestfish-actions.pod:7955 ../fish/guestfish-actions.pod:8031 ../fish/guestfish-actions.pod:8048 ../fish/guestfish-actions.pod:8123 ../fish/guestfish-actions.pod:8140 ../fish/guestfish-actions.pod:8159 ../fish/guestfish-actions.pod:8176 ../fish/guestfish-actions.pod:8193 ../src/guestfs-actions.pod:102 ../src/guestfs-actions.pod:545 ../src/guestfs-actions.pod:615 ../src/guestfs-actions.pod:1224 ../src/guestfs-actions.pod:2312 ../src/guestfs-actions.pod:2388 ../src/guestfs-actions.pod:2789 ../src/guestfs-actions.pod:2829 ../src/guestfs-actions.pod:2855 ../src/guestfs-actions.pod:2943 ../src/guestfs-actions.pod:3011 ../src/guestfs-actions.pod:3037 ../src/guestfs-actions.pod:3528 ../src/guestfs-actions.pod:3752 ../src/guestfs-actions.pod:3773 ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:4267 ../src/guestfs-actions.pod:5613 ../src/guestfs-actions.pod:6541 ../src/guestfs-actions.pod:8005 ../src/guestfs-actions.pod:8033 ../src/guestfs-actions.pod:8058 ../src/guestfs-actions.pod:8081 ../src/guestfs-actions.pod:8105 ../src/guestfs-actions.pod:8126 ../src/guestfs-actions.pod:8265 ../src/guestfs-actions.pod:8537 ../src/guestfs-actions.pod:8561 ../src/guestfs-actions.pod:9215 ../src/guestfs-actions.pod:10569 ../src/guestfs-actions.pod:10768 ../src/guestfs-actions.pod:10793 ../src/guestfs-actions.pod:11044 ../src/guestfs-actions.pod:11253 ../src/guestfs-actions.pod:11294 ../src/guestfs-actions.pod:11325 ../src/guestfs-actions.pod:11385 ../src/guestfs-actions.pod:11986 ../src/guestfs-actions.pod:12007 ../src/guestfs-actions.pod:12222 ../src/guestfs-actions.pod:12243 ../src/guestfs-actions.pod:12852 ../src/guestfs-actions.pod:12974 ../src/guestfs-actions.pod:13197 ../src/guestfs-actions.pod:13223 ../src/guestfs-actions.pod:13346 ../src/guestfs-actions.pod:13372 ../src/guestfs-actions.pod:13398 ../src/guestfs-actions.pod:13425 ../src/guestfs-actions.pod:13451
|
|
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 "
|
|
"these functions."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:87
|
|
msgid "add-domain"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:89
|
|
msgid "domain"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:91
|
|
#, no-wrap
|
|
msgid ""
|
|
" add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] "
|
|
"[live:true|false] [allowuuid:true|false] [readonlydisk:..]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:93
|
|
msgid ""
|
|
"This function adds the disk(s) attached to the named libvirt domain C<dom>. "
|
|
"It works by connecting to libvirt, requesting the domain and domain XML from "
|
|
"libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:98 ../src/guestfs-actions.pod:139
|
|
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:101 ../src/guestfs-actions.pod:142
|
|
msgid ""
|
|
"This function does some minimal checks to make sure the libvirt domain is "
|
|
"not running (unless C<readonly> is true). In a future version we will try "
|
|
"to acquire the libvirt lock on each disk."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:105 ../src/guestfs-actions.pod:146
|
|
msgid ""
|
|
"Disks must be accessible locally. This often means that adding disks from a "
|
|
"remote libvirt connection (see L<http://libvirt.org/remote.html>) will fail "
|
|
"unless those disks are accessible via the same device path locally too."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:151
|
|
msgid ""
|
|
"The optional C<libvirturi> parameter sets the libvirt URI (see "
|
|
"L<http://libvirt.org/uri.html>). If this is not set then we connect to the "
|
|
"default libvirt URI (or one set through an environment variable, see the "
|
|
"libvirt documentation for full details)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:157
|
|
msgid ""
|
|
"The optional C<live> flag controls whether this call will try to connect to "
|
|
"a running virtual machine C<guestfsd> process if it sees a suitable "
|
|
"E<lt>channelE<gt> element in the libvirt XML definition. The default (if "
|
|
"the flag is omitted) is never to try. See L<guestfs(3)/ATTACHING TO RUNNING "
|
|
"DAEMONS> for more information."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:123 ../src/guestfs-actions.pod:164
|
|
msgid ""
|
|
"If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
|
|
"passed instead of the domain name. The C<dom> string is treated as a UUID "
|
|
"first and looked up, and if that lookup fails then we treat C<dom> as a name "
|
|
"as usual."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:128 ../src/guestfs-actions.pod:169
|
|
msgid ""
|
|
"The optional C<readonlydisk> parameter controls what we do for disks which "
|
|
"are marked E<lt>readonly/E<gt> in the libvirt XML. Possible values are:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:134 ../src/guestfs-actions.pod:175
|
|
msgid "readonlydisk = \"error\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:136 ../fish/guestfish-actions.pod:147 ../fish/guestfish-actions.pod:158 ../src/guestfs-actions.pod:177 ../src/guestfs-actions.pod:188 ../src/guestfs-actions.pod:199
|
|
msgid "If C<readonly> is false:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:138 ../src/guestfs-actions.pod:179
|
|
msgid ""
|
|
"The whole call is aborted with an error if any disk with the "
|
|
"E<lt>readonly/E<gt> flag is found."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:141 ../fish/guestfish-actions.pod:152 ../fish/guestfish-actions.pod:162 ../src/guestfs-actions.pod:182 ../src/guestfs-actions.pod:193 ../src/guestfs-actions.pod:203
|
|
msgid "If C<readonly> is true:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:143 ../fish/guestfish-actions.pod:154 ../fish/guestfish-actions.pod:164 ../src/guestfs-actions.pod:184 ../src/guestfs-actions.pod:195 ../src/guestfs-actions.pod:205
|
|
msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:145 ../src/guestfs-actions.pod:186
|
|
msgid "readonlydisk = \"read\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:149 ../src/guestfs-actions.pod:190
|
|
msgid ""
|
|
"Disks with the E<lt>readonly/E<gt> flag are added read-only. Other disks "
|
|
"are added read/write."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:156 ../src/guestfs-actions.pod:197
|
|
msgid "readonlydisk = \"write\" (default)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:160 ../src/guestfs-actions.pod:201
|
|
msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:166 ../src/guestfs-actions.pod:207
|
|
msgid "readonlydisk = \"ignore\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:168 ../src/guestfs-actions.pod:209
|
|
msgid "If C<readonly> is true or false:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:170 ../src/guestfs-actions.pod:211
|
|
msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:174
|
|
msgid ""
|
|
"The other optional parameters are passed directly through to "
|
|
"L</add-drive-opts>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:177 ../fish/guestfish-actions.pod:401 ../fish/guestfish-actions.pod:442 ../fish/guestfish-actions.pod:937 ../fish/guestfish-actions.pod:952 ../fish/guestfish-actions.pod:1267 ../fish/guestfish-actions.pod:1288 ../fish/guestfish-actions.pod:1339 ../fish/guestfish-actions.pod:1370 ../fish/guestfish-actions.pod:1379 ../fish/guestfish-actions.pod:1388 ../fish/guestfish-actions.pod:1402 ../fish/guestfish-actions.pod:1547 ../fish/guestfish-actions.pod:1681 ../fish/guestfish-actions.pod:2188 ../fish/guestfish-actions.pod:2665 ../fish/guestfish-actions.pod:2869 ../fish/guestfish-actions.pod:3329 ../fish/guestfish-actions.pod:3848 ../fish/guestfish-actions.pod:3865 ../fish/guestfish-actions.pod:3892 ../fish/guestfish-actions.pod:3909 ../fish/guestfish-actions.pod:3927 ../fish/guestfish-actions.pod:3951 ../fish/guestfish-actions.pod:4810 ../fish/guestfish-actions.pod:4961 ../fish/guestfish-actions.pod:5113 ../fish/guestfish-actions.pod:5146 ../fish/guestfish-actions.pod:5252 ../fish/guestfish-actions.pod:5319 ../fish/guestfish-actions.pod:5367 ../fish/guestfish-actions.pod:5397 ../fish/guestfish-actions.pod:5541 ../fish/guestfish-actions.pod:5557 ../fish/guestfish-actions.pod:5593 ../fish/guestfish-actions.pod:6181 ../fish/guestfish-actions.pod:6318 ../fish/guestfish-actions.pod:6342 ../fish/guestfish-actions.pod:6373 ../fish/guestfish-actions.pod:6545 ../fish/guestfish-actions.pod:7274 ../fish/guestfish-actions.pod:7318 ../fish/guestfish-actions.pod:7354 ../fish/guestfish-actions.pod:7496 ../fish/guestfish-actions.pod:7575 ../fish/guestfish-actions.pod:7596 ../fish/guestfish-actions.pod:7973 ../fish/guestfish-actions.pod:7985 ../fish/guestfish-actions.pod:8016
|
|
msgid ""
|
|
"This command has one or more optional arguments. See L</OPTIONAL "
|
|
"ARGUMENTS>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:179
|
|
msgid "add-drive"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:181
|
|
msgid "add"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:183
|
|
msgid "add-drive-opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:185
|
|
#, no-wrap
|
|
msgid ""
|
|
" add-drive filename [readonly:true|false] [format:..] [iface:..] [name:..] "
|
|
"[label:..] [protocol:..] [server:..] [username:..] [secret:..] "
|
|
"[cachemode:..]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:187 ../src/guestfs-actions.pod:280
|
|
msgid ""
|
|
"This function adds a disk image called C<filename> to the handle. "
|
|
"C<filename> may be a regular host file or a host device."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:190
|
|
msgid ""
|
|
"When this function is called before L</launch> (the usual case) then the "
|
|
"first time you call this function, the disk appears in the API as "
|
|
"C</dev/sda>, the second time as C</dev/sdb>, and so on."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:195 ../src/guestfs-actions.pod:288
|
|
msgid ""
|
|
"In libguestfs E<ge> 1.20 you can also call this function after launch (with "
|
|
"some restrictions). This is called \"hotplugging\". When hotplugging, you "
|
|
"must specify a C<label> so that the new disk gets a predictable name. For "
|
|
"more information see L<guestfs(3)/HOTPLUGGING>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:201 ../src/guestfs-actions.pod:294
|
|
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 "
|
|
"operations you want to perform (ie. read access if you just want to read the "
|
|
"image or write access if you want to modify the image)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:207 ../src/guestfs-actions.pod:300
|
|
msgid "This call checks that C<filename> exists."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:209 ../src/guestfs-actions.pod:302
|
|
msgid ""
|
|
"C<filename> may be the special string C<\"/dev/null\">. See "
|
|
"L<guestfs(3)/NULL DISKS>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:212 ../fish/guestfish-actions.pod:5075 ../fish/guestfish-actions.pod:6303 ../fish/guestfish-actions.pod:7255 ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:8188 ../src/guestfs-actions.pod:10314 ../src/guestfs-actions.pod:11738
|
|
msgid "The optional arguments are:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:216 ../src/guestfs-actions.pod:309
|
|
msgid "C<readonly>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:218 ../src/guestfs-actions.pod:311
|
|
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 "
|
|
"the end. The disk that you add is not modified."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:222 ../src/guestfs-actions.pod:315 ../src/guestfs.pod:4304
|
|
msgid "C<format>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:224
|
|
msgid ""
|
|
"This forces the image format. If you omit this (or use L</add-drive> or "
|
|
"L</add-drive-ro>) then the format is automatically detected. Possible "
|
|
"formats include C<raw> and C<qcow2>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:228 ../src/guestfs-actions.pod:321
|
|
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 "
|
|
"RHBZ#642934. Specifying the format closes this security hole."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:233 ../src/guestfs-actions.pod:326
|
|
msgid "C<iface>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:235
|
|
msgid ""
|
|
"This rarely-used option lets you emulate the behaviour of the deprecated "
|
|
"L</add-drive-with-if> call (q.v.)"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:238 ../fish/guestfish-actions.pod:4838 ../src/guestfs-actions.pod:331 ../src/guestfs-actions.pod:7749
|
|
msgid "C<name>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:240 ../src/guestfs-actions.pod:333
|
|
msgid ""
|
|
"The name the drive had in the original guest, e.g. C</dev/sdb>. This is "
|
|
"used as a hint to the guest inspection process if it is available."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:337
|
|
msgid "C<label>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:246 ../src/guestfs-actions.pod:339
|
|
msgid ""
|
|
"Give the disk a label. The label should be a unique, short string using "
|
|
"I<only> ASCII characters C<[a-zA-Z]>. As well as its usual name in the API "
|
|
"(such as C</dev/sda>), the drive will also be named "
|
|
"C</dev/disk/guestfs/I<label>>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:251 ../src/guestfs-actions.pod:344
|
|
msgid "See L<guestfs(3)/DISK LABELS>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:346
|
|
msgid "C<protocol>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:348
|
|
msgid ""
|
|
"The optional protocol argument can be used to select an alternate source "
|
|
"protocol."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:258 ../src/guestfs-actions.pod:351
|
|
msgid "See also: L<guestfs(3)/REMOTE STORAGE>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:355
|
|
msgid "C<protocol = \"file\">"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:357
|
|
msgid ""
|
|
"C<filename> is interpreted as a local file or device. This is the default "
|
|
"if the optional protocol parameter is omitted."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:268 ../src/guestfs-actions.pod:361
|
|
msgid "C<protocol = \"ftp\"|\"ftps\"|\"http\"|\"https\"|\"tftp\">"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:363
|
|
msgid ""
|
|
"Connect to a remote FTP, HTTP or TFTP server. The C<server> parameter must "
|
|
"also be supplied - see below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:366
|
|
msgid "See also: L<guestfs(3)/FTP, HTTP AND TFTP>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:368
|
|
msgid "C<protocol = \"gluster\">"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:370
|
|
msgid ""
|
|
"Connect to the GlusterFS server. The C<server> parameter must also be "
|
|
"supplied - see below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:280 ../src/guestfs-actions.pod:373
|
|
msgid "See also: L<guestfs(3)/GLUSTER>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:375
|
|
msgid "C<protocol = \"iscsi\">"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:284 ../src/guestfs-actions.pod:377
|
|
msgid ""
|
|
"Connect to the iSCSI server. The C<server> parameter must also be supplied "
|
|
"- see below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:380
|
|
msgid "See also: L<guestfs(3)/ISCSI>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:289 ../src/guestfs-actions.pod:382
|
|
msgid "C<protocol = \"nbd\">"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:291 ../src/guestfs-actions.pod:384
|
|
msgid ""
|
|
"Connect to the Network Block Device server. The C<server> parameter must "
|
|
"also be supplied - see below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:294 ../src/guestfs-actions.pod:387
|
|
msgid "See also: L<guestfs(3)/NETWORK BLOCK DEVICE>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:296 ../src/guestfs-actions.pod:389
|
|
msgid "C<protocol = \"rbd\">"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:391
|
|
msgid ""
|
|
"Connect to the Ceph (librbd/RBD) server. The C<server> parameter must also "
|
|
"be supplied - see below. The C<username> parameter may be supplied. See "
|
|
"below. The C<secret> parameter may be supplied. See below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:303 ../src/guestfs-actions.pod:396
|
|
msgid "See also: L<guestfs(3)/CEPH>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:398
|
|
msgid "C<protocol = \"sheepdog\">"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:400
|
|
msgid ""
|
|
"Connect to the Sheepdog server. The C<server> parameter may also be "
|
|
"supplied - see below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:403
|
|
msgid "See also: L<guestfs(3)/SHEEPDOG>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:312 ../src/guestfs-actions.pod:405
|
|
msgid "C<protocol = \"ssh\">"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:314 ../src/guestfs-actions.pod:407
|
|
msgid "Connect to the Secure Shell (ssh) server."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:316 ../src/guestfs-actions.pod:409
|
|
msgid ""
|
|
"The C<server> parameter must be supplied. The C<username> parameter may be "
|
|
"supplied. See below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:319 ../src/guestfs-actions.pod:412
|
|
msgid "See also: L<guestfs(3)/SSH>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:323 ../src/guestfs-actions.pod:416
|
|
msgid "C<server>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:325 ../src/guestfs-actions.pod:418
|
|
msgid ""
|
|
"For protocols which require access to a remote server, this is a list of "
|
|
"server(s)."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:421
|
|
#, no-wrap
|
|
msgid ""
|
|
" Protocol Number of servers required\n"
|
|
" -------- --------------------------\n"
|
|
" file List must be empty or param not used at all\n"
|
|
" ftp|ftps|http|https|tftp Exactly one\n"
|
|
" gluster Exactly one\n"
|
|
" iscsi Exactly one\n"
|
|
" nbd Exactly one\n"
|
|
" rbd Zero or more\n"
|
|
" sheepdog Zero or more\n"
|
|
" ssh Exactly one\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:339 ../src/guestfs-actions.pod:432
|
|
msgid ""
|
|
"Each list element is a string specifying a server. The string must be in "
|
|
"one of the following formats:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:342 ../src/guestfs-actions.pod:435
|
|
#, no-wrap
|
|
msgid ""
|
|
" hostname\n"
|
|
" hostname:port\n"
|
|
" tcp:hostname\n"
|
|
" tcp:hostname:port\n"
|
|
" unix:/path/to/socket\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:441
|
|
msgid ""
|
|
"If the port number is omitted, then the standard port number for the "
|
|
"protocol is used (see C</etc/services>)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:351 ../fish/guestfish-actions.pod:6674 ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:10912
|
|
msgid "C<username>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:446
|
|
msgid ""
|
|
"For the C<ftp>, C<ftps>, C<http>, C<https>, C<iscsi>, C<rbd>, C<ssh> and "
|
|
"C<tftp> protocols, this specifies the remote username."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:449
|
|
msgid ""
|
|
"If not given, then the local username is used for C<ssh>, and no "
|
|
"authentication is attempted for ceph. But note this sometimes may give "
|
|
"unexpected results, for example if using the libvirt backend and if the "
|
|
"libvirt backend is configured to start the qemu appliance as a special user "
|
|
"such as C<qemu.qemu>. If in doubt, specify the remote username you want."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:362 ../src/guestfs-actions.pod:455
|
|
msgid "C<secret>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:457
|
|
msgid ""
|
|
"For the C<rbd> protocol only, this specifies the 'secret' to use when "
|
|
"connecting to the remote device."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:367 ../src/guestfs-actions.pod:460
|
|
msgid ""
|
|
"If not given, then a secret matching the given username will be looked up in "
|
|
"the default keychain locations, or if no username is given, then no "
|
|
"authentication will be used."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:371 ../src/guestfs-actions.pod:464
|
|
msgid "C<cachemode>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:466
|
|
msgid ""
|
|
"Choose whether or not libguestfs will obey sync operations (safe but slow) "
|
|
"or not (unsafe but fast). The possible values for this string are:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:471
|
|
msgid "C<cachemode = \"writeback\">"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:382 ../src/guestfs-actions.pod:475
|
|
msgid ""
|
|
"Write operations in the API do not return until a L<write(2)> call has "
|
|
"completed in the host [but note this does not imply that anything gets "
|
|
"written to disk]."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:479
|
|
msgid ""
|
|
"Sync operations in the API, including implicit syncs caused by filesystem "
|
|
"journalling, will not return until an L<fdatasync(2)> call has completed in "
|
|
"the host, indicating that data has been committed to disk."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:391 ../src/guestfs-actions.pod:484
|
|
msgid "C<cachemode = \"unsafe\">"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:393 ../src/guestfs-actions.pod:486
|
|
msgid ""
|
|
"In this mode, there are no guarantees. Libguestfs may cache anything and "
|
|
"ignore sync requests. This is suitable only for scratch or temporary disks."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:403
|
|
msgid "add-drive-ro"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:405
|
|
msgid "add-ro"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:407
|
|
#, no-wrap
|
|
msgid ""
|
|
" add-drive-ro filename\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:409
|
|
msgid ""
|
|
"This function is the equivalent of calling L</add-drive-opts> with the "
|
|
"optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
|
|
"is added read-only, with the format being detected automatically."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:414
|
|
msgid "add-drive-ro-with-if"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:416
|
|
#, no-wrap
|
|
msgid ""
|
|
" add-drive-ro-with-if filename iface\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:418
|
|
msgid ""
|
|
"This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
|
|
"interface emulation to use at run time."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:421 ../fish/guestfish-actions.pod:451
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</add-drive> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:428
|
|
msgid "add-drive-scratch"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:430
|
|
msgid "scratch"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:432
|
|
#, no-wrap
|
|
msgid ""
|
|
" add-drive-scratch size [name:..] [label:..]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:571
|
|
msgid ""
|
|
"This command adds a temporary scratch drive to the handle. The C<size> "
|
|
"parameter is the virtual size (in bytes). The scratch drive is blank "
|
|
"initially (all reads return zeroes until you start writing to it). The "
|
|
"drive is deleted when the handle is closed."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:439
|
|
msgid ""
|
|
"The optional arguments C<name> and C<label> are passed through to "
|
|
"L</add-drive>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:444
|
|
msgid "add-drive-with-if"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:446
|
|
#, no-wrap
|
|
msgid ""
|
|
" add-drive-with-if filename iface\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:448
|
|
msgid ""
|
|
"This is the same as L</add-drive> but it allows you to specify the QEMU "
|
|
"interface emulation to use at run time."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:458
|
|
msgid "aug-clear"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:460
|
|
#, no-wrap
|
|
msgid ""
|
|
" aug-clear augpath\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:462 ../src/guestfs-actions.pod:632
|
|
msgid ""
|
|
"Set the value associated with C<path> to C<NULL>. This is the same as the "
|
|
"L<augtool(1)> C<clear> command."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:465
|
|
msgid "aug-close"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:467
|
|
#, no-wrap
|
|
msgid ""
|
|
" aug-close\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:469
|
|
msgid ""
|
|
"Close the current Augeas handle and free up any resources used by it. After "
|
|
"calling this, you have to call L</aug-init> again before you can use any "
|
|
"other Augeas functions."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:474
|
|
msgid "aug-defnode"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:476
|
|
#, no-wrap
|
|
msgid ""
|
|
" aug-defnode name expr val\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:478 ../src/guestfs-actions.pod:661
|
|
msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:481
|
|
msgid ""
|
|
"If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
|
|
"calling L</aug-set> C<expr>, C<value>. C<name> will be the nodeset "
|
|
"containing that single node."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:485 ../src/guestfs-actions.pod:668
|
|
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:489
|
|
msgid "aug-defvar"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:491
|
|
#, no-wrap
|
|
msgid ""
|
|
" aug-defvar name expr\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:493 ../src/guestfs-actions.pod:685
|
|
msgid ""
|
|
"Defines an Augeas variable C<name> whose value is the result of evaluating "
|
|
"C<expr>. If C<expr> is NULL, then C<name> is undefined."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:689
|
|
msgid ""
|
|
"On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
|
|
"evaluates to something which is not a nodeset."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:500
|
|
msgid "aug-get"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:502
|
|
#, no-wrap
|
|
msgid ""
|
|
" aug-get augpath\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:504 ../src/guestfs-actions.pod:702
|
|
msgid ""
|
|
"Look up the value associated with C<path>. If C<path> matches exactly one "
|
|
"node, the C<value> is returned."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:507
|
|
msgid "aug-init"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:509
|
|
#, no-wrap
|
|
msgid ""
|
|
" aug-init root flags\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:511 ../src/guestfs-actions.pod:717
|
|
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 "
|
|
"closed."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:515
|
|
msgid "You must call this before using any other L</aug-*> commands."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:518 ../src/guestfs-actions.pod:724
|
|
msgid "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:521 ../src/guestfs-actions.pod:727
|
|
msgid ""
|
|
"The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
|
|
"logical I<or> of the following integers:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:733
|
|
msgid "C<AUG_SAVE_BACKUP> = 1"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:529 ../src/guestfs-actions.pod:735
|
|
msgid "Keep the original file with a C<.augsave> extension."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:531 ../src/guestfs-actions.pod:737
|
|
msgid "C<AUG_SAVE_NEWFILE> = 2"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:533 ../src/guestfs-actions.pod:739
|
|
msgid ""
|
|
"Save changes into a file with extension C<.augnew>, and do not overwrite "
|
|
"original. Overrides C<AUG_SAVE_BACKUP>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:536 ../src/guestfs-actions.pod:742
|
|
msgid "C<AUG_TYPE_CHECK> = 4"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:744
|
|
msgid "Typecheck lenses."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:540
|
|
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<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:751
|
|
msgid "C<AUG_NO_STDINC> = 8"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:547 ../src/guestfs-actions.pod:753
|
|
msgid "Do not use standard load path for modules."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:549 ../src/guestfs-actions.pod:755
|
|
msgid "C<AUG_SAVE_NOOP> = 16"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:551 ../src/guestfs-actions.pod:757
|
|
msgid "Make save a no-op, just record what would have been changed."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:553 ../src/guestfs-actions.pod:759
|
|
msgid "C<AUG_NO_LOAD> = 32"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:555
|
|
msgid "Do not load the tree in L</aug-init>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:559
|
|
msgid "To close the handle, you can call L</aug-close>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:561 ../src/guestfs-actions.pod:767
|
|
msgid "To find out more about Augeas, see L<http://augeas.net/>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:563
|
|
msgid "aug-insert"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:565
|
|
#, no-wrap
|
|
msgid ""
|
|
" aug-insert augpath label true|false\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:567 ../src/guestfs-actions.pod:781
|
|
msgid ""
|
|
"Create a new sibling C<label> for C<path>, inserting it into the tree before "
|
|
"or after C<path> (depending on the boolean flag C<before>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:785
|
|
msgid ""
|
|
"C<path> must match exactly one existing node in the tree, and C<label> must "
|
|
"be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:575
|
|
msgid "aug-label"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:577
|
|
#, no-wrap
|
|
msgid ""
|
|
" aug-label augpath\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:799
|
|
msgid ""
|
|
"The label (name of the last element) of the Augeas path expression "
|
|
"C<augpath> is returned. C<augpath> must match exactly one node, else this "
|
|
"function returns an error."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:583
|
|
msgid "aug-load"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:585
|
|
#, no-wrap
|
|
msgid ""
|
|
" aug-load\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:587 ../src/guestfs-actions.pod:813
|
|
msgid "Load files into the tree."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:815
|
|
msgid "See C<aug_load> in the Augeas documentation for the full gory details."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:592
|
|
msgid "aug-ls"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:594
|
|
#, no-wrap
|
|
msgid ""
|
|
" aug-ls augpath\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:596
|
|
msgid ""
|
|
"This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
|
|
"resulting nodes into alphabetical order."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:599
|
|
msgid "aug-match"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:601
|
|
#, no-wrap
|
|
msgid ""
|
|
" aug-match augpath\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:603 ../src/guestfs-actions.pod:843
|
|
msgid ""
|
|
"Returns a list of paths which match the path expression C<path>. The "
|
|
"returned paths are sufficiently qualified so that they match exactly one "
|
|
"node in the current tree."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:607
|
|
msgid "aug-mv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:609
|
|
#, no-wrap
|
|
msgid ""
|
|
" aug-mv src dest\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:611 ../src/guestfs-actions.pod:860
|
|
msgid ""
|
|
"Move the node C<src> to C<dest>. C<src> must match exactly one node. "
|
|
"C<dest> is overwritten if it exists."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:614
|
|
msgid "aug-rm"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:616
|
|
#, no-wrap
|
|
msgid ""
|
|
" aug-rm augpath\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:618 ../src/guestfs-actions.pod:873
|
|
msgid "Remove C<path> and all of its children."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:620 ../src/guestfs-actions.pod:875
|
|
msgid "On success this returns the number of entries which were removed."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:622
|
|
msgid "aug-save"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:624
|
|
#, no-wrap
|
|
msgid ""
|
|
" aug-save\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:626 ../src/guestfs-actions.pod:886
|
|
msgid "This writes all pending changes to disk."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:628
|
|
msgid ""
|
|
"The flags which were passed to L</aug-init> affect exactly how files are "
|
|
"saved."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:631
|
|
msgid "aug-set"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:633
|
|
#, no-wrap
|
|
msgid ""
|
|
" aug-set augpath val\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:902
|
|
msgid "Set the value associated with C<path> to C<val>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:637
|
|
msgid ""
|
|
"In the Augeas API, it is possible to clear a node by setting the value to "
|
|
"NULL. Due to an oversight in the libguestfs API you cannot do that with "
|
|
"this call. Instead you must use the L</aug-clear> call."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:642
|
|
msgid "aug-setm"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:644
|
|
#, no-wrap
|
|
msgid ""
|
|
" aug-setm base sub val\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:921
|
|
msgid ""
|
|
"Change multiple Augeas nodes in a single operation. C<base> is an "
|
|
"expression matching multiple nodes. C<sub> is a path expression relative to "
|
|
"C<base>. All nodes matching C<base> are found, and then for each node, "
|
|
"C<sub> is changed to C<val>. C<sub> may also be C<NULL> in which case the "
|
|
"C<base> nodes are modified."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:927
|
|
msgid "This returns the number of nodes modified."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:654
|
|
msgid "available"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:656
|
|
#, no-wrap
|
|
msgid ""
|
|
" available 'groups ...'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:939
|
|
msgid ""
|
|
"This command is used to check the availability of some groups of "
|
|
"functionality in the appliance, which not all builds of the libguestfs "
|
|
"appliance will be able to provide."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:662
|
|
msgid ""
|
|
"The libguestfs groups, and the functions that those groups correspond to, "
|
|
"are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
|
|
"runtime by calling L</available-all-groups>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:667 ../src/guestfs-actions.pod:948
|
|
msgid ""
|
|
"The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
|
|
"\"augeas\"]> would check for the availability of the Linux inotify functions "
|
|
"and Augeas (configuration file editing) functions."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:672 ../src/guestfs-actions.pod:953
|
|
msgid "The command returns no error if I<all> requested groups are available."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:674 ../src/guestfs-actions.pod:955
|
|
msgid ""
|
|
"It fails with an error if one or more of the requested groups is unavailable "
|
|
"in the appliance."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:677 ../src/guestfs-actions.pod:958
|
|
msgid ""
|
|
"If an unknown group name is included in the list of groups then an error is "
|
|
"always returned."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:961
|
|
msgid "I<Notes:>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:686
|
|
msgid ""
|
|
"L</feature-available> is the same as this call, but with a slightly simpler "
|
|
"to use API: that call returns a boolean true/false instead of throwing an "
|
|
"error."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:692
|
|
msgid "You must call L</launch> before calling this function."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:694 ../src/guestfs-actions.pod:975
|
|
msgid ""
|
|
"The reason is because we don't know what groups are supported by the "
|
|
"appliance/daemon until it is running and can be queried."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:700 ../src/guestfs-actions.pod:981
|
|
msgid ""
|
|
"If a group of functions is available, this does not necessarily mean that "
|
|
"they will work. You still have to check for errors when calling individual "
|
|
"API functions even if they are available."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:988
|
|
msgid ""
|
|
"It is usually the job of distro packagers to build complete functionality "
|
|
"into the libguestfs appliance. Upstream libguestfs, if built from source "
|
|
"with all requirements satisfied, will support everything."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:714
|
|
msgid ""
|
|
"This call was added in version C<1.0.80>. In previous versions of "
|
|
"libguestfs all you could do would be to speculatively execute a command to "
|
|
"find out if the daemon implemented it. See also L</version>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:721
|
|
msgid "See also L</filesystem-available>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:723
|
|
msgid "available-all-groups"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:725
|
|
#, no-wrap
|
|
msgid ""
|
|
" available-all-groups\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:727
|
|
msgid ""
|
|
"This command returns a list of all optional groups that this daemon knows "
|
|
"about. Note this returns both supported and unsupported groups. To find "
|
|
"out which ones the daemon can actually support you have to call "
|
|
"L</available> / L</feature-available> on each member of the returned list."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:733
|
|
msgid ""
|
|
"See also L</available>, L</feature-available> and "
|
|
"L<guestfs(3)/AVAILABILITY>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:736
|
|
msgid "base64-in"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:738
|
|
#, no-wrap
|
|
msgid ""
|
|
" base64-in (base64file|-) filename\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:740 ../src/guestfs-actions.pod:1035
|
|
msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:743 ../fish/guestfish-actions.pod:752 ../fish/guestfish-actions.pod:1181 ../fish/guestfish-actions.pod:1265 ../fish/guestfish-actions.pod:1286 ../fish/guestfish-actions.pod:1606 ../fish/guestfish-actions.pod:1625 ../fish/guestfish-actions.pod:2112 ../fish/guestfish-actions.pod:4449 ../fish/guestfish-actions.pod:5518 ../fish/guestfish-actions.pod:5539 ../fish/guestfish-actions.pod:7316 ../fish/guestfish-actions.pod:7352 ../fish/guestfish-actions.pod:7363 ../fish/guestfish-actions.pod:7379 ../fish/guestfish-actions.pod:7517 ../fish/guestfish-actions.pod:7533 ../fish/guestfish-actions.pod:7609 ../fish/guestfish-actions.pod:7632
|
|
msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:745
|
|
msgid "base64-out"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:747
|
|
#, no-wrap
|
|
msgid ""
|
|
" base64-out filename (base64file|-)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:749 ../src/guestfs-actions.pod:1049
|
|
msgid ""
|
|
"This command downloads the contents of C<filename>, writing it out to local "
|
|
"file C<base64file> encoded as base64."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:754
|
|
msgid "blkid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:756
|
|
#, no-wrap
|
|
msgid ""
|
|
" blkid device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1062
|
|
msgid ""
|
|
"This command returns block device attributes for C<device>. The following "
|
|
"fields are usually present in the returned hash. Other fields may also be "
|
|
"present."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:763 ../src/guestfs-actions.pod:1067
|
|
msgid "C<UUID>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:765 ../src/guestfs-actions.pod:1069
|
|
msgid "The uuid of this device."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:767 ../src/guestfs-actions.pod:1071
|
|
msgid "C<LABEL>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:769 ../src/guestfs-actions.pod:1073
|
|
msgid "The label of this device."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:771 ../src/guestfs-actions.pod:1075
|
|
msgid "C<VERSION>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:773 ../src/guestfs-actions.pod:1077
|
|
msgid "The version of blkid command."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:775 ../src/guestfs-actions.pod:1079
|
|
msgid "C<TYPE>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:777 ../src/guestfs-actions.pod:1081
|
|
msgid "The filesystem type or RAID of this device."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:779 ../src/guestfs-actions.pod:1083
|
|
msgid "C<USAGE>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1085
|
|
msgid "The usage of this device, for example C<filesystem> or C<raid>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:785
|
|
msgid "blockdev-flushbufs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:787
|
|
#, no-wrap
|
|
msgid ""
|
|
" blockdev-flushbufs device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1103
|
|
msgid "This tells the kernel to flush internal buffers associated with C<device>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:792 ../fish/guestfish-actions.pod:806 ../fish/guestfish-actions.pod:815 ../fish/guestfish-actions.pod:825 ../fish/guestfish-actions.pod:837 ../fish/guestfish-actions.pod:850 ../fish/guestfish-actions.pod:858 ../fish/guestfish-actions.pod:883 ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1106 ../src/guestfs-actions.pod:1126 ../src/guestfs-actions.pod:1141 ../src/guestfs-actions.pod:1157 ../src/guestfs-actions.pod:1175 ../src/guestfs-actions.pod:1194 ../src/guestfs-actions.pod:1208 ../src/guestfs-actions.pod:1246 ../src/guestfs-actions.pod:1260
|
|
msgid "This uses the L<blockdev(8)> command."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:794
|
|
msgid "blockdev-getbsz"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:796
|
|
#, no-wrap
|
|
msgid ""
|
|
" blockdev-getbsz device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:798 ../src/guestfs-actions.pod:1118
|
|
msgid "This returns the block size of a device."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:800 ../src/guestfs-actions.pod:1120
|
|
msgid ""
|
|
"Note: this is different from both I<size in blocks> and I<filesystem block "
|
|
"size>. Also this setting is not really used by anything. You should "
|
|
"probably not use it for anything. Filesystems have their own idea about "
|
|
"what block size to choose."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:808
|
|
msgid "blockdev-getro"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:810
|
|
#, no-wrap
|
|
msgid ""
|
|
" blockdev-getro device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:812 ../src/guestfs-actions.pod:1138
|
|
msgid ""
|
|
"Returns a boolean indicating if the block device is read-only (true if "
|
|
"read-only, false if not)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:817
|
|
msgid "blockdev-getsize64"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:819
|
|
#, no-wrap
|
|
msgid ""
|
|
" blockdev-getsize64 device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1153
|
|
msgid "This returns the size of the device in bytes."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:823
|
|
msgid "See also L</blockdev-getsz>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:827
|
|
msgid "blockdev-getss"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:829
|
|
#, no-wrap
|
|
msgid ""
|
|
" blockdev-getss device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:831 ../src/guestfs-actions.pod:1169
|
|
msgid ""
|
|
"This returns the size of sectors on a block device. Usually 512, but can be "
|
|
"larger for modern devices."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:834
|
|
msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:839
|
|
msgid "blockdev-getsz"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:841
|
|
#, no-wrap
|
|
msgid ""
|
|
" blockdev-getsz device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:843 ../src/guestfs-actions.pod:1187
|
|
msgid ""
|
|
"This returns the size of the device in units of 512-byte sectors (even if "
|
|
"the sectorsize isn't 512 bytes ... weird)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:846
|
|
msgid ""
|
|
"See also L</blockdev-getss> for the real sector size of the device, and "
|
|
"L</blockdev-getsize64> for the more useful I<size in bytes>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:852
|
|
msgid "blockdev-rereadpt"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:854
|
|
#, no-wrap
|
|
msgid ""
|
|
" blockdev-rereadpt device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:856 ../src/guestfs-actions.pod:1206
|
|
msgid "Reread the partition table on C<device>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:860
|
|
msgid "blockdev-setbsz"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:862
|
|
#, no-wrap
|
|
msgid ""
|
|
" blockdev-setbsz device blocksize\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:864 ../src/guestfs-actions.pod:1228
|
|
msgid ""
|
|
"This call does nothing and has never done anything because of a bug in "
|
|
"blockdev. B<Do not use it.>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:867
|
|
msgid ""
|
|
"If you need to set the filesystem block size, use the C<blocksize> option of "
|
|
"L</mkfs>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:870 ../fish/guestfish-actions.pod:5127
|
|
msgid "I<This function is deprecated.> In new code, use the L</mkfs> call instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:877
|
|
msgid "blockdev-setro"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:879
|
|
#, no-wrap
|
|
msgid ""
|
|
" blockdev-setro device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:881 ../src/guestfs-actions.pod:1244
|
|
msgid "Sets the block device named C<device> to read-only."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:885
|
|
msgid "blockdev-setrw"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:887
|
|
#, no-wrap
|
|
msgid ""
|
|
" blockdev-setrw device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:889 ../src/guestfs-actions.pod:1258
|
|
msgid "Sets the block device named C<device> to read-write."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:893
|
|
msgid "btrfs-device-add"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:895
|
|
#, no-wrap
|
|
msgid ""
|
|
" btrfs-device-add 'devices ...' fs\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:897 ../src/guestfs-actions.pod:1273
|
|
msgid ""
|
|
"Add the list of device(s) in C<devices> to the btrfs filesystem mounted at "
|
|
"C<fs>. If C<devices> is an empty list, this does nothing."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:900
|
|
msgid "btrfs-device-delete"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:902
|
|
#, no-wrap
|
|
msgid ""
|
|
" btrfs-device-delete 'devices ...' fs\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:904 ../src/guestfs-actions.pod:1287
|
|
msgid ""
|
|
"Remove the C<devices> from the btrfs filesystem mounted at C<fs>. If "
|
|
"C<devices> is an empty list, this does nothing."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:907
|
|
msgid "btrfs-filesystem-balance"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:909
|
|
#, no-wrap
|
|
msgid ""
|
|
" btrfs-filesystem-balance fs\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:911 ../src/guestfs-actions.pod:1300
|
|
msgid ""
|
|
"Balance the chunks in the btrfs filesystem mounted at C<fs> across the "
|
|
"underlying devices."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:914
|
|
msgid "btrfs-filesystem-resize"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:916
|
|
#, no-wrap
|
|
msgid ""
|
|
" btrfs-filesystem-resize mountpoint [size:N]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:918 ../src/guestfs-actions.pod:1321
|
|
msgid "This command resizes a btrfs filesystem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:920 ../src/guestfs-actions.pod:1323
|
|
msgid ""
|
|
"Note that unlike other resize calls, the filesystem has to be mounted and "
|
|
"the parameter is the mountpoint not the device (this is a requirement of "
|
|
"btrfs itself)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:924 ../fish/guestfish-actions.pod:4759 ../fish/guestfish-actions.pod:5568 ../fish/guestfish-actions.pod:7426 ../fish/guestfish-prepopts.pod:9 ../fish/guestfish-prepopts.pod:24 ../fish/guestfish-prepopts.pod:41 ../fish/guestfish-prepopts.pod:60 ../fish/guestfish-prepopts.pod:77 ../fish/guestfish-prepopts.pod:93 ../fish/guestfish-prepopts.pod:110 ../src/guestfs-actions.pod:1327 ../src/guestfs-actions.pod:7642 ../src/guestfs-actions.pod:9154 ../src/guestfs-actions.pod:12094
|
|
msgid "The optional parameters are:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:928 ../fish/guestfish-actions.pod:5572 ../src/guestfs-actions.pod:1331 ../src/guestfs-actions.pod:9158
|
|
msgid "C<size>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:930 ../src/guestfs-actions.pod:1333
|
|
msgid ""
|
|
"The new size (in bytes) of the filesystem. If omitted, the filesystem is "
|
|
"resized to the maximum size."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1338
|
|
msgid "See also L<btrfs(8)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:939
|
|
msgid "btrfs-filesystem-sync"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:941
|
|
#, no-wrap
|
|
msgid ""
|
|
" btrfs-filesystem-sync fs\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:943 ../src/guestfs-actions.pod:1372
|
|
msgid "Force sync on the btrfs filesystem mounted at C<fs>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:945
|
|
msgid "btrfs-fsck"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:947
|
|
#, no-wrap
|
|
msgid ""
|
|
" btrfs-fsck device [superblock:N] [repair:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1393
|
|
msgid ""
|
|
"Used to check a btrfs filesystem, C<device> is the device file where the "
|
|
"filesystem is stored."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:954
|
|
msgid "btrfs-set-seeding"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:956
|
|
#, no-wrap
|
|
msgid ""
|
|
" btrfs-set-seeding device true|false\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:958 ../src/guestfs-actions.pod:1429
|
|
msgid ""
|
|
"Enable or disable the seeding feature of a device that contains a btrfs "
|
|
"filesystem."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:961
|
|
msgid "btrfs-subvolume-create"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:963
|
|
#, no-wrap
|
|
msgid ""
|
|
" btrfs-subvolume-create dest\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:965 ../src/guestfs-actions.pod:1442
|
|
msgid ""
|
|
"Create a btrfs subvolume. The C<dest> argument is the destination directory "
|
|
"and the name of the snapshot, in the form C</path/to/dest/name>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:968
|
|
msgid "btrfs-subvolume-delete"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:970
|
|
#, no-wrap
|
|
msgid ""
|
|
" btrfs-subvolume-delete subvolume\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:972 ../src/guestfs-actions.pod:1455
|
|
msgid "Delete the named btrfs subvolume."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:974
|
|
msgid "btrfs-subvolume-list"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:976
|
|
#, no-wrap
|
|
msgid ""
|
|
" btrfs-subvolume-list fs\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:978 ../src/guestfs-actions.pod:1467
|
|
msgid ""
|
|
"List the btrfs snapshots and subvolumes of the btrfs filesystem which is "
|
|
"mounted at C<fs>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:981
|
|
msgid "btrfs-subvolume-set-default"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:983
|
|
#, no-wrap
|
|
msgid ""
|
|
" btrfs-subvolume-set-default id fs\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:985
|
|
msgid ""
|
|
"Set the subvolume of the btrfs filesystem C<fs> which will be mounted by "
|
|
"default. See L</btrfs-subvolume-list> to get a list of subvolumes."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:989
|
|
msgid "btrfs-subvolume-snapshot"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:991
|
|
#, no-wrap
|
|
msgid ""
|
|
" btrfs-subvolume-snapshot source dest\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:993 ../src/guestfs-actions.pod:1498
|
|
msgid ""
|
|
"Create a writable snapshot of the btrfs subvolume C<source>. The C<dest> "
|
|
"argument is the destination directory and the name of the snapshot, in the "
|
|
"form C</path/to/dest/name>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:997
|
|
msgid "canonical-device-name"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:999
|
|
#, no-wrap
|
|
msgid ""
|
|
" canonical-device-name device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1001 ../src/guestfs-actions.pod:1512
|
|
msgid ""
|
|
"This utility function is useful when displaying device names to the user. "
|
|
"It takes a number of irregular device names and returns them in a consistent "
|
|
"format:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1007 ../src/guestfs-actions.pod:1518
|
|
msgid "C</dev/hdX>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1009 ../src/guestfs-actions.pod:1520
|
|
msgid "C</dev/vdX>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1522
|
|
msgid ""
|
|
"These are returned as C</dev/sdX>. Note this works for device names and "
|
|
"partition names. This is approximately the reverse of the algorithm "
|
|
"described in L<guestfs(3)/BLOCK DEVICE NAMING>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1015 ../src/guestfs-actions.pod:1526
|
|
msgid "C</dev/mapper/VG-LV>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1017 ../src/guestfs-actions.pod:1528
|
|
msgid "C</dev/dm-N>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1019
|
|
msgid "Converted to C</dev/VG/LV> form using L</lvm-canonical-lvm-name>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1023 ../src/guestfs-actions.pod:1534
|
|
msgid "Other strings are returned unmodified."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1025
|
|
msgid "cap-get-file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1027
|
|
#, no-wrap
|
|
msgid ""
|
|
" cap-get-file path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1029 ../src/guestfs-actions.pod:1547
|
|
msgid ""
|
|
"This function returns the Linux capabilities attached to C<path>. The "
|
|
"capabilities set is returned in text form (see L<cap_to_text(3)>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1032 ../src/guestfs-actions.pod:1550
|
|
msgid "If no capabilities are attached to a file, an empty string is returned."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1034
|
|
msgid "cap-set-file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1036
|
|
#, no-wrap
|
|
msgid ""
|
|
" cap-set-file path cap\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1038 ../src/guestfs-actions.pod:1564
|
|
msgid ""
|
|
"This function sets the Linux capabilities attached to C<path>. The "
|
|
"capabilities set C<cap> should be passed in text form (see "
|
|
"L<cap_from_text(3)>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1042
|
|
msgid "case-sensitive-path"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1044
|
|
#, no-wrap
|
|
msgid ""
|
|
" case-sensitive-path path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1578
|
|
msgid ""
|
|
"This can be used to resolve case insensitive paths on a filesystem which is "
|
|
"case sensitive. The use case is to resolve paths which you have read from "
|
|
"Windows configuration files or the Windows Registry, to the true path."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1051 ../src/guestfs-actions.pod:1583
|
|
msgid ""
|
|
"The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
|
|
"(and probably others), which is that although the underlying filesystem is "
|
|
"case-insensitive, the driver exports the filesystem to Linux as "
|
|
"case-sensitive."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1056 ../src/guestfs-actions.pod:1588
|
|
msgid ""
|
|
"One consequence of this is that special directories such as C<c:\\windows> "
|
|
"may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
|
|
"precise details of how they were created. In Windows itself this would not "
|
|
"be a problem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1062 ../src/guestfs-actions.pod:1594
|
|
msgid ""
|
|
"Bug or feature? You decide: "
|
|
"L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1065
|
|
msgid ""
|
|
"L</case-sensitive-path> attempts to resolve the true case of each element in "
|
|
"the path. It will return a resolved path if either the full path or its "
|
|
"parent directory exists. If the parent directory exists but the full path "
|
|
"does not, the case of the parent directory will be correctly resolved, and "
|
|
"the remainder appended unmodified. For example, if the file "
|
|
"C<\"/Windows/System32/netkvm.sys\"> exists:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1074
|
|
msgid "L</case-sensitive-path> (\"/windows/system32/netkvm.sys\")"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1076 ../src/guestfs-actions.pod:1608
|
|
msgid "\"Windows/System32/netkvm.sys\""
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1078
|
|
msgid "L</case-sensitive-path> (\"/windows/system32/NoSuchFile\")"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1612
|
|
msgid "\"Windows/System32/NoSuchFile\""
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1082
|
|
msgid "L</case-sensitive-path> (\"/windows/system33/netkvm.sys\")"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1616
|
|
msgid "I<ERROR>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1088
|
|
msgid ""
|
|
"I<Note>: Because of the above behaviour, L</case-sensitive-path> cannot be "
|
|
"used to check for the existence of a file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1624
|
|
msgid "I<Note>: This function does not handle drive names, backslashes etc."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1095
|
|
msgid "See also L</realpath>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1097
|
|
msgid "cat"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1099
|
|
#, no-wrap
|
|
msgid ""
|
|
" cat path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1101 ../fish/guestfish-actions.pod:6064 ../src/guestfs-actions.pod:1640 ../src/guestfs-actions.pod:9923
|
|
msgid "Return the contents of the file named C<path>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1103
|
|
msgid ""
|
|
"Because, in C, this function returns a C<char *>, there is no way to "
|
|
"differentiate between a C<\\0> character in a file and end of string. To "
|
|
"handle binary files, use the L</read-file> or L</download> functions."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1108
|
|
msgid "checksum"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1110
|
|
#, no-wrap
|
|
msgid ""
|
|
" checksum csumtype path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1112 ../src/guestfs-actions.pod:1659
|
|
msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1662
|
|
msgid ""
|
|
"The type of checksum to compute is given by the C<csumtype> parameter which "
|
|
"must have one of the following values:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1667
|
|
msgid "C<crc>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1669
|
|
msgid ""
|
|
"Compute the cyclic redundancy check (CRC) specified by POSIX for the "
|
|
"C<cksum> command."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1672
|
|
msgid "C<md5>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1127 ../src/guestfs-actions.pod:1674
|
|
msgid "Compute the MD5 hash (using the C<md5sum> program)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1676
|
|
msgid "C<sha1>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1131 ../src/guestfs-actions.pod:1678
|
|
msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1680
|
|
msgid "C<sha224>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1135 ../src/guestfs-actions.pod:1682
|
|
msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1137 ../src/guestfs-actions.pod:1684
|
|
msgid "C<sha256>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1139 ../src/guestfs-actions.pod:1686
|
|
msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1688
|
|
msgid "C<sha384>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1143 ../src/guestfs-actions.pod:1690
|
|
msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1145 ../src/guestfs-actions.pod:1692
|
|
msgid "C<sha512>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1147 ../src/guestfs-actions.pod:1694
|
|
msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1151 ../src/guestfs-actions.pod:1698
|
|
msgid "The checksum is returned as a printable string."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1153
|
|
msgid "To get the checksum for a device, use L</checksum-device>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1155
|
|
msgid "To get the checksums for many files, use L</checksums-out>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1157
|
|
msgid "checksum-device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1159
|
|
#, no-wrap
|
|
msgid ""
|
|
" checksum-device csumtype device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1161
|
|
msgid ""
|
|
"This call computes the MD5, SHAx or CRC checksum of the contents of the "
|
|
"device named C<device>. For the types of checksums supported see the "
|
|
"L</checksum> command."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1165
|
|
msgid "checksums-out"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1167
|
|
#, no-wrap
|
|
msgid ""
|
|
" checksums-out csumtype directory (sumsfile|-)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1733
|
|
msgid ""
|
|
"This command computes the checksums of all regular files in C<directory> and "
|
|
"then emits a list of those checksums to the local output file C<sumsfile>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1737
|
|
msgid ""
|
|
"This can be used for verifying the integrity of a virtual machine. However "
|
|
"to be properly secure you should pay attention to the output of the checksum "
|
|
"command (it uses the ones from GNU coreutils). In particular when the "
|
|
"filename is not printable, coreutils uses a special backslash syntax. For "
|
|
"more information, see the GNU coreutils info file."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1183
|
|
msgid "chmod"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1185
|
|
#, no-wrap
|
|
msgid ""
|
|
" chmod mode path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1756
|
|
msgid ""
|
|
"Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are "
|
|
"supported."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1190 ../src/guestfs-actions.pod:1759
|
|
msgid ""
|
|
"I<Note>: When using this command from guestfish, C<mode> by default would be "
|
|
"decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
|
|
"C<700>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1194 ../fish/guestfish-actions.pod:5064 ../fish/guestfish-actions.pod:5219 ../fish/guestfish-actions.pod:5229 ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:1763 ../src/guestfs-actions.pod:8147 ../src/guestfs-actions.pod:8424 ../src/guestfs-actions.pod:8443 ../src/guestfs-actions.pod:8462
|
|
msgid "The mode actually set is affected by the umask."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1196
|
|
msgid "chown"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1198
|
|
#, no-wrap
|
|
msgid ""
|
|
" chown owner group path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1777
|
|
msgid "Change the file owner to C<owner> and group to C<group>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1202 ../fish/guestfish-actions.pod:4132 ../src/guestfs-actions.pod:1779 ../src/guestfs-actions.pod:6587
|
|
msgid ""
|
|
"Only numeric uid and gid are supported. If you want to use names, you will "
|
|
"need to locate and parse the password file yourself (Augeas support makes "
|
|
"this relatively easy)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1206
|
|
msgid "command"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1208
|
|
#, no-wrap
|
|
msgid ""
|
|
" command 'arguments ...'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:1793
|
|
msgid ""
|
|
"This call runs a command from the guest filesystem. The filesystem must be "
|
|
"mounted, and must contain a compatible operating system (ie. something "
|
|
"Linux, with the same or compatible processor architecture)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1215
|
|
msgid ""
|
|
"The single parameter is an argv-style list of arguments. The first element "
|
|
"is the name of the program to run. Subsequent elements are parameters. The "
|
|
"list must be non-empty (ie. must contain a program name). Note that the "
|
|
"command runs directly, and is I<not> invoked via the shell (see L</sh>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1222 ../src/guestfs-actions.pod:1805
|
|
msgid "The return value is anything printed to I<stdout> by the command."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:1808
|
|
msgid ""
|
|
"If the command returns a non-zero exit status, then this function returns an "
|
|
"error message. The error message string is the content of I<stderr> from "
|
|
"the command."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1229 ../src/guestfs-actions.pod:1812
|
|
msgid ""
|
|
"The C<$PATH> environment variable will contain at least C</usr/bin> and "
|
|
"C</bin>. If you require a program from another location, you should provide "
|
|
"the full path in the first parameter."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:1817
|
|
msgid ""
|
|
"Shared libraries and data files required by the program must be available on "
|
|
"filesystems which are mounted in the correct places. It is the caller's "
|
|
"responsibility to ensure all filesystems that are needed are mounted at the "
|
|
"right locations."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1240 ../fish/guestfish-actions.pod:1252 ../fish/guestfish-actions.pod:1716 ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:1841 ../fish/guestfish-actions.pod:1858 ../fish/guestfish-actions.pod:2667 ../fish/guestfish-actions.pod:2677 ../fish/guestfish-actions.pod:2734 ../fish/guestfish-actions.pod:2749 ../fish/guestfish-actions.pod:2759 ../fish/guestfish-actions.pod:2935 ../fish/guestfish-actions.pod:5927 ../fish/guestfish-actions.pod:5942 ../fish/guestfish-actions.pod:6030 ../fish/guestfish-actions.pod:6047 ../fish/guestfish-actions.pod:6132 ../fish/guestfish-actions.pod:7116 ../fish/guestfish-actions.pod:7162 ../fish/guestfish-actions.pod:7283 ../fish/guestfish-actions.pod:7298 ../fish/guestfish-actions.pod:7949 ../fish/guestfish-actions.pod:8025 ../fish/guestfish-actions.pod:8042 ../fish/guestfish-actions.pod:8117 ../fish/guestfish-actions.pod:8134 ../fish/guestfish-actions.pod:8170 ../fish/guestfish-actions.pod:8187 ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:2840 ../src/guestfs-actions.pod:2866 ../src/guestfs-actions.pod:3022 ../src/guestfs-actions.pod:3048 ../src/guestfs-actions.pod:4228 ../src/guestfs-actions.pod:4278 ../src/guestfs-actions.pod:4343 ../src/guestfs-actions.pod:4367 ../src/guestfs-actions.pod:4384 ../src/guestfs-actions.pod:4717 ../src/guestfs-actions.pod:9687 ../src/guestfs-actions.pod:9713 ../src/guestfs-actions.pod:9867 ../src/guestfs-actions.pod:9893 ../src/guestfs-actions.pod:10003 ../src/guestfs-actions.pod:11525 ../src/guestfs-actions.pod:11580 ../src/guestfs-actions.pod:11796 ../src/guestfs-actions.pod:11820 ../src/guestfs-actions.pod:12991 ../src/guestfs-actions.pod:13208 ../src/guestfs-actions.pod:13234 ../src/guestfs-actions.pod:13357 ../src/guestfs-actions.pod:13383 ../src/guestfs-actions.pod:13436 ../src/guestfs-actions.pod:13462
|
|
msgid ""
|
|
"Because of the message protocol, there is a transfer limit of somewhere "
|
|
"between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1243
|
|
msgid "command-lines"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1245
|
|
#, no-wrap
|
|
msgid ""
|
|
" command-lines 'arguments ...'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1247
|
|
msgid "This is the same as L</command>, but splits the result into a list of lines."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1250
|
|
msgid "See also: L</sh-lines>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1255
|
|
msgid "compress-device-out"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1257
|
|
#, no-wrap
|
|
msgid ""
|
|
" compress-device-out ctype device (zdevice|-) [level:N]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1259 ../src/guestfs-actions.pod:1867
|
|
msgid ""
|
|
"This command compresses C<device> and writes it out to the local file "
|
|
"C<zdevice>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1262
|
|
msgid ""
|
|
"The C<ctype> and optional C<level> parameters have the same meaning as in "
|
|
"L</compress-out>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1269
|
|
msgid "compress-out"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1271
|
|
#, no-wrap
|
|
msgid ""
|
|
" compress-out ctype file (zfile|-) [level:N]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1273 ../src/guestfs-actions.pod:1919
|
|
msgid ""
|
|
"This command compresses C<file> and writes it out to the local file "
|
|
"C<zfile>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:1922
|
|
msgid ""
|
|
"The compression program used is controlled by the C<ctype> parameter. "
|
|
"Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>. "
|
|
"Some compression types may not be supported by particular builds of "
|
|
"libguestfs, in which case you will get an error containing the substring "
|
|
"\"not supported\"."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1282 ../src/guestfs-actions.pod:1928
|
|
msgid ""
|
|
"The optional C<level> parameter controls compression level. The meaning and "
|
|
"default for this parameter depends on the compression program being used."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1290
|
|
msgid "config"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1292
|
|
#, no-wrap
|
|
msgid ""
|
|
" config hvparam hvvalue\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1294 ../src/guestfs-actions.pod:1969
|
|
msgid ""
|
|
"This can be used to add arbitrary hypervisor parameters of the form I<-param "
|
|
"value>. Actually it's not quite arbitrary - we prevent you from setting "
|
|
"some parameters which would interfere with parameters that we use."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1299 ../src/guestfs-actions.pod:1974
|
|
msgid "The first character of C<hvparam> string must be a C<-> (dash)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1301 ../src/guestfs-actions.pod:1976
|
|
msgid "C<hvvalue> can be NULL."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1303
|
|
msgid "copy-attributes"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1305
|
|
#, no-wrap
|
|
msgid ""
|
|
" copy-attributes src dest [all:true|false] [mode:true|false] "
|
|
"[xattributes:true|false] [ownership:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:2000
|
|
msgid ""
|
|
"Copy the attributes of a path (which can be a file or a directory) to "
|
|
"another path."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2003
|
|
msgid ""
|
|
"By default C<no> attribute is copied, so make sure to specify any (or C<all> "
|
|
"to copy everything)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1313 ../src/guestfs-actions.pod:2006
|
|
msgid "The optional arguments specify which attributes can be copied:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1317 ../src/guestfs-actions.pod:2010
|
|
msgid "C<mode>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1319 ../src/guestfs-actions.pod:2012
|
|
msgid ""
|
|
"Copy part of the file mode from C<source> to C<destination>. Only the UNIX "
|
|
"permissions and the sticky/setuid/setgid bits can be copied."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1322 ../src/guestfs-actions.pod:2015
|
|
msgid "C<xattributes>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1324
|
|
msgid ""
|
|
"Copy the Linux extended attributes (xattrs) from C<source> to "
|
|
"C<destination>. This flag does nothing if the I<linuxxattrs> feature is not "
|
|
"available (see L</feature-available>)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1328 ../src/guestfs-actions.pod:2021
|
|
msgid "C<ownership>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1330 ../src/guestfs-actions.pod:2023
|
|
msgid "Copy the owner uid and the group gid of C<source> to C<destination>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1332 ../src/guestfs-actions.pod:2025
|
|
msgid "C<all>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1334 ../src/guestfs-actions.pod:2027
|
|
msgid ""
|
|
"Copy B<all> the attributes from C<source> to C<destination>. Enabling it "
|
|
"enables all the other flags, if they are not specified already."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1341
|
|
msgid "copy-device-to-device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1343
|
|
#, no-wrap
|
|
msgid ""
|
|
" copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N] "
|
|
"[sparse:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1345
|
|
msgid ""
|
|
"The four calls L</copy-device-to-device>, L</copy-device-to-file>, "
|
|
"L</copy-file-to-device>, and L</copy-file-to-file> let you copy from a "
|
|
"source (device|file) to a destination (device|file)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1352 ../src/guestfs-actions.pod:2083
|
|
msgid ""
|
|
"Partial copies can be made since you can specify optionally the source "
|
|
"offset, destination offset and size to copy. These values are all specified "
|
|
"in bytes. If not given, the offsets both default to zero, and the size "
|
|
"defaults to copying as much as possible until we hit the end of the source."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1358 ../src/guestfs-actions.pod:2089
|
|
msgid ""
|
|
"The source and destination may be the same object. However overlapping "
|
|
"regions may not be copied correctly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1361 ../src/guestfs-actions.pod:2092
|
|
msgid ""
|
|
"If the destination is a file, it is created if required. If the destination "
|
|
"file is not large enough, it is extended."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1364 ../src/guestfs-actions.pod:2095
|
|
msgid ""
|
|
"If the C<sparse> flag is true then the call avoids writing blocks that "
|
|
"contain only zeroes, which can help in some situations where the backing "
|
|
"disk is thin-provisioned. Note that unless the target is already zeroed, "
|
|
"using this option will result in incorrect copying."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1372
|
|
msgid "copy-device-to-file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1374
|
|
#, no-wrap
|
|
msgid ""
|
|
" copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N] "
|
|
"[sparse:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1376 ../fish/guestfish-actions.pod:1385 ../fish/guestfish-actions.pod:1394
|
|
msgid "See L</copy-device-to-device> for a general overview of this call."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1381
|
|
msgid "copy-file-to-device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1383
|
|
#, no-wrap
|
|
msgid ""
|
|
" copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N] "
|
|
"[sparse:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1390
|
|
msgid "copy-file-to-file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1392
|
|
#, no-wrap
|
|
msgid ""
|
|
" copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N] "
|
|
"[sparse:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1397
|
|
msgid ""
|
|
"This is B<not> the function you want for copying files. This is for copying "
|
|
"blocks within existing files. See L</cp>, L</cp-a> and L</mv> for general "
|
|
"file copying and moving functions."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1404
|
|
msgid "copy-size"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1406
|
|
#, no-wrap
|
|
msgid ""
|
|
" copy-size src dest size\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2316
|
|
msgid ""
|
|
"This command copies exactly C<size> bytes from one source device or file "
|
|
"C<src> to another destination device or file C<dest>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1411 ../src/guestfs-actions.pod:2319
|
|
msgid ""
|
|
"Note this will fail if the source is too short or if the destination is not "
|
|
"large enough."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1414 ../fish/guestfish-actions.pod:1461
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the "
|
|
"L</copy-device-to-device> call instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1421
|
|
msgid "cp"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1423
|
|
#, no-wrap
|
|
msgid ""
|
|
" cp src dest\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1425 ../src/guestfs-actions.pod:2338
|
|
msgid ""
|
|
"This copies a file from C<src> to C<dest> where C<dest> is either a "
|
|
"destination filename or destination directory."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1428
|
|
msgid "cp-a"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1430
|
|
#, no-wrap
|
|
msgid ""
|
|
" cp-a src dest\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1432 ../src/guestfs-actions.pod:2352
|
|
msgid ""
|
|
"This copies a file or directory from C<src> to C<dest> recursively using the "
|
|
"C<cp -a> command."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1435
|
|
msgid "cp-r"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1437
|
|
#, no-wrap
|
|
msgid ""
|
|
" cp-r src dest\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1439 ../src/guestfs-actions.pod:2366
|
|
msgid ""
|
|
"This copies a file or directory from C<src> to C<dest> recursively using the "
|
|
"C<cp -rP> command."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1442
|
|
msgid ""
|
|
"Most users should use L</cp-a> instead. This command is useful when you "
|
|
"don't want to preserve permissions, because the target filesystem does not "
|
|
"support it (primarily when writing to DOS FAT filesystems)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1447
|
|
msgid "dd"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1449
|
|
#, no-wrap
|
|
msgid ""
|
|
" dd src dest\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1451 ../src/guestfs-actions.pod:2392
|
|
msgid ""
|
|
"This command copies from one source device or file C<src> to another "
|
|
"destination device or file C<dest>. Normally you would use this to copy to "
|
|
"or from a device or partition, for example to duplicate a filesystem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1456
|
|
msgid ""
|
|
"If the destination is a device, it must be as large or larger than the "
|
|
"source file or device, otherwise the copy will fail. This command cannot do "
|
|
"partial copies (see L</copy-device-to-device>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1468
|
|
msgid "device-index"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1470
|
|
#, no-wrap
|
|
msgid ""
|
|
" device-index device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2412
|
|
msgid ""
|
|
"This function takes a device name (eg. \"/dev/sdb\") and returns the index "
|
|
"of the device in the list of devices."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1475
|
|
msgid ""
|
|
"Index numbers start from 0. The named device must exist, for example as a "
|
|
"string returned from L</list-devices>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1478
|
|
msgid "See also L</list-devices>, L</part-to-dev>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1480
|
|
msgid "df"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1482
|
|
#, no-wrap
|
|
msgid ""
|
|
" df\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1484 ../src/guestfs-actions.pod:2429
|
|
msgid "This command runs the C<df> command to report disk space used."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1486 ../fish/guestfish-actions.pod:1497
|
|
msgid ""
|
|
"This command is mostly useful for interactive sessions. It is I<not> "
|
|
"intended that you try to parse the output string. Use L</statvfs> from "
|
|
"programs."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1490
|
|
msgid "df-h"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1492
|
|
#, no-wrap
|
|
msgid ""
|
|
" df-h\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1494 ../src/guestfs-actions.pod:2445
|
|
msgid ""
|
|
"This command runs the C<df -h> command to report disk space used in "
|
|
"human-readable format."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1501
|
|
msgid "disk-create"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1503
|
|
#, no-wrap
|
|
msgid ""
|
|
" disk-create filename format size [backingfile:..] [backingformat:..] "
|
|
"[preallocation:..] [compat:..] [clustersize:N]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1505 ../src/guestfs-actions.pod:2477
|
|
msgid ""
|
|
"Create a blank disk image called C<filename> (a host file) with format "
|
|
"C<format> (usually C<raw> or C<qcow2>). The size is C<size> bytes."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1509 ../src/guestfs-actions.pod:2481
|
|
msgid ""
|
|
"If used with the optional C<backingfile> parameter, then a snapshot is "
|
|
"created on top of the backing file. In this case, C<size> must be passed as "
|
|
"C<-1>. The size of the snapshot is the same as the size of the backing "
|
|
"file, which is discovered automatically. You are encouraged to also pass "
|
|
"C<backingformat> to describe the format of C<backingfile>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1516 ../src/guestfs-actions.pod:2488
|
|
msgid "The other optional parameters are:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2492
|
|
msgid "C<preallocation>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1522 ../src/guestfs-actions.pod:2494
|
|
msgid ""
|
|
"If format is C<raw>, then this can be either C<sparse> or C<full> to create "
|
|
"a sparse or fully allocated file respectively. The default is C<sparse>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1526 ../src/guestfs-actions.pod:2498
|
|
msgid ""
|
|
"If format is C<qcow2>, then this can be either C<off> or C<metadata>. "
|
|
"Preallocating metadata can be faster when doing lots of writes, but uses "
|
|
"more space. The default is C<off>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1530 ../src/guestfs-actions.pod:2502
|
|
msgid "C<compat>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1532 ../src/guestfs-actions.pod:2504
|
|
msgid ""
|
|
"C<qcow2> only: Pass the string C<1.1> to use the advanced qcow2 format "
|
|
"supported by qemu E<ge> 1.1."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1536 ../src/guestfs-actions.pod:2508
|
|
msgid "C<clustersize>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2510
|
|
msgid ""
|
|
"C<qcow2> only: Change the qcow2 cluster size. The default is 65536 (bytes) "
|
|
"and this setting may be any power of two between 512 and 2097152."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1544
|
|
msgid ""
|
|
"Note that this call does not add the new disk to the handle. You may need "
|
|
"to call L</add-drive-opts> separately."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1549
|
|
msgid "disk-format"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1551
|
|
#, no-wrap
|
|
msgid ""
|
|
" disk-format filename\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2553
|
|
msgid ""
|
|
"Detect and return the format of the disk image called C<filename>. "
|
|
"C<filename> can also be a host device, etc. If the format of the image "
|
|
"could not be detected, then C<\"unknown\"> is returned."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1557 ../src/guestfs-actions.pod:2557
|
|
msgid ""
|
|
"Note that detecting the disk format can be insecure under some "
|
|
"circumstances. See L<guestfs(3)/CVE-2010-3851>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2560
|
|
msgid "See also: L<guestfs(3)/DISK IMAGE FORMATS>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1562
|
|
msgid "disk-has-backing-file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1564
|
|
#, no-wrap
|
|
msgid ""
|
|
" disk-has-backing-file filename\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2573
|
|
msgid "Detect and return whether the disk image C<filename> has a backing file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1569 ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2576 ../src/guestfs-actions.pod:2592
|
|
msgid ""
|
|
"Note that detecting disk features can be insecure under some circumstances. "
|
|
"See L<guestfs(3)/CVE-2010-3851>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1572
|
|
msgid "disk-virtual-size"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1574
|
|
#, no-wrap
|
|
msgid ""
|
|
" disk-virtual-size filename\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1576 ../src/guestfs-actions.pod:2589
|
|
msgid ""
|
|
"Detect and return the virtual size in bytes of the disk image called "
|
|
"C<filename>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1582
|
|
msgid "dmesg"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1584
|
|
#, no-wrap
|
|
msgid ""
|
|
" dmesg\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2604
|
|
msgid ""
|
|
"This returns the kernel messages (C<dmesg> output) from the guest kernel. "
|
|
"This is sometimes useful for extended debugging of problems."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1590
|
|
msgid ""
|
|
"Another way to get the same information is to enable verbose messages with "
|
|
"L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
|
|
"before running the program."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1595
|
|
msgid "download"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1597
|
|
#, no-wrap
|
|
msgid ""
|
|
" download remotefilename (filename|-)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1599 ../fish/guestfish-actions.pod:1612 ../src/guestfs-actions.pod:2625 ../src/guestfs-actions.pod:2650
|
|
msgid ""
|
|
"Download file C<remotefilename> and save it as C<filename> on the local "
|
|
"machine."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1602 ../fish/guestfish-actions.pod:7605 ../src/guestfs-actions.pod:2628 ../src/guestfs-actions.pod:12404
|
|
msgid "C<filename> can also be a named pipe."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1604
|
|
msgid "See also L</upload>, L</cat>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1608
|
|
msgid "download-offset"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1610
|
|
#, no-wrap
|
|
msgid ""
|
|
" download-offset remotefilename (filename|-) offset size\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1615 ../src/guestfs-actions.pod:2653
|
|
msgid ""
|
|
"C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
|
|
"region must be within the file or device)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1618
|
|
msgid ""
|
|
"Note that there is no limit on the amount of data that can be downloaded "
|
|
"with this call, unlike with L</pread>, and this call always reads the full "
|
|
"amount unless an error occurs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1623
|
|
msgid "See also L</download>, L</pread>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1627
|
|
msgid "drop-caches"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1629
|
|
#, no-wrap
|
|
msgid ""
|
|
" drop-caches whattodrop\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1631 ../src/guestfs-actions.pod:2678
|
|
msgid ""
|
|
"This instructs the guest kernel to drop its page cache, and/or dentries and "
|
|
"inode caches. The parameter C<whattodrop> tells the kernel what precisely "
|
|
"to drop, see L<http://linux-mm.org/Drop_Caches>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2683
|
|
msgid "Setting C<whattodrop> to 3 should drop everything."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1638 ../src/guestfs-actions.pod:2685
|
|
msgid ""
|
|
"This automatically calls L<sync(2)> before the operation, so that the "
|
|
"maximum guest memory is freed."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1641
|
|
msgid "du"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1643
|
|
#, no-wrap
|
|
msgid ""
|
|
" du path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1645 ../src/guestfs-actions.pod:2698
|
|
msgid ""
|
|
"This command runs the C<du -s> command to estimate file space usage for "
|
|
"C<path>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2701
|
|
msgid ""
|
|
"C<path> can be a file or a directory. If C<path> is a directory then the "
|
|
"estimate includes the contents of the directory and all subdirectories "
|
|
"(recursively)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1652 ../src/guestfs-actions.pod:2705
|
|
msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1655
|
|
msgid "e2fsck"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1657
|
|
#, no-wrap
|
|
msgid ""
|
|
" e2fsck device [correct:true|false] [forceall:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1659 ../src/guestfs-actions.pod:2732
|
|
msgid ""
|
|
"This runs the ext2/ext3 filesystem checker on C<device>. It can take the "
|
|
"following optional arguments:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2737
|
|
msgid "C<correct>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1666 ../src/guestfs-actions.pod:2739
|
|
msgid ""
|
|
"Automatically repair the file system. This option will cause e2fsck to "
|
|
"automatically fix any filesystem problems that can be safely fixed without "
|
|
"human intervention."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1670 ../src/guestfs-actions.pod:2743
|
|
msgid "This option may not be specified at the same time as the C<forceall> option."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1672 ../src/guestfs-actions.pod:2745
|
|
msgid "C<forceall>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1674 ../src/guestfs-actions.pod:2747
|
|
msgid ""
|
|
"Assume an answer of 'yes' to all questions; allows e2fsck to be used "
|
|
"non-interactively."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2750
|
|
msgid "This option may not be specified at the same time as the C<correct> option."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1683
|
|
msgid "e2fsck-f"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1685
|
|
#, no-wrap
|
|
msgid ""
|
|
" e2fsck-f device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1687 ../src/guestfs-actions.pod:2793
|
|
msgid ""
|
|
"This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
|
|
"on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
|
|
"clean (I<-f>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1691
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</e2fsck> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1698
|
|
msgid "echo-daemon"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1700
|
|
#, no-wrap
|
|
msgid ""
|
|
" echo-daemon 'words ...'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2807
|
|
msgid ""
|
|
"This command concatenates the list of C<words> passed with single spaces "
|
|
"between them and returns the resulting string."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1705 ../src/guestfs-actions.pod:2810
|
|
msgid "You can use this command to test the connection through to the daemon."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1707
|
|
msgid "See also L</ping-daemon>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1709
|
|
msgid "egrep"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1711
|
|
#, no-wrap
|
|
msgid ""
|
|
" egrep regex path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1713 ../src/guestfs-actions.pod:2833
|
|
msgid "This calls the external C<egrep> program and returns the matching lines."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1719 ../fish/guestfish-actions.pod:1736 ../fish/guestfish-actions.pod:1844 ../fish/guestfish-actions.pod:1861 ../fish/guestfish-actions.pod:2680 ../fish/guestfish-actions.pod:8028 ../fish/guestfish-actions.pod:8045 ../fish/guestfish-actions.pod:8120 ../fish/guestfish-actions.pod:8137 ../fish/guestfish-actions.pod:8173 ../fish/guestfish-actions.pod:8190
|
|
msgid "I<This function is deprecated.> In new code, use the L</grep> call instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1726
|
|
msgid "egrepi"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1728
|
|
#, no-wrap
|
|
msgid ""
|
|
" egrepi regex path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1730 ../src/guestfs-actions.pod:2859
|
|
msgid "This calls the external C<egrep -i> program and returns the matching lines."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1743
|
|
msgid "equal"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1745
|
|
#, no-wrap
|
|
msgid ""
|
|
" equal file1 file2\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1747 ../src/guestfs-actions.pod:2878
|
|
msgid ""
|
|
"This compares the two files C<file1> and C<file2> and returns true if their "
|
|
"content is exactly equal, or false otherwise."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1750 ../src/guestfs-actions.pod:2881
|
|
msgid "The external L<cmp(1)> program is used for the comparison."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1752
|
|
msgid "exists"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1754
|
|
#, no-wrap
|
|
msgid ""
|
|
" exists path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1756 ../src/guestfs-actions.pod:2893
|
|
msgid ""
|
|
"This returns C<true> if and only if there is a file, directory (or anything) "
|
|
"with the given C<path> name."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1759
|
|
msgid "See also L</is-file>, L</is-dir>, L</stat>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1761
|
|
msgid "extlinux"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1763
|
|
#, no-wrap
|
|
msgid ""
|
|
" extlinux directory\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1765
|
|
msgid ""
|
|
"Install the SYSLINUX bootloader on the device mounted at C<directory>. "
|
|
"Unlike L</syslinux> which requires a FAT filesystem, this can be used on an "
|
|
"ext2/3/4 or btrfs filesystem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1769 ../src/guestfs-actions.pod:2912
|
|
msgid ""
|
|
"The C<directory> parameter can be either a mountpoint, or a directory within "
|
|
"the mountpoint."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1772
|
|
msgid ""
|
|
"You also have to mark the partition as \"active\" (L</part-set-bootable>) "
|
|
"and a Master Boot Record must be installed (eg. using L</pwrite-device>) on "
|
|
"the first sector of the whole disk. The SYSLINUX package comes with some "
|
|
"suitable Master Boot Records. See the L<extlinux(1)> man page for further "
|
|
"information."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1779 ../src/guestfs-actions.pod:2922
|
|
msgid ""
|
|
"Additional configuration can be supplied to SYSLINUX by placing a file "
|
|
"called C<extlinux.conf> on the filesystem under C<directory>. For further "
|
|
"information about the contents of this file, see L<extlinux(1)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1784
|
|
msgid "See also L</syslinux>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1786
|
|
msgid "fallocate"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1788
|
|
#, no-wrap
|
|
msgid ""
|
|
" fallocate path len\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1790 ../fish/guestfish-actions.pod:1809 ../src/guestfs-actions.pod:2947 ../src/guestfs-actions.pod:2966
|
|
msgid ""
|
|
"This command preallocates a file (containing zero bytes) named C<path> of "
|
|
"size C<len> bytes. If the file exists already, it is overwritten."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2951
|
|
msgid ""
|
|
"Do not confuse this with the guestfish-specific C<alloc> command which "
|
|
"allocates a file in the host and attaches it as a device."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1798
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</fallocate64> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1805
|
|
msgid "fallocate64"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1807
|
|
#, no-wrap
|
|
msgid ""
|
|
" fallocate64 path len\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1813
|
|
msgid ""
|
|
"Note that this call allocates disk blocks for the file. To create a sparse "
|
|
"file use L</truncate-size> instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1816
|
|
msgid ""
|
|
"The deprecated call L</fallocate> does the same, but owing to an oversight "
|
|
"it only allowed 30 bit lengths to be specified, effectively limiting the "
|
|
"maximum size of files created through that call to 1GB."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1821 ../src/guestfs-actions.pod:2978
|
|
msgid ""
|
|
"Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
|
|
"commands which create a file in the host and attach it as a device."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1825
|
|
msgid "feature-available"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1827
|
|
#, no-wrap
|
|
msgid ""
|
|
" feature-available 'groups ...'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1829
|
|
msgid ""
|
|
"This is the same as L</available>, but unlike that call it returns a simple "
|
|
"true/false boolean result, instead of throwing an exception if a feature is "
|
|
"not found. For other documentation see L</available>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1834
|
|
msgid "fgrep"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1836
|
|
#, no-wrap
|
|
msgid ""
|
|
" fgrep pattern path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1838 ../src/guestfs-actions.pod:3015
|
|
msgid "This calls the external C<fgrep> program and returns the matching lines."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1851
|
|
msgid "fgrepi"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1853
|
|
#, no-wrap
|
|
msgid ""
|
|
" fgrepi pattern path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:3041
|
|
msgid "This calls the external C<fgrep -i> program and returns the matching lines."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1868
|
|
msgid "file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1870
|
|
#, no-wrap
|
|
msgid ""
|
|
" file path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1872 ../src/guestfs-actions.pod:3059
|
|
msgid ""
|
|
"This call uses the standard L<file(1)> command to determine the type or "
|
|
"contents of the file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1875 ../src/guestfs-actions.pod:3062
|
|
msgid ""
|
|
"This call will also transparently look inside various types of compressed "
|
|
"file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1878 ../src/guestfs-actions.pod:3065
|
|
msgid ""
|
|
"The exact command which runs is C<file -zb path>. Note in particular that "
|
|
"the filename is not prepended to the output (the I<-b> option)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1882 ../src/guestfs-actions.pod:3069
|
|
msgid ""
|
|
"The output depends on the output of the underlying L<file(1)> command and it "
|
|
"can change in future in ways beyond our control. In other words, the output "
|
|
"is not guaranteed by the ABI."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1886
|
|
msgid ""
|
|
"See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
|
|
"(etc), L</is-zero>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1889
|
|
msgid "file-architecture"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1891
|
|
#, no-wrap
|
|
msgid ""
|
|
" file-architecture filename\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3087
|
|
msgid ""
|
|
"This detects the architecture of the binary C<filename>, and returns it if "
|
|
"known."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1896 ../src/guestfs-actions.pod:3090
|
|
msgid "Currently defined architectures are:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1900 ../src/guestfs-actions.pod:3094
|
|
msgid "\"i386\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1902 ../src/guestfs-actions.pod:3096
|
|
msgid ""
|
|
"This string is returned for all 32 bit i386, i486, i586, i686 binaries "
|
|
"irrespective of the precise processor requirements of the binary."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1905 ../src/guestfs-actions.pod:3099
|
|
msgid "\"x86_64\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1907 ../src/guestfs-actions.pod:3101
|
|
msgid "64 bit x86-64."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1909 ../src/guestfs-actions.pod:3103
|
|
msgid "\"sparc\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1911 ../src/guestfs-actions.pod:3105
|
|
msgid "32 bit SPARC."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1913 ../src/guestfs-actions.pod:3107
|
|
msgid "\"sparc64\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1915 ../src/guestfs-actions.pod:3109
|
|
msgid "64 bit SPARC V9 and above."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1917 ../src/guestfs-actions.pod:3111
|
|
msgid "\"ia64\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1919 ../src/guestfs-actions.pod:3113
|
|
msgid "Intel Itanium."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:3115
|
|
msgid "\"ppc\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1923 ../src/guestfs-actions.pod:3117
|
|
msgid "32 bit Power PC."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3119
|
|
msgid "\"ppc64\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1927 ../src/guestfs-actions.pod:3121
|
|
msgid "64 bit Power PC."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1931 ../src/guestfs-actions.pod:3125
|
|
msgid "Libguestfs may return other architecture strings in future."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1933 ../src/guestfs-actions.pod:3127
|
|
msgid "The function works on at least the following types of files:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1939 ../src/guestfs-actions.pod:3133
|
|
msgid "many types of Un*x and Linux binary"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1943 ../src/guestfs-actions.pod:3137
|
|
msgid "many types of Un*x and Linux shared library"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1947 ../src/guestfs-actions.pod:3141
|
|
msgid "Windows Win32 and Win64 binaries"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1951 ../src/guestfs-actions.pod:3145
|
|
msgid "Windows Win32 and Win64 DLLs"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1953 ../src/guestfs-actions.pod:3147
|
|
msgid "Win32 binaries and DLLs return C<i386>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1955 ../src/guestfs-actions.pod:3149
|
|
msgid "Win64 binaries and DLLs return C<x86_64>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1959 ../src/guestfs-actions.pod:3153
|
|
msgid "Linux kernel modules"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:3157
|
|
msgid "Linux new-style initrd images"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1967 ../src/guestfs-actions.pod:3161
|
|
msgid "some non-x86 Linux vmlinuz kernels"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:3165
|
|
msgid "What it can't do currently:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1977 ../src/guestfs-actions.pod:3171
|
|
msgid "static libraries (libfoo.a)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1981 ../src/guestfs-actions.pod:3175
|
|
msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1985 ../src/guestfs-actions.pod:3179
|
|
msgid "x86 Linux vmlinuz kernels"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:3181
|
|
msgid ""
|
|
"x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
|
|
"compressed code, and are horribly hard to unpack. If you want to find the "
|
|
"architecture of a kernel, use the architecture of the associated initrd or "
|
|
"kernel module(s) instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:1994
|
|
msgid "filesize"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:1996
|
|
#, no-wrap
|
|
msgid ""
|
|
" filesize file\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3199
|
|
msgid "This command returns the size of C<file> in bytes."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2000
|
|
msgid ""
|
|
"To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
|
|
"L</is-file> etc. To get the size of block devices, use "
|
|
"L</blockdev-getsize64>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2004
|
|
msgid "filesystem-available"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2006
|
|
#, no-wrap
|
|
msgid ""
|
|
" filesystem-available filesystem\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2008 ../src/guestfs-actions.pod:3215
|
|
msgid ""
|
|
"Check whether libguestfs supports the named filesystem. The argument "
|
|
"C<filesystem> is a filesystem name, such as C<ext3>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2012
|
|
msgid "You must call L</launch> before using this command."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2014 ../src/guestfs-actions.pod:3221
|
|
msgid ""
|
|
"This is mainly useful as a negative test. If this returns true, it doesn't "
|
|
"mean that a particular filesystem can be created or mounted, since "
|
|
"filesystems can fail for other reasons such as it being a later version of "
|
|
"the filesystem, or having incompatible features, or lacking the right "
|
|
"mkfs.E<lt>I<fs>E<gt> tool."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2021
|
|
msgid "See also L</available>, L</feature-available>, L<guestfs(3)/AVAILABILITY>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2024
|
|
msgid "fill"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2026
|
|
#, no-wrap
|
|
msgid ""
|
|
" fill c len path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2028 ../src/guestfs-actions.pod:3243
|
|
msgid ""
|
|
"This command creates a new file called C<path>. The initial content of the "
|
|
"file is C<len> octets of C<c>, where C<c> must be a number in the range "
|
|
"C<[0..255]>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2032
|
|
msgid ""
|
|
"To fill a file with zero bytes (sparsely), it is much more efficient to use "
|
|
"L</truncate-size>. To create a file with a pattern of repeating bytes use "
|
|
"L</fill-pattern>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2037
|
|
msgid "fill-dir"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2039
|
|
#, no-wrap
|
|
msgid ""
|
|
" fill-dir dir nr\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2041 ../src/guestfs-actions.pod:3268
|
|
msgid ""
|
|
"This function, useful for testing filesystems, creates C<nr> empty files in "
|
|
"the directory C<dir> with names C<00000000> through C<nr-1> (ie. each file "
|
|
"name is 8 digits long padded with zeroes)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2046
|
|
msgid "fill-pattern"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2048
|
|
#, no-wrap
|
|
msgid ""
|
|
" fill-pattern pattern len path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2050
|
|
msgid ""
|
|
"This function is like L</fill> except that it creates a new file of length "
|
|
"C<len> containing the repeating pattern of bytes in C<pattern>. The pattern "
|
|
"is truncated if necessary to ensure the length of the file is exactly C<len> "
|
|
"bytes."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2055
|
|
msgid "find"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2057
|
|
#, no-wrap
|
|
msgid ""
|
|
" find directory\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2059 ../src/guestfs-actions.pod:3305
|
|
msgid ""
|
|
"This command lists out all files and directories, recursively, starting at "
|
|
"C<directory>. It is essentially equivalent to running the shell command "
|
|
"C<find directory -print> but some post-processing happens on the output, "
|
|
"described below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3310
|
|
msgid ""
|
|
"This returns a list of strings I<without any prefix>. Thus if the directory "
|
|
"structure was:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2067 ../src/guestfs-actions.pod:3313
|
|
#, no-wrap
|
|
msgid ""
|
|
" /tmp/a\n"
|
|
" /tmp/b\n"
|
|
" /tmp/c/d\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2071
|
|
msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2074 ../src/guestfs-actions.pod:3320
|
|
#, no-wrap
|
|
msgid ""
|
|
" a\n"
|
|
" b\n"
|
|
" c\n"
|
|
" c/d\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3325
|
|
msgid "If C<directory> is not a directory, then this command returns an error."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2082 ../src/guestfs-actions.pod:3328
|
|
msgid "The returned list is sorted."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2084
|
|
msgid "find0"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2086
|
|
#, no-wrap
|
|
msgid ""
|
|
" find0 directory (files|-)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2088 ../src/guestfs-actions.pod:3343
|
|
msgid ""
|
|
"This command lists out all files and directories, recursively, starting at "
|
|
"C<directory>, placing the resulting list in the external file called "
|
|
"C<files>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2092
|
|
msgid "This command works the same way as L</find> with the following exceptions:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3354
|
|
msgid "The resulting list is written to an external file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2103 ../src/guestfs-actions.pod:3358
|
|
msgid ""
|
|
"Items (filenames) in the result are separated by C<\\0> characters. See "
|
|
"L<find(1)> option I<-print0>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2108 ../src/guestfs-actions.pod:3363
|
|
msgid "The result list is not sorted."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2114
|
|
msgid "findfs-label"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2116
|
|
#, no-wrap
|
|
msgid ""
|
|
" findfs-label label\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3377
|
|
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:2122
|
|
msgid "To find the label of a filesystem, use L</vfs-label>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2124
|
|
msgid "findfs-uuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2126
|
|
#, no-wrap
|
|
msgid ""
|
|
" findfs-uuid uuid\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2128 ../src/guestfs-actions.pod:3394
|
|
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:2132
|
|
msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2134
|
|
msgid "fsck"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2136
|
|
#, no-wrap
|
|
msgid ""
|
|
" fsck fstype device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3412
|
|
msgid ""
|
|
"This runs the filesystem checker (fsck) on C<device> which should have "
|
|
"filesystem type C<fstype>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2141 ../src/guestfs-actions.pod:3415
|
|
msgid ""
|
|
"The returned integer is the status. See L<fsck(8)> for the list of status "
|
|
"codes from C<fsck>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2150 ../src/guestfs-actions.pod:3424
|
|
msgid "Multiple status codes can be summed together."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2154 ../src/guestfs-actions.pod:3428
|
|
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:2159 ../src/guestfs-actions.pod:3433
|
|
msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2164 ../src/guestfs-actions.pod:3438
|
|
msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2166
|
|
msgid "fstrim"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2168
|
|
#, no-wrap
|
|
msgid ""
|
|
" fstrim mountpoint [offset:N] [length:N] [minimumfreeextent:N]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2170 ../src/guestfs-actions.pod:3460
|
|
msgid ""
|
|
"Trim the free space in the filesystem mounted on C<mountpoint>. The "
|
|
"filesystem must be mounted read-write."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2173 ../src/guestfs-actions.pod:3463
|
|
msgid ""
|
|
"The filesystem contents are not affected, but any free space in the "
|
|
"filesystem is \"trimmed\", that is, given back to the host device, thus "
|
|
"making disk images more sparse, allowing unused space in qcow2 files to be "
|
|
"reused, etc."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:3468
|
|
msgid ""
|
|
"This operation requires support in libguestfs, the mounted filesystem, the "
|
|
"host filesystem, qemu and the host kernel. If this support isn't present it "
|
|
"may give an error or even appear to run but do nothing."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2183
|
|
msgid ""
|
|
"See also L</zero-free-space>. That is a slightly different operation that "
|
|
"turns free space in the filesystem into zeroes. It is valid to call "
|
|
"L</fstrim> either instead of, or after calling L</zero-free-space>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2190
|
|
msgid "get-append"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2192
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-append\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2194 ../src/guestfs-actions.pod:3509
|
|
msgid ""
|
|
"Return the additional kernel options which are added to the guest kernel "
|
|
"command line."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2197 ../src/guestfs-actions.pod:3512
|
|
msgid "If C<NULL> then no options are added."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2199
|
|
msgid "get-attach-method"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2201
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-attach-method\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2203 ../fish/guestfish-actions.pod:2224 ../src/guestfs-actions.pod:3532 ../src/guestfs-actions.pod:3557
|
|
msgid "Return the current backend."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2205 ../fish/guestfish-actions.pod:2228
|
|
msgid "See L</set-backend> and L<guestfs(3)/BACKEND>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2207
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</get-backend> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2214
|
|
msgid "get-autosync"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2216
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-autosync\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2218 ../src/guestfs-actions.pod:3546
|
|
msgid "Get the autosync flag."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2220
|
|
msgid "get-backend"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2222
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-backend\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2226 ../fish/guestfish-actions.pod:6466 ../src/guestfs-actions.pod:3559 ../src/guestfs-actions.pod:10609
|
|
msgid "This handle property was previously called the \"attach method\"."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2230
|
|
msgid "get-backend-settings"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2232
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-backend-settings\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2234 ../src/guestfs-actions.pod:3573
|
|
msgid "Return the current backend settings."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2236 ../fish/guestfish-actions.pod:6484 ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:10633
|
|
msgid "See L<guestfs(3)/BACKEND>, L<guestfs(3)/BACKEND SETTINGS>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2238
|
|
msgid "get-cachedir"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2240
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-cachedir\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2242 ../src/guestfs-actions.pod:3586
|
|
msgid "Get the directory used by the handle to store the appliance cache."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2244
|
|
msgid "get-direct"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2246
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-direct\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2248 ../src/guestfs-actions.pod:3598
|
|
msgid "Return the direct appliance mode flag."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2250
|
|
msgid "get-e2attrs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2252
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-e2attrs file\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2254 ../src/guestfs-actions.pod:3610
|
|
msgid "This returns the file attributes associated with C<file>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2256 ../src/guestfs-actions.pod:3612
|
|
msgid ""
|
|
"The attributes are a set of bits associated with each inode which affect the "
|
|
"behaviour of the file. The attributes are returned as a string of letters "
|
|
"(described below). The string may be empty, indicating that no file "
|
|
"attributes are set for this file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2262 ../fish/guestfish-actions.pod:6541 ../src/guestfs-actions.pod:3618 ../src/guestfs-actions.pod:10711
|
|
msgid ""
|
|
"These attributes are only present when the file is located on an ext2/3/4 "
|
|
"filesystem. Using this call on other filesystem types will result in an "
|
|
"error."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3622
|
|
msgid "The characters (file attributes) in the returned string are currently:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:2271 ../src/guestfs-actions.pod:3627
|
|
msgid "'A'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3629
|
|
msgid "When the file is accessed, its atime is not modified."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:2275 ../src/guestfs-actions.pod:3631
|
|
msgid "'a'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2277 ../src/guestfs-actions.pod:3633
|
|
msgid "The file is append-only."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:2279 ../fish/guestfish-actions.pod:6093 ../src/guestfs-actions.pod:3635 ../src/guestfs-actions.pod:9960
|
|
msgid "'c'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2281 ../src/guestfs-actions.pod:3637
|
|
msgid "The file is compressed on-disk."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3639
|
|
msgid "'D'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2285 ../src/guestfs-actions.pod:3641
|
|
msgid ""
|
|
"(Directories only.) Changes to this directory are written synchronously to "
|
|
"disk."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:2288 ../fish/guestfish-actions.pod:6097 ../src/guestfs-actions.pod:3644 ../src/guestfs-actions.pod:9964
|
|
msgid "'d'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2290 ../src/guestfs-actions.pod:3646
|
|
msgid "The file is not a candidate for backup (see L<dump(8)>)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3648
|
|
msgid "'E'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2294 ../src/guestfs-actions.pod:3650
|
|
msgid "The file has compression errors."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:2296 ../src/guestfs-actions.pod:3652
|
|
msgid "'e'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3654
|
|
msgid "The file is using extents."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:2300 ../src/guestfs-actions.pod:3656
|
|
msgid "'h'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3658
|
|
msgid ""
|
|
"The file is storing its blocks in units of the filesystem blocksize instead "
|
|
"of sectors."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:2305 ../src/guestfs-actions.pod:3661
|
|
msgid "'I'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2307 ../src/guestfs-actions.pod:3663
|
|
msgid "(Directories only.) The directory is using hashed trees."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3665
|
|
msgid "'i'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2311 ../src/guestfs-actions.pod:3667
|
|
msgid ""
|
|
"The file is immutable. It cannot be modified, deleted or renamed. No link "
|
|
"can be created to this file."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3670
|
|
msgid "'j'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2316 ../src/guestfs-actions.pod:3672
|
|
msgid "The file is data-journaled."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:2318 ../fish/guestfish-actions.pod:6113 ../src/guestfs-actions.pod:3674 ../src/guestfs-actions.pod:9980
|
|
msgid "'s'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3676
|
|
msgid "When the file is deleted, all its blocks will be zeroed."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3678
|
|
msgid "'S'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3680
|
|
msgid "Changes to this file are written synchronously to disk."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:2326 ../src/guestfs-actions.pod:3682
|
|
msgid "'T'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2328 ../src/guestfs-actions.pod:3684
|
|
msgid ""
|
|
"(Directories only.) This is a hint to the block allocator that "
|
|
"subdirectories contained in this directory should be spread across blocks. "
|
|
"If not present, the block allocator will try to group subdirectories "
|
|
"together."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:2333 ../src/guestfs-actions.pod:3689
|
|
msgid "'t'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2335 ../src/guestfs-actions.pod:3691
|
|
msgid ""
|
|
"For a file, this disables tail-merging. (Not used by upstream "
|
|
"implementations of ext2.)"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:2338 ../fish/guestfish-actions.pod:6117 ../src/guestfs-actions.pod:3694 ../src/guestfs-actions.pod:9984
|
|
msgid "'u'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3696
|
|
msgid ""
|
|
"When the file is deleted, its blocks will be saved, allowing the file to be "
|
|
"undeleted."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3699
|
|
msgid "'X'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3701
|
|
msgid "The raw contents of the compressed file may be accessed."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3703
|
|
msgid "'Z'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3705
|
|
msgid "The compressed file is dirty."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3709
|
|
msgid ""
|
|
"More file attributes may be added to this list later. Not all file "
|
|
"attributes may be set for all kinds of files. For detailed information, "
|
|
"consult the L<chattr(1)> man page."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2357
|
|
msgid "See also L</set-e2attrs>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2359
|
|
msgid "Don't confuse these attributes with extended attributes (see L</getxattr>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2362
|
|
msgid "get-e2generation"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2364
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-e2generation file\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2366 ../src/guestfs-actions.pod:3729
|
|
msgid ""
|
|
"This returns the ext2 file generation of a file. The generation (which used "
|
|
"to be called the \"version\") is a number associated with an inode. This is "
|
|
"most commonly used by NFS servers."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3733
|
|
msgid ""
|
|
"The generation is only present when the file is located on an ext2/3/4 "
|
|
"filesystem. Using this call on other filesystem types will result in an "
|
|
"error."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2374
|
|
msgid "See L</set-e2generation>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2376
|
|
msgid "get-e2label"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2378
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-e2label device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2380 ../src/guestfs-actions.pod:3756
|
|
msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2383
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</vfs-label> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2390
|
|
msgid "get-e2uuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2392
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-e2uuid device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2394 ../src/guestfs-actions.pod:3777
|
|
msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2397
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</vfs-uuid> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2404
|
|
msgid "get-hv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2406
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-hv\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2408 ../src/guestfs-actions.pod:3790
|
|
msgid "Return the current hypervisor binary."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2410 ../fish/guestfish-actions.pod:2514 ../src/guestfs-actions.pod:3792 ../src/guestfs-actions.pod:3967
|
|
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:2413
|
|
msgid "get-libvirt-requested-credential-challenge"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2415
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-libvirt-requested-credential-challenge index\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2417 ../src/guestfs-actions.pod:3806
|
|
msgid ""
|
|
"Get the challenge (provided by libvirt) for the C<index>'th requested "
|
|
"credential. If libvirt did not provide a challenge, this returns the empty "
|
|
"string C<\"\">."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2421 ../fish/guestfish-actions.pod:2431 ../fish/guestfish-actions.pod:2441 ../fish/guestfish-actions.pod:2454 ../fish/guestfish-actions.pod:6659 ../fish/guestfish-actions.pod:6696 ../src/guestfs-actions.pod:3810 ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3844 ../src/guestfs-actions.pod:3863 ../src/guestfs-actions.pod:10891 ../src/guestfs-actions.pod:10934
|
|
msgid "See L<guestfs(3)/LIBVIRT AUTHENTICATION> for documentation and example code."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2423
|
|
msgid "get-libvirt-requested-credential-defresult"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2425
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-libvirt-requested-credential-defresult index\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2427 ../src/guestfs-actions.pod:3823
|
|
msgid ""
|
|
"Get the default result (provided by libvirt) for the C<index>'th requested "
|
|
"credential. If libvirt did not provide a default result, this returns the "
|
|
"empty string C<\"\">."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2433
|
|
msgid "get-libvirt-requested-credential-prompt"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2435
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-libvirt-requested-credential-prompt index\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2437 ../src/guestfs-actions.pod:3840
|
|
msgid ""
|
|
"Get the prompt (provided by libvirt) for the C<index>'th requested "
|
|
"credential. If libvirt did not provide a prompt, this returns the empty "
|
|
"string C<\"\">."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2443
|
|
msgid "get-libvirt-requested-credentials"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2445
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-libvirt-requested-credentials\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3856
|
|
msgid ""
|
|
"This should only be called during the event callback for events of type "
|
|
"C<GUESTFS_EVENT_LIBVIRT_AUTH>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2450
|
|
msgid ""
|
|
"Return the list of credentials requested by libvirt. Possible values are a "
|
|
"subset of the strings provided when you called "
|
|
"L</set-libvirt-supported-credentials>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2456
|
|
msgid "get-memsize"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2458
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-memsize\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3876
|
|
msgid "This gets the memory size in megabytes allocated to the hypervisor."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2463
|
|
msgid ""
|
|
"If L</set-memsize> was not called on this handle, and if "
|
|
"C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
|
|
"value for memsize."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2467 ../fish/guestfish-actions.pod:2537 ../fish/guestfish-actions.pod:6712 ../fish/guestfish-actions.pod:6836 ../src/guestfs-actions.pod:3883 ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:10954 ../src/guestfs-actions.pod:11106
|
|
msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2470
|
|
msgid "get-network"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2472
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-network\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3895
|
|
msgid "This returns the enable network flag."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2476
|
|
msgid "get-path"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2478
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2480 ../src/guestfs-actions.pod:3906
|
|
msgid "Return the current search path."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2482 ../src/guestfs-actions.pod:3908
|
|
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:2485
|
|
msgid "get-pgroup"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2487
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-pgroup\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2489 ../src/guestfs-actions.pod:3921
|
|
msgid "This returns the process group flag."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2491
|
|
msgid "get-pid"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2493
|
|
msgid "pid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2495
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-pid\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2497 ../src/guestfs-actions.pod:3932
|
|
msgid ""
|
|
"Return the process ID of the hypervisor. If there is no hypervisor running, "
|
|
"then this will return an error."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3935
|
|
msgid "This is an internal call used for debugging and testing."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2502
|
|
msgid "get-program"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2504
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-program\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2506
|
|
msgid "Get the program name. See L</set-program>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2508
|
|
msgid "get-qemu"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2510
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-qemu\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3965
|
|
msgid "Return the current hypervisor binary (usually qemu)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2517
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</get-hv> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2524
|
|
msgid "get-recovery-proc"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2526
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-recovery-proc\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3980
|
|
msgid "Return the recovery process enabled flag."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2530
|
|
msgid "get-selinux"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2532
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-selinux\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2534
|
|
msgid ""
|
|
"This returns the current setting of the selinux flag which is passed to the "
|
|
"appliance at boot time. See L</set-selinux>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2540
|
|
msgid "get-smp"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2542
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-smp\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2544 ../src/guestfs-actions.pod:4006
|
|
msgid "This returns the number of virtual CPUs assigned to the appliance."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2546
|
|
msgid "get-tmpdir"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2548
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-tmpdir\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:4031
|
|
msgid "Get the directory used by the handle to store temporary files."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2552
|
|
msgid "get-trace"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2554
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-trace\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2556 ../src/guestfs-actions.pod:4043
|
|
msgid "Return the command trace flag."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2558
|
|
msgid "get-umask"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2560
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-umask\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2562
|
|
msgid ""
|
|
"Return the current umask. By default the umask is C<022> unless it has been "
|
|
"set by calling L</umask>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2565
|
|
msgid "get-verbose"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2567
|
|
#, no-wrap
|
|
msgid ""
|
|
" get-verbose\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2569 ../src/guestfs-actions.pod:4066
|
|
msgid "This returns the verbose messages flag."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2571
|
|
msgid "getcon"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2573
|
|
#, no-wrap
|
|
msgid ""
|
|
" getcon\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:4077
|
|
msgid "This gets the SELinux security context of the daemon."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2577
|
|
msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2580
|
|
msgid "getxattr"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2582
|
|
#, no-wrap
|
|
msgid ""
|
|
" getxattr path name\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2584
|
|
msgid ""
|
|
"Get a single extended attribute from file C<path> named C<name>. This call "
|
|
"follows symlinks. If you want to lookup an extended attribute for the "
|
|
"symlink itself, use L</lgetxattr>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:4241
|
|
msgid ""
|
|
"Normally it is better to get all extended attributes from a file in one go "
|
|
"by calling L</getxattrs>. However some Linux filesystem implementations are "
|
|
"buggy and do not provide a way to list out attributes. For these "
|
|
"filesystems (notably ntfs-3g) you have to know the names of the extended "
|
|
"attributes you want in advance and call this function."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2595 ../fish/guestfish-actions.pod:4248 ../src/guestfs-actions.pod:4106 ../src/guestfs-actions.pod:6784
|
|
msgid ""
|
|
"Extended attribute values are blobs of binary data. If there is no extended "
|
|
"attribute named C<name>, this returns an error."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2598
|
|
msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2600
|
|
msgid "getxattrs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2602
|
|
#, no-wrap
|
|
msgid ""
|
|
" getxattrs path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:4123
|
|
msgid "This call lists the extended attributes of the file or directory C<path>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2607 ../src/guestfs-actions.pod:4126
|
|
msgid ""
|
|
"At the system call level, this is a combination of the L<listxattr(2)> and "
|
|
"L<getxattr(2)> calls."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2610
|
|
msgid "See also: L</lgetxattrs>, L<attr(5)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2612
|
|
msgid "glob-expand"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2614
|
|
#, no-wrap
|
|
msgid ""
|
|
" glob-expand pattern\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2616 ../src/guestfs-actions.pod:4143
|
|
msgid ""
|
|
"This command searches for all the pathnames matching C<pattern> according to "
|
|
"the wildcard expansion rules used by the shell."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:4147
|
|
msgid "If no paths match, then this returns an empty list (note: not an error)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:4150
|
|
msgid ""
|
|
"It is just a wrapper around the C L<glob(3)> function with flags "
|
|
"C<GLOB_MARK|GLOB_BRACE>. See that manual page for more details."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2627
|
|
msgid ""
|
|
"Notice that there is no equivalent command for expanding a device name "
|
|
"(eg. C</dev/sd*>). Use L</list-devices>, L</list-partitions> etc functions "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2631
|
|
msgid "grep"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2633
|
|
msgid "grep-opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2635
|
|
#, no-wrap
|
|
msgid ""
|
|
" grep regex path [extended:true|false] [fixed:true|false] "
|
|
"[insensitive:true|false] [compressed:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:4196
|
|
msgid "This calls the external C<grep> program and returns the matching lines."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2640 ../src/guestfs-actions.pod:4199
|
|
msgid "The optional flags are:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:2644 ../src/guestfs-actions.pod:4203
|
|
msgid "C<extended>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:4205
|
|
msgid "Use extended regular expressions. This is the same as using the I<-E> flag."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:2649 ../src/guestfs-actions.pod:4208
|
|
msgid "C<fixed>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2651 ../src/guestfs-actions.pod:4210
|
|
msgid ""
|
|
"Match fixed (don't use regular expressions). This is the same as using the "
|
|
"I<-F> flag."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:2654 ../src/guestfs-actions.pod:4213
|
|
msgid "C<insensitive>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2656 ../src/guestfs-actions.pod:4215
|
|
msgid "Match case-insensitive. This is the same as using the I<-i> flag."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:2658 ../src/guestfs-actions.pod:4217
|
|
msgid "C<compressed>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2660 ../src/guestfs-actions.pod:4219
|
|
msgid ""
|
|
"Use C<zgrep> instead of C<grep>. This allows the input to be compress- or "
|
|
"gzip-compressed."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2670
|
|
msgid "grepi"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2672
|
|
#, no-wrap
|
|
msgid ""
|
|
" grepi regex path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2674 ../src/guestfs-actions.pod:4271
|
|
msgid "This calls the external C<grep -i> program and returns the matching lines."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2687
|
|
msgid "grub-install"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2689
|
|
#, no-wrap
|
|
msgid ""
|
|
" grub-install root device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2691 ../src/guestfs-actions.pod:4290
|
|
msgid ""
|
|
"This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
|
|
"with the root directory being C<root>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2700 ../src/guestfs-actions.pod:4299
|
|
msgid ""
|
|
"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<guestfs(3)/RUNNING COMMANDS>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2707 ../src/guestfs-actions.pod:4306
|
|
msgid ""
|
|
"This uses C<grub-install> 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:2714 ../src/guestfs-actions.pod:4313
|
|
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</boot/grub/device.map> file first that contains the mapping between grub "
|
|
"device names and Linux device names. It is usually sufficient to create a "
|
|
"file containing:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2721 ../src/guestfs-actions.pod:4320
|
|
#, no-wrap
|
|
msgid ""
|
|
" (hd0) /dev/vda\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2723 ../src/guestfs-actions.pod:4322
|
|
msgid "replacing C</dev/vda> with the name of the installation device."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2727
|
|
msgid "head"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2729
|
|
#, no-wrap
|
|
msgid ""
|
|
" head path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2731 ../src/guestfs-actions.pod:4336
|
|
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:2737
|
|
msgid "head-n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2739
|
|
#, no-wrap
|
|
msgid ""
|
|
" head-n nrlines path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2741 ../src/guestfs-actions.pod:4355
|
|
msgid ""
|
|
"If the parameter C<nrlines> is a positive number, this returns the first "
|
|
"C<nrlines> lines of the file C<path>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2744 ../src/guestfs-actions.pod:4358
|
|
msgid ""
|
|
"If the parameter C<nrlines> is a negative number, this returns lines from "
|
|
"the file C<path>, excluding the last C<nrlines> lines."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2747 ../fish/guestfish-actions.pod:7296 ../src/guestfs-actions.pod:4361 ../src/guestfs-actions.pod:11814
|
|
msgid "If the parameter C<nrlines> is zero, this returns an empty list."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2752
|
|
msgid "hexdump"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2754
|
|
#, no-wrap
|
|
msgid ""
|
|
" hexdump path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4378
|
|
msgid ""
|
|
"This runs C<hexdump -C> on the given C<path>. The result is the "
|
|
"human-readable, canonical hex dump of the file."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2762
|
|
msgid "hivex-close"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2764
|
|
#, no-wrap
|
|
msgid ""
|
|
" hivex-close\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2766 ../src/guestfs-actions.pod:4394
|
|
msgid "Close the current hivex handle."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2768 ../fish/guestfish-actions.pod:2781 ../fish/guestfish-actions.pod:2789 ../fish/guestfish-actions.pod:2797 ../fish/guestfish-actions.pod:2805 ../fish/guestfish-actions.pod:2814 ../fish/guestfish-actions.pod:2824 ../fish/guestfish-actions.pod:2832 ../fish/guestfish-actions.pod:2840 ../fish/guestfish-actions.pod:2849 ../fish/guestfish-actions.pod:2857 ../fish/guestfish-actions.pod:2867 ../fish/guestfish-actions.pod:2877 ../fish/guestfish-actions.pod:2885 ../fish/guestfish-actions.pod:2893 ../fish/guestfish-actions.pod:2915 ../src/guestfs-actions.pod:4396 ../src/guestfs-actions.pod:4415 ../src/guestfs-actions.pod:4430 ../src/guestfs-actions.pod:4444 ../src/guestfs-actions.pod:4460 ../src/guestfs-actions.pod:4476 ../src/guestfs-actions.pod:4493 ../src/guestfs-actions.pod:4507 ../src/guestfs-actions.pod:4522 ../src/guestfs-actions.pod:4541 ../src/guestfs-actions.pod:4555 ../src/guestfs-actions.pod:4583 ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4683
|
|
msgid "This is a wrapper around the L<hivex(3)> call of the same name."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2770
|
|
msgid "hivex-commit"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2772
|
|
#, no-wrap
|
|
msgid ""
|
|
" hivex-commit filename\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2774 ../src/guestfs-actions.pod:4408
|
|
msgid "Commit (write) changes to the hive."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4410
|
|
msgid ""
|
|
"If the optional C<filename> parameter is null, then the changes are written "
|
|
"back to the same hive that was opened. If this is not null then they are "
|
|
"written to the alternate filename given and the original hive is left "
|
|
"untouched."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2783
|
|
msgid "hivex-node-add-child"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2785
|
|
#, no-wrap
|
|
msgid ""
|
|
" hivex-node-add-child parent name\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2787 ../src/guestfs-actions.pod:4428
|
|
msgid "Add a child node to C<parent> named C<name>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2791
|
|
msgid "hivex-node-children"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2793
|
|
#, no-wrap
|
|
msgid ""
|
|
" hivex-node-children nodeh\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2795 ../src/guestfs-actions.pod:4442
|
|
msgid "Return the list of nodes which are subkeys of C<nodeh>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2799
|
|
msgid "hivex-node-delete-child"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2801
|
|
#, no-wrap
|
|
msgid ""
|
|
" hivex-node-delete-child nodeh\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2803 ../src/guestfs-actions.pod:4458
|
|
msgid "Delete C<nodeh>, recursively if necessary."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2807
|
|
msgid "hivex-node-get-child"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2809
|
|
#, no-wrap
|
|
msgid ""
|
|
" hivex-node-get-child nodeh name\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2811 ../src/guestfs-actions.pod:4473
|
|
msgid ""
|
|
"Return the child of C<nodeh> with the name C<name>, if it exists. This can "
|
|
"return C<0> meaning the name was not found."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2816
|
|
msgid "hivex-node-get-value"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2818
|
|
#, no-wrap
|
|
msgid ""
|
|
" hivex-node-get-value nodeh key\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2820 ../src/guestfs-actions.pod:4489
|
|
msgid ""
|
|
"Return the value attached to C<nodeh> which has the name C<key>, if it "
|
|
"exists. This can return C<0> meaning the key was not found."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2826
|
|
msgid "hivex-node-name"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2828
|
|
#, no-wrap
|
|
msgid ""
|
|
" hivex-node-name nodeh\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2830 ../src/guestfs-actions.pod:4505
|
|
msgid "Return the name of C<nodeh>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2834
|
|
msgid "hivex-node-parent"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2836
|
|
#, no-wrap
|
|
msgid ""
|
|
" hivex-node-parent nodeh\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4520
|
|
msgid "Return the parent node of C<nodeh>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2842
|
|
msgid "hivex-node-set-value"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2844
|
|
#, no-wrap
|
|
msgid ""
|
|
" hivex-node-set-value nodeh key t val\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2846 ../src/guestfs-actions.pod:4538
|
|
msgid ""
|
|
"Set or replace a single value under the node C<nodeh>. The C<key> is the "
|
|
"name, C<t> is the type, and C<val> is the data."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2851
|
|
msgid "hivex-node-values"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2853
|
|
#, no-wrap
|
|
msgid ""
|
|
" hivex-node-values nodeh\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2855 ../src/guestfs-actions.pod:4553
|
|
msgid "Return the array of (key, datatype, data) tuples attached to C<nodeh>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2859
|
|
msgid "hivex-open"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2861
|
|
#, no-wrap
|
|
msgid ""
|
|
" hivex-open filename [verbose:true|false] [debug:true|false] "
|
|
"[write:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2863 ../src/guestfs-actions.pod:4579
|
|
msgid ""
|
|
"Open the Windows Registry hive file named C<filename>. If there was any "
|
|
"previous hivex handle associated with this guestfs session, then it is "
|
|
"closed."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2871
|
|
msgid "hivex-root"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2873
|
|
#, no-wrap
|
|
msgid ""
|
|
" hivex-root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2875 ../src/guestfs-actions.pod:4616
|
|
msgid "Return the root node of the hive."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2879
|
|
msgid "hivex-value-key"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2881
|
|
#, no-wrap
|
|
msgid ""
|
|
" hivex-value-key valueh\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2883 ../src/guestfs-actions.pod:4630
|
|
msgid "Return the key (name) field of a (key, datatype, data) tuple."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2887
|
|
msgid "hivex-value-type"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2889
|
|
#, no-wrap
|
|
msgid ""
|
|
" hivex-value-type valueh\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2891 ../src/guestfs-actions.pod:4645
|
|
msgid "Return the data type field from a (key, datatype, data) tuple."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2895
|
|
msgid "hivex-value-utf8"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2897
|
|
#, no-wrap
|
|
msgid ""
|
|
" hivex-value-utf8 valueh\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2899
|
|
msgid ""
|
|
"This calls L</hivex-value-value> (which returns the data field from a hivex "
|
|
"value tuple). It then assumes that the field is a UTF-16LE string and "
|
|
"converts the result to UTF-8 (or if this is not possible, it returns an "
|
|
"error)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2904 ../src/guestfs-actions.pod:4664
|
|
msgid ""
|
|
"This is useful for reading strings out of the Windows registry. However it "
|
|
"is not foolproof because the registry is not strongly-typed and fields can "
|
|
"contain arbitrary or unexpected data."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2909
|
|
msgid "hivex-value-value"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2911
|
|
#, no-wrap
|
|
msgid ""
|
|
" hivex-value-value valueh\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2913 ../src/guestfs-actions.pod:4681
|
|
msgid "Return the data field of a (key, datatype, data) tuple."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2917
|
|
msgid "See also: L</hivex-value-utf8>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2919
|
|
msgid "initrd-cat"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2921
|
|
#, no-wrap
|
|
msgid ""
|
|
" initrd-cat initrdpath filename\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2923 ../src/guestfs-actions.pod:4701
|
|
msgid ""
|
|
"This command unpacks the file C<filename> from the initrd file called "
|
|
"C<initrdpath>. The filename must be given I<without> the initial C</> "
|
|
"character."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2927 ../src/guestfs-actions.pod:4705
|
|
msgid ""
|
|
"For example, in guestfish you could use the following command to examine the "
|
|
"boot script (usually called C</init>) contained in a Linux initrd or "
|
|
"initramfs image:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2931 ../src/guestfs-actions.pod:4709
|
|
#, no-wrap
|
|
msgid ""
|
|
" initrd-cat /boot/initrd-<version>.img init\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2933
|
|
msgid "See also L</initrd-list>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2938
|
|
msgid "initrd-list"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2940
|
|
#, no-wrap
|
|
msgid ""
|
|
" initrd-list path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2942 ../src/guestfs-actions.pod:4728
|
|
msgid "This command lists out files contained in an initrd."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2944 ../src/guestfs-actions.pod:4730
|
|
msgid ""
|
|
"The files are listed without any initial C</> character. The files are "
|
|
"listed in the order they appear (not necessarily alphabetical). Directory "
|
|
"names are listed as separate items."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2948 ../src/guestfs-actions.pod:4734
|
|
msgid ""
|
|
"Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
|
|
"initrd. We I<only> support the newer initramfs format (compressed cpio "
|
|
"files)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2952
|
|
msgid "inotify-add-watch"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2954
|
|
#, no-wrap
|
|
msgid ""
|
|
" inotify-add-watch path mask\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2956 ../src/guestfs-actions.pod:4751
|
|
msgid "Watch C<path> for the events listed in C<mask>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2958 ../src/guestfs-actions.pod:4753
|
|
msgid ""
|
|
"Note that if C<path> is a directory then events within that directory are "
|
|
"watched, but this does I<not> happen recursively (in subdirectories)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2962 ../src/guestfs-actions.pod:4757
|
|
msgid ""
|
|
"Note for non-C or non-Linux callers: the inotify events are defined by the "
|
|
"Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2966
|
|
msgid "inotify-close"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2968
|
|
#, no-wrap
|
|
msgid ""
|
|
" inotify-close\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4770
|
|
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 "
|
|
"resources."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2974
|
|
msgid "inotify-files"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2976
|
|
#, no-wrap
|
|
msgid ""
|
|
" inotify-files\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2978
|
|
msgid ""
|
|
"This function is a helpful wrapper around L</inotify-read> which just "
|
|
"returns a list of pathnames of objects that were touched. The returned "
|
|
"pathnames are sorted and deduplicated."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:2982
|
|
msgid "inotify-init"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:2984
|
|
#, no-wrap
|
|
msgid ""
|
|
" inotify-init maxevents\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:2986 ../src/guestfs-actions.pod:4799
|
|
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:2990
|
|
msgid ""
|
|
"C<maxevents> is the maximum number of events which will be queued up between "
|
|
"calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
|
|
"then the kernel (or previously set) default is used. For Linux 2.6.29 the "
|
|
"default was 16384 events. Beyond this limit, the kernel throws away events, "
|
|
"but records the fact that it threw them away by setting a flag "
|
|
"C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3000
|
|
msgid ""
|
|
"Before any events are generated, you have to add some watches to the "
|
|
"internal watch list. See: L</inotify-add-watch> and L</inotify-rm-watch>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3004
|
|
msgid ""
|
|
"Queued up events should be read periodically by calling L</inotify-read> (or "
|
|
"L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
|
|
"If you don't read the events out often enough then you risk the internal "
|
|
"queue overflowing."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3011
|
|
msgid ""
|
|
"The handle should be closed after use by calling L</inotify-close>. This "
|
|
"also removes any watches automatically."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3015 ../src/guestfs-actions.pod:4828
|
|
msgid ""
|
|
"See also L<inotify(7)> for an overview of the inotify interface as exposed "
|
|
"by the Linux kernel, which is roughly what we expose via libguestfs. Note "
|
|
"that there is one global inotify handle per libguestfs instance."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3020
|
|
msgid "inotify-read"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3022
|
|
#, no-wrap
|
|
msgid ""
|
|
" inotify-read\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3024 ../src/guestfs-actions.pod:4842
|
|
msgid ""
|
|
"Return the complete queue of events that have happened since the previous "
|
|
"read call."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3027 ../src/guestfs-actions.pod:4845
|
|
msgid "If no events have happened, this returns an empty list."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3029 ../src/guestfs-actions.pod:4847
|
|
msgid ""
|
|
"I<Note>: 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 "
|
|
"the call will read events up to the maximum appliance-to-host message size "
|
|
"and leave remaining events in the queue."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3035
|
|
msgid "inotify-rm-watch"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3037
|
|
#, no-wrap
|
|
msgid ""
|
|
" inotify-rm-watch wd\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3039
|
|
msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3042
|
|
msgid "inspect-get-arch"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3044
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-get-arch root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3046
|
|
msgid ""
|
|
"This returns the architecture of the inspected operating system. The "
|
|
"possible return values are listed under L</file-architecture>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3050 ../src/guestfs-actions.pod:4882
|
|
msgid ""
|
|
"If the architecture could not be determined, then the string C<unknown> is "
|
|
"returned."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3053 ../fish/guestfish-actions.pod:3172 ../fish/guestfish-actions.pod:3251 ../fish/guestfish-actions.pod:3263 ../fish/guestfish-actions.pod:3347 ../fish/guestfish-actions.pod:3409 ../fish/guestfish-actions.pod:3430 ../fish/guestfish-actions.pod:3444 ../fish/guestfish-actions.pod:3484 ../fish/guestfish-actions.pod:3532 ../fish/guestfish-actions.pod:3545 ../fish/guestfish-actions.pod:3558 ../fish/guestfish-actions.pod:3568 ../fish/guestfish-actions.pod:3578 ../fish/guestfish-actions.pod:3590 ../fish/guestfish-actions.pod:3686 ../fish/guestfish-actions.pod:3795 ../fish/guestfish-actions.pod:3829 ../src/guestfs-actions.pod:4885 ../src/guestfs-actions.pod:5011 ../src/guestfs-actions.pod:5115 ../src/guestfs-actions.pod:5134 ../src/guestfs-actions.pod:5265 ../src/guestfs-actions.pod:5349 ../src/guestfs-actions.pod:5377 ../src/guestfs-actions.pod:5398 ../src/guestfs-actions.pod:5451 ../src/guestfs-actions.pod:5507 ../src/guestfs-actions.pod:5527 ../src/guestfs-actions.pod:5547 ../src/guestfs-actions.pod:5564 ../src/guestfs-actions.pod:5580 ../src/guestfs-actions.pod:5598 ../src/guestfs-actions.pod:5707 ../src/guestfs-actions.pod:5817 ../src/guestfs-actions.pod:5858
|
|
msgid "Please read L<guestfs(3)/INSPECTION> for more details."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3055
|
|
msgid "inspect-get-distro"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3057
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-get-distro root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3059 ../src/guestfs-actions.pod:4898
|
|
msgid "This returns the distro (distribution) of the inspected operating system."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4901
|
|
msgid "Currently defined distros are:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3066 ../src/guestfs-actions.pod:4905
|
|
msgid "\"archlinux\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4907
|
|
msgid "Arch Linux."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3070 ../src/guestfs-actions.pod:4909
|
|
msgid "\"buildroot\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3072 ../src/guestfs-actions.pod:4911
|
|
msgid "Buildroot-derived distro, but not one we specifically recognize."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3074 ../src/guestfs-actions.pod:4913
|
|
msgid "\"centos\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3076 ../src/guestfs-actions.pod:4915
|
|
msgid "CentOS."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3078 ../src/guestfs-actions.pod:4917
|
|
msgid "\"cirros\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4919
|
|
msgid "Cirros."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3082 ../src/guestfs-actions.pod:4921
|
|
msgid "\"debian\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3084 ../src/guestfs-actions.pod:4923
|
|
msgid "Debian."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4925
|
|
msgid "\"fedora\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3088 ../src/guestfs-actions.pod:4927
|
|
msgid "Fedora."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3090 ../src/guestfs-actions.pod:4929
|
|
msgid "\"freedos\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3092 ../src/guestfs-actions.pod:4931
|
|
msgid "FreeDOS."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3094 ../src/guestfs-actions.pod:4933
|
|
msgid "\"gentoo\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3096 ../src/guestfs-actions.pod:4935
|
|
msgid "Gentoo."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4937
|
|
msgid "\"linuxmint\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3100 ../src/guestfs-actions.pod:4939
|
|
msgid "Linux Mint."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3102 ../src/guestfs-actions.pod:4941
|
|
msgid "\"mageia\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3104 ../src/guestfs-actions.pod:4943
|
|
msgid "Mageia."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3106 ../src/guestfs-actions.pod:4945
|
|
msgid "\"mandriva\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3108 ../src/guestfs-actions.pod:4947
|
|
msgid "Mandriva."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4949
|
|
msgid "\"meego\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3112 ../src/guestfs-actions.pod:4951
|
|
msgid "MeeGo."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3114 ../fish/guestfish-actions.pod:3511 ../src/guestfs-actions.pod:4953 ../src/guestfs-actions.pod:5486
|
|
msgid "\"openbsd\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3116 ../fish/guestfish-actions.pod:3513 ../src/guestfs-actions.pod:4955 ../src/guestfs-actions.pod:5488
|
|
msgid "OpenBSD."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3118 ../src/guestfs-actions.pod:4957
|
|
msgid "\"opensuse\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4959
|
|
msgid "OpenSUSE."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4961
|
|
msgid "\"pardus\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4963
|
|
msgid "Pardus."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3126 ../src/guestfs-actions.pod:4965
|
|
msgid "\"redhat-based\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3128 ../src/guestfs-actions.pod:4967
|
|
msgid "Some Red Hat-derived distro."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3130 ../src/guestfs-actions.pod:4969
|
|
msgid "\"rhel\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3132 ../src/guestfs-actions.pod:4971
|
|
msgid "Red Hat Enterprise Linux."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4973
|
|
msgid "\"scientificlinux\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3136 ../src/guestfs-actions.pod:4975
|
|
msgid "Scientific Linux."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4977
|
|
msgid "\"slackware\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3140 ../src/guestfs-actions.pod:4979
|
|
msgid "Slackware."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3142 ../src/guestfs-actions.pod:4981
|
|
msgid "\"sles\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3144 ../src/guestfs-actions.pod:4983
|
|
msgid "SuSE Linux Enterprise Server or Desktop."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3146 ../src/guestfs-actions.pod:4985
|
|
msgid "\"suse-based\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3148 ../src/guestfs-actions.pod:4987
|
|
msgid "Some openSuSE-derived distro."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3150 ../src/guestfs-actions.pod:4989
|
|
msgid "\"ttylinux\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3152 ../src/guestfs-actions.pod:4991
|
|
msgid "ttylinux."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3154 ../src/guestfs-actions.pod:4993
|
|
msgid "\"ubuntu\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3156 ../src/guestfs-actions.pod:4995
|
|
msgid "Ubuntu."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3158 ../fish/guestfish-actions.pod:3242 ../fish/guestfish-actions.pod:3523 ../src/guestfs-actions.pod:4997 ../src/guestfs-actions.pod:5106 ../src/guestfs-actions.pod:5498
|
|
msgid "\"unknown\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3160 ../src/guestfs-actions.pod:4999
|
|
msgid "The distro could not be determined."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3162 ../fish/guestfish-actions.pod:3499 ../src/guestfs-actions.pod:5001 ../src/guestfs-actions.pod:5474
|
|
msgid "\"windows\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3164 ../src/guestfs-actions.pod:5003
|
|
msgid ""
|
|
"Windows does not have distributions. This string is returned if the OS type "
|
|
"is Windows."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3169 ../fish/guestfish-actions.pod:3248 ../fish/guestfish-actions.pod:3529 ../src/guestfs-actions.pod:5008 ../src/guestfs-actions.pod:5112 ../src/guestfs-actions.pod:5504
|
|
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:3174
|
|
msgid "inspect-get-drive-mappings"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3176
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-get-drive-mappings root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:5024
|
|
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 "
|
|
"Windows Registry to find out how disks/partitions are mapped to drive "
|
|
"letters, and returns a hash table as in the example below:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3184 ../src/guestfs-actions.pod:5030
|
|
#, no-wrap
|
|
msgid ""
|
|
" C => /dev/vda2\n"
|
|
" E => /dev/vdb1\n"
|
|
" F => /dev/vdc1\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3188 ../src/guestfs-actions.pod:5034
|
|
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 "
|
|
"character."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3192 ../src/guestfs-actions.pod:5038
|
|
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 "
|
|
"longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
|
|
"C<h1> etc."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3197 ../src/guestfs-actions.pod:5043
|
|
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:3200 ../src/guestfs-actions.pod:5046
|
|
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:3203
|
|
msgid ""
|
|
"Please read L<guestfs(3)/INSPECTION> for more details. See also "
|
|
"L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3207
|
|
msgid "inspect-get-filesystems"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3209
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-get-filesystems root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3211 ../src/guestfs-actions.pod:5067
|
|
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 "
|
|
"filesystems, and non-mounted devices like swap partitions."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:5072
|
|
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:3219
|
|
msgid ""
|
|
"Please read L<guestfs(3)/INSPECTION> for more details. See also "
|
|
"L</inspect-get-mountpoints>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3222
|
|
msgid "inspect-get-format"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3224
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-get-format root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3226 ../src/guestfs-actions.pod:5090
|
|
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:3229 ../src/guestfs-actions.pod:5093
|
|
msgid "Currently defined formats are:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3233 ../src/guestfs-actions.pod:5097
|
|
msgid "\"installed\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3235 ../src/guestfs-actions.pod:5099
|
|
msgid "This is an installed operating system."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3237 ../src/guestfs-actions.pod:5101
|
|
msgid "\"installer\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3239 ../src/guestfs-actions.pod:5103
|
|
msgid ""
|
|
"The disk image being inspected is not an installed operating system, but a "
|
|
"I<bootable> install disk, live CD, or similar."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3244 ../src/guestfs-actions.pod:5108
|
|
msgid "The format of this disk image is not known."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3253
|
|
msgid "inspect-get-hostname"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3255
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-get-hostname root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3257 ../src/guestfs-actions.pod:5128
|
|
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:3260 ../src/guestfs-actions.pod:5131
|
|
msgid ""
|
|
"If the hostname could not be determined, then the string C<unknown> is "
|
|
"returned."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3265
|
|
msgid "inspect-get-icon"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3267
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3269 ../src/guestfs-actions.pod:5157
|
|
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 "
|
|
"to PNG if necessary)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3273 ../src/guestfs-actions.pod:5161
|
|
msgid ""
|
|
"If it was not possible to get an icon this function returns a zero-length "
|
|
"(non-NULL) buffer. I<Callers must check for this case>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:5164
|
|
msgid ""
|
|
"Libguestfs will start by looking for a file called C</etc/favicon.png> or "
|
|
"C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
|
|
"this file will be returned. You can disable favicons by passing the "
|
|
"optional C<favicon> boolean as false (default is true)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3282 ../src/guestfs-actions.pod:5170
|
|
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:3285 ../src/guestfs-actions.pod:5173
|
|
msgid ""
|
|
"If the optional C<highquality> boolean is true then only high quality icons "
|
|
"are returned, which means only icons of high resolution with an alpha "
|
|
"channel. The default (false) is to return any icon we can, even if it is of "
|
|
"substandard quality."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3296 ../src/guestfs-actions.pod:5184
|
|
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 "
|
|
"filesystem during the call."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3302 ../src/guestfs-actions.pod:5190
|
|
msgid ""
|
|
"B<Security:> The icon data comes from the untrusted guest, and should be "
|
|
"treated with caution. PNG files have been known to contain exploits. "
|
|
"Ensure that libpng (or other relevant libraries) are fully up to date before "
|
|
"trying to process or display the icon."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3310 ../src/guestfs-actions.pod:5198
|
|
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 "
|
|
"application must scale the icon to the required size."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3317 ../src/guestfs-actions.pod:5205
|
|
msgid ""
|
|
"Extracting icons from Windows guests requires the external C<wrestool> "
|
|
"program from the C<icoutils> package, and several programs (C<bmptopnm>, "
|
|
"C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
|
|
"installed separately."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3324 ../src/guestfs-actions.pod:5212
|
|
msgid ""
|
|
"Operating system icons are usually trademarks. Seek legal advice before "
|
|
"using trademarks in applications."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3331
|
|
msgid "inspect-get-major-version"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3333
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-get-major-version root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3335 ../src/guestfs-actions.pod:5253
|
|
msgid "This returns the major version number of the inspected operating system."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3338 ../src/guestfs-actions.pod:5256
|
|
msgid ""
|
|
"Windows uses a consistent versioning scheme which is I<not> reflected in the "
|
|
"popular public names used by the operating system. Notably the operating "
|
|
"system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
|
|
"1). You can find out the real versions corresponding to releases of Windows "
|
|
"by consulting Wikipedia or MSDN."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3345 ../fish/guestfish-actions.pod:3356 ../src/guestfs-actions.pod:5263 ../src/guestfs-actions.pod:5280
|
|
msgid "If the version could not be determined, then C<0> is returned."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3349
|
|
msgid "inspect-get-minor-version"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3351
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-get-minor-version root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3353 ../src/guestfs-actions.pod:5277
|
|
msgid "This returns the minor version number of the inspected operating system."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3358
|
|
msgid ""
|
|
"Please read L<guestfs(3)/INSPECTION> for more details. See also "
|
|
"L</inspect-get-major-version>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3361
|
|
msgid "inspect-get-mountpoints"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3363
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-get-mountpoints root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3365 ../src/guestfs-actions.pod:5295
|
|
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 "
|
|
"best an educated guess made by reading configuration files such as "
|
|
"C</etc/fstab>. I<In particular note> that this may return filesystems which "
|
|
"are non-existent or not mountable and callers should be prepared to handle "
|
|
"or ignore failures if they try to mount them."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3374 ../src/guestfs-actions.pod:5304
|
|
msgid ""
|
|
"Each element in the returned hashtable has a key which is the path of the "
|
|
"mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
|
|
"mounted there (eg. C</dev/sda1>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3379 ../src/guestfs-actions.pod:5309
|
|
msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3382
|
|
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 "
|
|
"information about the mapping of drive letters to partitions, see "
|
|
"L</inspect-get-drive-mappings>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3388
|
|
msgid ""
|
|
"Please read L<guestfs(3)/INSPECTION> for more details. See also "
|
|
"L</inspect-get-filesystems>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3391
|
|
msgid "inspect-get-package-format"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3393
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-get-package-format root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3395
|
|
msgid ""
|
|
"This function and L</inspect-get-package-management> return the package "
|
|
"format and package management tool used by the inspected operating system. "
|
|
"For example for Fedora these functions would return C<rpm> (package format) "
|
|
"and C<yum> (package management)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3401 ../src/guestfs-actions.pod:5341
|
|
msgid ""
|
|
"This returns the string C<unknown> if we could not determine the package "
|
|
"format I<or> if the operating system does not have a real packaging system "
|
|
"(eg. Windows)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5345
|
|
msgid ""
|
|
"Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
|
|
"C<pkgsrc>. Future versions of libguestfs may return other strings."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3411
|
|
msgid "inspect-get-package-management"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3413
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-get-package-management root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3415
|
|
msgid ""
|
|
"L</inspect-get-package-format> and this function return the package format "
|
|
"and package management tool used by the inspected operating system. For "
|
|
"example for Fedora these functions would return C<rpm> (package format) and "
|
|
"C<yum> (package management)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3421 ../src/guestfs-actions.pod:5368
|
|
msgid ""
|
|
"This returns the string C<unknown> if we could not determine the package "
|
|
"management tool I<or> if the operating system does not have a real packaging "
|
|
"system (eg. Windows)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3425 ../src/guestfs-actions.pod:5372
|
|
msgid ""
|
|
"Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
|
|
"derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>. Future "
|
|
"versions of libguestfs may return other strings."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3432
|
|
msgid "inspect-get-product-name"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3434
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-get-product-name root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5390
|
|
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 "
|
|
"user, but should not be parsed by programs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3441 ../src/guestfs-actions.pod:5395
|
|
msgid ""
|
|
"If the product name could not be determined, then the string C<unknown> is "
|
|
"returned."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3446
|
|
msgid "inspect-get-product-variant"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3448
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-get-product-variant root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3450 ../src/guestfs-actions.pod:5411
|
|
msgid "This returns the product variant of the inspected operating system."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3453 ../src/guestfs-actions.pod:5414
|
|
msgid ""
|
|
"For Windows guests, this returns the contents of the Registry key "
|
|
"C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
|
|
"which is usually a string such as C<Client> or C<Server> (other values are "
|
|
"possible). This can be used to distinguish consumer and enterprise versions "
|
|
"of Windows that have the same version number (for example, Windows 7 and "
|
|
"Windows 2008 Server are both version 6.1, but the former is C<Client> and "
|
|
"the latter is C<Server>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3462 ../src/guestfs-actions.pod:5423
|
|
msgid ""
|
|
"For enterprise Linux guests, in future we intend this to return the product "
|
|
"variant such as C<Desktop>, C<Server> and so on. But this is not "
|
|
"implemented at present."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3466 ../src/guestfs-actions.pod:5427
|
|
msgid ""
|
|
"If the product variant could not be determined, then the string C<unknown> "
|
|
"is returned."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3469
|
|
msgid ""
|
|
"Please read L<guestfs(3)/INSPECTION> for more details. See also "
|
|
"L</inspect-get-product-name>, L</inspect-get-major-version>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3473
|
|
msgid "inspect-get-roots"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3475
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-get-roots\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3477
|
|
msgid ""
|
|
"This function is a convenient way to get the list of root devices, as "
|
|
"returned from a previous call to L</inspect-os>, but without redoing the "
|
|
"whole inspection process."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3481
|
|
msgid ""
|
|
"This returns an empty list if either no root devices were found or the "
|
|
"caller has not called L</inspect-os>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3486
|
|
msgid "inspect-get-type"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3488
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-get-type root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3490 ../src/guestfs-actions.pod:5465
|
|
msgid ""
|
|
"This returns the type of the inspected operating system. Currently defined "
|
|
"types are:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3495 ../src/guestfs-actions.pod:5470
|
|
msgid "\"linux\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3497 ../src/guestfs-actions.pod:5472
|
|
msgid "Any Linux-based operating system."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3501 ../src/guestfs-actions.pod:5476
|
|
msgid "Any Microsoft Windows operating system."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3503 ../src/guestfs-actions.pod:5478
|
|
msgid "\"freebsd\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3505 ../src/guestfs-actions.pod:5480
|
|
msgid "FreeBSD."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3507 ../src/guestfs-actions.pod:5482
|
|
msgid "\"netbsd\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3509 ../src/guestfs-actions.pod:5484
|
|
msgid "NetBSD."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3515 ../src/guestfs-actions.pod:5490
|
|
msgid "\"hurd\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3517 ../src/guestfs-actions.pod:5492
|
|
msgid "GNU/Hurd."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3519 ../src/guestfs-actions.pod:5494
|
|
msgid "\"dos\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3521 ../src/guestfs-actions.pod:5496
|
|
msgid "MS-DOS, FreeDOS and others."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3525 ../src/guestfs-actions.pod:5500
|
|
msgid "The operating system type could not be determined."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3534
|
|
msgid "inspect-get-windows-current-control-set"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3536
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-get-windows-current-control-set root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3538 ../src/guestfs-actions.pod:5520
|
|
msgid ""
|
|
"This returns the Windows CurrentControlSet of the inspected guest. The "
|
|
"CurrentControlSet is a registry key name such as C<ControlSet001>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3541 ../src/guestfs-actions.pod:5523
|
|
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:3547
|
|
msgid "inspect-get-windows-systemroot"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3549
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-get-windows-systemroot root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3551 ../src/guestfs-actions.pod:5540
|
|
msgid ""
|
|
"This returns the Windows systemroot of the inspected guest. The systemroot "
|
|
"is a directory path such as C</WINDOWS>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5543
|
|
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:3560
|
|
msgid "inspect-is-live"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3562
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-is-live root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3564
|
|
msgid ""
|
|
"If L</inspect-get-format> returns C<installer> (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:3570
|
|
msgid "inspect-is-multipart"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3572
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-is-multipart root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3574
|
|
msgid ""
|
|
"If L</inspect-get-format> returns C<installer> (this is an install disk), "
|
|
"then this returns true if the disk is part of a set."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3580
|
|
msgid "inspect-is-netinst"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3582
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-is-netinst root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3584
|
|
msgid ""
|
|
"If L</inspect-get-format> returns C<installer> (this is an install disk), "
|
|
"then this returns true if the disk is a network installer, ie. not a "
|
|
"self-contained install CD but one which is likely to require network access "
|
|
"to complete the install."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3592
|
|
msgid "inspect-list-applications"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3594
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-list-applications root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3596 ../fish/guestfish-actions.pod:3699 ../src/guestfs-actions.pod:5617 ../src/guestfs-actions.pod:5721
|
|
msgid "Return the list of applications installed in the operating system."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3598 ../fish/guestfish-actions.pod:3701
|
|
msgid ""
|
|
"I<Note:> This call works differently from other parts of the inspection "
|
|
"API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
|
|
"then mount up the disks, before calling this. Listing applications is a "
|
|
"significantly more difficult operation which requires access to the full "
|
|
"filesystem. Also note that unlike the other L</inspect-get-*> calls which "
|
|
"are just returning data cached in the libguestfs handle, this call actually "
|
|
"reads parts of the mounted filesystems during the call."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3608 ../fish/guestfish-actions.pod:3711 ../src/guestfs-actions.pod:5629 ../src/guestfs-actions.pod:5733
|
|
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:3611 ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5632 ../src/guestfs-actions.pod:5736
|
|
msgid "The application structure contains the following fields:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3615 ../src/guestfs-actions.pod:5636
|
|
msgid "C<app_name>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3617 ../fish/guestfish-actions.pod:3720 ../src/guestfs-actions.pod:5638 ../src/guestfs-actions.pod:5742
|
|
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:3620 ../src/guestfs-actions.pod:5641
|
|
msgid "C<app_display_name>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3622 ../fish/guestfish-actions.pod:3725 ../src/guestfs-actions.pod:5643 ../src/guestfs-actions.pod:5747
|
|
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:3625 ../src/guestfs-actions.pod:5646
|
|
msgid ""
|
|
"If unavailable this is returned as an empty string C<\"\">. Callers needing "
|
|
"to display something can use C<app_name> instead."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5649
|
|
msgid "C<app_epoch>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3630 ../fish/guestfish-actions.pod:3733 ../src/guestfs-actions.pod:5651 ../src/guestfs-actions.pod:5755
|
|
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:3633 ../src/guestfs-actions.pod:5654
|
|
msgid "C<app_version>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3635 ../fish/guestfish-actions.pod:3738 ../src/guestfs-actions.pod:5656 ../src/guestfs-actions.pod:5760
|
|
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:3638 ../src/guestfs-actions.pod:5659
|
|
msgid "C<app_release>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3640 ../fish/guestfish-actions.pod:3743 ../src/guestfs-actions.pod:5661 ../src/guestfs-actions.pod:5765
|
|
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:3644 ../src/guestfs-actions.pod:5665
|
|
msgid "C<app_install_path>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3646 ../fish/guestfish-actions.pod:3755 ../src/guestfs-actions.pod:5667 ../src/guestfs-actions.pod:5777
|
|
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 "
|
|
"the guest operating system, it is not a libguestfs path."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3651 ../fish/guestfish-actions.pod:3760 ../src/guestfs-actions.pod:5672 ../src/guestfs-actions.pod:5782
|
|
msgid "If unavailable this is returned as an empty string C<\"\">."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3653 ../src/guestfs-actions.pod:5674
|
|
msgid "C<app_trans_path>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3655 ../fish/guestfish-actions.pod:3764 ../src/guestfs-actions.pod:5676 ../src/guestfs-actions.pod:5786
|
|
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:3658 ../src/guestfs-actions.pod:5679
|
|
msgid "C<app_publisher>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3660 ../fish/guestfish-actions.pod:3769 ../src/guestfs-actions.pod:5681 ../src/guestfs-actions.pod:5791
|
|
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:3664 ../src/guestfs-actions.pod:5685
|
|
msgid "C<app_url>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3666 ../fish/guestfish-actions.pod:3775 ../src/guestfs-actions.pod:5687 ../src/guestfs-actions.pod:5797
|
|
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:3669 ../src/guestfs-actions.pod:5690
|
|
msgid "C<app_source_package>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3671 ../fish/guestfish-actions.pod:3780 ../src/guestfs-actions.pod:5692 ../src/guestfs-actions.pod:5802
|
|
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:3674 ../src/guestfs-actions.pod:5695
|
|
msgid "C<app_summary>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3676 ../fish/guestfish-actions.pod:3785 ../src/guestfs-actions.pod:5697 ../src/guestfs-actions.pod:5807
|
|
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:3679 ../src/guestfs-actions.pod:5700
|
|
msgid "C<app_description>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3681 ../fish/guestfish-actions.pod:3790 ../src/guestfs-actions.pod:5702 ../src/guestfs-actions.pod:5812
|
|
msgid ""
|
|
"A longer description of the application or package. If unavailable this is "
|
|
"returned as an empty string C<\"\">."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3688
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the "
|
|
"L</inspect-list-applications2> call instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3695
|
|
msgid "inspect-list-applications2"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3697
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-list-applications2 root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3718 ../src/guestfs-actions.pod:5740
|
|
msgid "C<app2_name>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3723 ../src/guestfs-actions.pod:5745
|
|
msgid "C<app2_display_name>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3728 ../src/guestfs-actions.pod:5750
|
|
msgid ""
|
|
"If unavailable this is returned as an empty string C<\"\">. Callers needing "
|
|
"to display something can use C<app2_name> instead."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3731 ../src/guestfs-actions.pod:5753
|
|
msgid "C<app2_epoch>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3736 ../src/guestfs-actions.pod:5758
|
|
msgid "C<app2_version>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5763
|
|
msgid "C<app2_release>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3747 ../src/guestfs-actions.pod:5769
|
|
msgid "C<app2_arch>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3749 ../src/guestfs-actions.pod:5771
|
|
msgid ""
|
|
"The architecture 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:3753 ../src/guestfs-actions.pod:5775
|
|
msgid "C<app2_install_path>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5784
|
|
msgid "C<app2_trans_path>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5789
|
|
msgid "C<app2_publisher>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3773 ../src/guestfs-actions.pod:5795
|
|
msgid "C<app2_url>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3778 ../src/guestfs-actions.pod:5800
|
|
msgid "C<app2_source_package>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3783 ../src/guestfs-actions.pod:5805
|
|
msgid "C<app2_summary>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5810
|
|
msgid "C<app2_description>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3797
|
|
msgid "inspect-os"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3799
|
|
#, no-wrap
|
|
msgid ""
|
|
" inspect-os\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3801 ../src/guestfs-actions.pod:5830
|
|
msgid ""
|
|
"This function uses other libguestfs functions and certain heuristics to "
|
|
"inspect the disk(s) (usually disks belonging to a virtual machine), looking "
|
|
"for operating systems."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3805 ../src/guestfs-actions.pod:5834
|
|
msgid "The list returned is empty if no operating systems were found."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3807 ../src/guestfs-actions.pod:5836
|
|
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. "
|
|
"It is also possible for this function to return a list containing more than "
|
|
"one element, indicating a dual-boot or multi-boot virtual machine, with each "
|
|
"element being the root filesystem of one of the operating systems."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3814
|
|
msgid ""
|
|
"You can pass the root string(s) returned to other L</inspect-get-*> "
|
|
"functions in order to query further information about each operating system, "
|
|
"such as the name and version."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3819
|
|
msgid ""
|
|
"This function uses other libguestfs features such as L</mount-ro> and "
|
|
"L</umount-all> in order to mount and unmount filesystems and look at the "
|
|
"contents. This should be called with no disks currently mounted. The "
|
|
"function may also use Augeas, so any existing Augeas handle will be closed."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3825 ../src/guestfs-actions.pod:5854
|
|
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:3831 ../fish/guestfish-actions.pod:4276 ../fish/guestfish-actions.pod:4374
|
|
msgid "See also L</list-filesystems>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3833
|
|
msgid "is-blockdev"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3835
|
|
msgid "is-blockdev-opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3837
|
|
#, no-wrap
|
|
msgid ""
|
|
" is-blockdev path [followsymlinks:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3839 ../src/guestfs-actions.pod:5895
|
|
msgid ""
|
|
"This returns C<true> if and only if there is a block device with the given "
|
|
"C<path> name."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:5898
|
|
msgid ""
|
|
"If the optional flag C<followsymlinks> is true, then a symlink (or chain of "
|
|
"symlinks) that ends with a block device also causes the function to return "
|
|
"true."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3846 ../fish/guestfish-actions.pod:3863 ../fish/guestfish-actions.pod:3890 ../fish/guestfish-actions.pod:3907 ../fish/guestfish-actions.pod:3925 ../fish/guestfish-actions.pod:3949 ../fish/guestfish-actions.pod:3960
|
|
msgid "See also L</stat>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3850
|
|
msgid "is-chardev"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3852
|
|
msgid "is-chardev-opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3854
|
|
#, no-wrap
|
|
msgid ""
|
|
" is-chardev path [followsymlinks:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:5971
|
|
msgid ""
|
|
"This returns C<true> if and only if there is a character device with the "
|
|
"given C<path> name."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3859 ../src/guestfs-actions.pod:5974
|
|
msgid ""
|
|
"If the optional flag C<followsymlinks> is true, then a symlink (or chain of "
|
|
"symlinks) that ends with a chardev also causes the function to return true."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3867
|
|
msgid "is-config"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3869
|
|
#, no-wrap
|
|
msgid ""
|
|
" is-config\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3871 ../src/guestfs-actions.pod:6011
|
|
msgid ""
|
|
"This returns true iff this handle is being configured (in the C<CONFIG> "
|
|
"state)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3874 ../src/guestfs-actions.pod:4020 ../src/guestfs-actions.pod:5938 ../src/guestfs-actions.pod:6014 ../src/guestfs-actions.pod:6216 ../src/guestfs-actions.pod:6243
|
|
msgid "For more information on states, see L<guestfs(3)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3876
|
|
msgid "is-dir"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3878
|
|
msgid "is-dir-opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3880
|
|
#, no-wrap
|
|
msgid ""
|
|
" is-dir path [followsymlinks:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3882 ../src/guestfs-actions.pod:6047
|
|
msgid ""
|
|
"This returns C<true> if and only if there is a directory with the given "
|
|
"C<path> name. Note that it returns false for other objects like files."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3886 ../src/guestfs-actions.pod:6051
|
|
msgid ""
|
|
"If the optional flag C<followsymlinks> is true, then a symlink (or chain of "
|
|
"symlinks) that ends with a directory also causes the function to return "
|
|
"true."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3894
|
|
msgid "is-fifo"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3896
|
|
msgid "is-fifo-opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3898
|
|
#, no-wrap
|
|
msgid ""
|
|
" is-fifo path [followsymlinks:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3900 ../src/guestfs-actions.pod:6110
|
|
msgid ""
|
|
"This returns C<true> if and only if there is a FIFO (named pipe) with the "
|
|
"given C<path> name."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3903 ../src/guestfs-actions.pod:6113
|
|
msgid ""
|
|
"If the optional flag C<followsymlinks> is true, then a symlink (or chain of "
|
|
"symlinks) that ends with a FIFO also causes the function to return true."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3911
|
|
msgid "is-file"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3913
|
|
msgid "is-file-opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3915
|
|
#, no-wrap
|
|
msgid ""
|
|
" is-file path [followsymlinks:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:6172
|
|
msgid ""
|
|
"This returns C<true> if and only if there is a regular file with the given "
|
|
"C<path> name. Note that it returns false for other objects like "
|
|
"directories."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3921 ../src/guestfs-actions.pod:6176
|
|
msgid ""
|
|
"If the optional flag C<followsymlinks> is true, then a symlink (or chain of "
|
|
"symlinks) that ends with a file also causes the function to return true."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3929
|
|
msgid "is-lv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3931
|
|
#, no-wrap
|
|
msgid ""
|
|
" is-lv device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3933 ../src/guestfs-actions.pod:6228
|
|
msgid ""
|
|
"This command tests whether C<device> is a logical volume, and returns true "
|
|
"iff this is the case."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3936
|
|
msgid "is-socket"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3938
|
|
msgid "is-socket-opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3940
|
|
#, no-wrap
|
|
msgid ""
|
|
" is-socket path [followsymlinks:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6276
|
|
msgid ""
|
|
"This returns C<true> if and only if there is a Unix domain socket with the "
|
|
"given C<path> name."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3945 ../src/guestfs-actions.pod:6279
|
|
msgid ""
|
|
"If the optional flag C<followsymlinks> is true, then a symlink (or chain of "
|
|
"symlinks) that ends with a socket also causes the function to return true."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3953
|
|
msgid "is-symlink"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3955
|
|
#, no-wrap
|
|
msgid ""
|
|
" is-symlink path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3957 ../src/guestfs-actions.pod:6317
|
|
msgid ""
|
|
"This returns C<true> if and only if there is a symbolic link with the given "
|
|
"C<path> name."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3962
|
|
msgid "is-whole-device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3964
|
|
#, no-wrap
|
|
msgid ""
|
|
" is-whole-device device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3966 ../src/guestfs-actions.pod:6332
|
|
msgid ""
|
|
"This returns C<true> if and only if C<device> refers to a whole block "
|
|
"device. That is, not a partition or a logical device."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3969
|
|
msgid "is-zero"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3971
|
|
#, no-wrap
|
|
msgid ""
|
|
" is-zero path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3973 ../src/guestfs-actions.pod:6345
|
|
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:3976
|
|
msgid "is-zero-device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3978
|
|
#, no-wrap
|
|
msgid ""
|
|
" is-zero-device device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3980 ../src/guestfs-actions.pod:6358
|
|
msgid "This returns true iff the device exists and contains all zero bytes."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3982 ../src/guestfs-actions.pod:6360
|
|
msgid "Note that for large devices this can take a long time to run."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3984
|
|
msgid "isoinfo"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3986
|
|
#, no-wrap
|
|
msgid ""
|
|
" isoinfo isofile\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3988
|
|
msgid ""
|
|
"This is the same as L</isoinfo-device> except that it works for an ISO file "
|
|
"located inside some other mounted filesystem. Note that in the common case "
|
|
"where you have added an ISO file as a libguestfs device, you would I<not> "
|
|
"call this. Instead you would call L</isoinfo-device>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:3994
|
|
msgid "isoinfo-device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:3996
|
|
#, no-wrap
|
|
msgid ""
|
|
" isoinfo-device device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:3998 ../src/guestfs-actions.pod:6390
|
|
msgid ""
|
|
"C<device> is an ISO device. This returns a struct of information read from "
|
|
"the primary volume descriptor (the ISO equivalent of the superblock) of the "
|
|
"device."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4002 ../src/guestfs-actions.pod:6394
|
|
msgid ""
|
|
"Usually it is more efficient to use the L<isoinfo(1)> command with the I<-d> "
|
|
"option on the host to analyze ISO files, instead of going through "
|
|
"libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4006 ../src/guestfs-actions.pod:6398
|
|
msgid ""
|
|
"For information on the primary volume descriptor fields, see "
|
|
"L<http://wiki.osdev.org/ISO_9660#The_Primary_Volume_Descriptor>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4009
|
|
msgid "journal-close"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4011
|
|
#, no-wrap
|
|
msgid ""
|
|
" journal-close\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4013 ../src/guestfs-actions.pod:6412
|
|
msgid "Close the journal handle."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4015
|
|
msgid "journal-get"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4017
|
|
#, no-wrap
|
|
msgid ""
|
|
" journal-get\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4019 ../src/guestfs-actions.pod:6423
|
|
msgid ""
|
|
"Read the current journal entry. This returns all the fields in the journal "
|
|
"as a set of C<(attrname, attrval)> pairs. The C<attrname> is the field name "
|
|
"(a string)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6427
|
|
msgid ""
|
|
"The C<attrval> is the field value (a binary blob, often but not always a "
|
|
"string). Please note that C<attrval> is a byte array, I<not> a "
|
|
"\\0-terminated C string."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4027
|
|
msgid ""
|
|
"The length of data may be truncated to the data threshold (see: "
|
|
"L</journal-set-data-threshold>, L</journal-get-data-threshold>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4031 ../src/guestfs-actions.pod:6435
|
|
msgid ""
|
|
"If you set the data threshold to unlimited (C<0>) then this call can read a "
|
|
"journal entry of any size, ie. it is not limited by the libguestfs protocol."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4035
|
|
msgid "journal-get-data-threshold"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4037
|
|
#, no-wrap
|
|
msgid ""
|
|
" journal-get-data-threshold\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6450
|
|
msgid ""
|
|
"Get the current data threshold for reading journal entries. This is a hint "
|
|
"to the journal that it may truncate data fields to this size when reading "
|
|
"them (note also that it may not truncate them). If this returns C<0>, then "
|
|
"the threshold is unlimited."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4044
|
|
msgid "See also L</journal-set-data-threshold>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4046
|
|
msgid "journal-next"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4048
|
|
#, no-wrap
|
|
msgid ""
|
|
" journal-next\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4050 ../src/guestfs-actions.pod:6466
|
|
msgid ""
|
|
"Move to the next journal entry. You have to call this at least once after "
|
|
"opening the handle before you are able to read data."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4054
|
|
msgid ""
|
|
"The returned boolean tells you if there are any more journal records to "
|
|
"read. C<true> means you can read the next record (eg. using "
|
|
"L</journal-get-data>), and C<false> means you have reached the end of the "
|
|
"journal."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4059
|
|
msgid "journal-open"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4061
|
|
#, no-wrap
|
|
msgid ""
|
|
" journal-open directory\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4063 ../src/guestfs-actions.pod:6485
|
|
msgid ""
|
|
"Open the systemd journal located in C<directory>. Any previously opened "
|
|
"journal handle is closed."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4066
|
|
msgid ""
|
|
"The contents of the journal can be read using L</journal-next> and "
|
|
"L</journal-get>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4069
|
|
msgid ""
|
|
"After you have finished using the journal, you should close the handle by "
|
|
"calling L</journal-close>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4072
|
|
msgid "journal-set-data-threshold"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4074
|
|
#, no-wrap
|
|
msgid ""
|
|
" journal-set-data-threshold threshold\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6504
|
|
msgid ""
|
|
"Set the data threshold for reading journal entries. This is a hint to the "
|
|
"journal that it may truncate data fields to this size when reading them "
|
|
"(note also that it may not truncate them). If you set this to C<0>, then "
|
|
"the threshold is unlimited."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4081
|
|
msgid "See also L</journal-get-data-threshold>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4083
|
|
msgid "journal-skip"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4085
|
|
#, no-wrap
|
|
msgid ""
|
|
" journal-skip skip\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4087 ../src/guestfs-actions.pod:6521
|
|
msgid ""
|
|
"Skip forwards (C<skip E<ge> 0>) or backwards (C<skip E<lt> 0>) in the "
|
|
"journal."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6524
|
|
msgid ""
|
|
"The number of entries actually skipped is returned (note S<C<rskip E<ge> "
|
|
"0>>). If this is not the same as the absolute value of the skip parameter "
|
|
"(C<|skip|>) you passed in then it means you have reached the end or the "
|
|
"start of the journal."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4095
|
|
msgid "kill-subprocess"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4097
|
|
#, no-wrap
|
|
msgid ""
|
|
" kill-subprocess\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4099 ../src/guestfs-actions.pod:6545
|
|
msgid "This kills the hypervisor."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4101
|
|
msgid "Do not call this. See: L</shutdown> instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4103
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</shutdown> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4110
|
|
msgid "launch"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4112
|
|
msgid "run"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4114
|
|
#, no-wrap
|
|
msgid ""
|
|
" launch\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4116 ../src/guestfs-actions.pod:6558
|
|
msgid ""
|
|
"You should call this after configuring the handle (eg. adding drives) but "
|
|
"before performing any actions."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4119
|
|
msgid ""
|
|
"Do not call L</launch> twice on the same handle. Although it will not give "
|
|
"an error (for historical reasons), the precise behaviour when you do this is "
|
|
"not well defined. Handles are very cheap to create, so create a new one for "
|
|
"each launch."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4124
|
|
msgid "lchown"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4126
|
|
#, no-wrap
|
|
msgid ""
|
|
" lchown owner group path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4128
|
|
msgid ""
|
|
"Change the file owner to C<owner> and group to C<group>. This is like "
|
|
"L</chown> but if C<path> is a symlink then the link itself is changed, not "
|
|
"the target."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4136
|
|
msgid "ldmtool-create-all"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4138
|
|
#, no-wrap
|
|
msgid ""
|
|
" ldmtool-create-all\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4140 ../src/guestfs-actions.pod:6600
|
|
msgid ""
|
|
"This function scans all block devices looking for Windows dynamic disk "
|
|
"volumes and partitions, and creates devices for any that were found."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4144
|
|
msgid "Call L</list-ldm-volumes> and L</list-ldm-partitions> to return all devices."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4147
|
|
msgid ""
|
|
"Note that you B<don't> normally need to call this explicitly, since it is "
|
|
"done automatically at L</launch> time. However you might want to call this "
|
|
"function if you have hotplugged disks or have just created a Windows dynamic "
|
|
"disk."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4152
|
|
msgid "ldmtool-diskgroup-disks"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4154
|
|
#, no-wrap
|
|
msgid ""
|
|
" ldmtool-diskgroup-disks diskgroup\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4156
|
|
msgid ""
|
|
"Return the disks in a Windows dynamic disk group. The C<diskgroup> "
|
|
"parameter should be the GUID of a disk group, one element from the list "
|
|
"returned by L</ldmtool-scan>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4160
|
|
msgid "ldmtool-diskgroup-name"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4162
|
|
#, no-wrap
|
|
msgid ""
|
|
" ldmtool-diskgroup-name diskgroup\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4164
|
|
msgid ""
|
|
"Return the name of a Windows dynamic disk group. The C<diskgroup> parameter "
|
|
"should be the GUID of a disk group, one element from the list returned by "
|
|
"L</ldmtool-scan>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4168
|
|
msgid "ldmtool-diskgroup-volumes"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4170
|
|
#, no-wrap
|
|
msgid ""
|
|
" ldmtool-diskgroup-volumes diskgroup\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4172
|
|
msgid ""
|
|
"Return the volumes in a Windows dynamic disk group. The C<diskgroup> "
|
|
"parameter should be the GUID of a disk group, one element from the list "
|
|
"returned by L</ldmtool-scan>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4176
|
|
msgid "ldmtool-remove-all"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4178
|
|
#, no-wrap
|
|
msgid ""
|
|
" ldmtool-remove-all\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4180
|
|
msgid ""
|
|
"This is essentially the opposite of L</ldmtool-create-all>. It removes the "
|
|
"device mapper mappings for all Windows dynamic disk volumes"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4184
|
|
msgid "ldmtool-scan"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4186
|
|
#, no-wrap
|
|
msgid ""
|
|
" ldmtool-scan\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4188 ../fish/guestfish-actions.pod:4199
|
|
msgid ""
|
|
"This function scans for Windows dynamic disks. It returns a list of "
|
|
"identifiers (GUIDs) for all disk groups that were found. These identifiers "
|
|
"can be passed to other L</ldmtool-*> functions."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4192
|
|
msgid ""
|
|
"This function scans all block devices. To scan a subset of block devices, "
|
|
"call L</ldmtool-scan-devices> instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4195
|
|
msgid "ldmtool-scan-devices"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4197
|
|
#, no-wrap
|
|
msgid ""
|
|
" ldmtool-scan-devices 'devices ...'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6704
|
|
msgid ""
|
|
"The parameter C<devices> is a list of block devices which are scanned. If "
|
|
"this list is empty, all block devices are scanned."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4206
|
|
msgid "ldmtool-volume-hint"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4208
|
|
#, no-wrap
|
|
msgid ""
|
|
" ldmtool-volume-hint diskgroup volume\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4210 ../src/guestfs-actions.pod:6720
|
|
msgid ""
|
|
"Return the hint field of the volume named C<volume> in the disk group with "
|
|
"GUID C<diskgroup>. This may not be defined, in which case the empty string "
|
|
"is returned. The hint field is often, though not always, the name of a "
|
|
"Windows drive, eg. C<E:>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4215
|
|
msgid "ldmtool-volume-partitions"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4217
|
|
#, no-wrap
|
|
msgid ""
|
|
" ldmtool-volume-partitions diskgroup volume\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4219 ../src/guestfs-actions.pod:6737
|
|
msgid ""
|
|
"Return the list of partitions in the volume named C<volume> in the disk "
|
|
"group with GUID C<diskgroup>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4222
|
|
msgid "ldmtool-volume-type"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4224
|
|
#, no-wrap
|
|
msgid ""
|
|
" ldmtool-volume-type diskgroup volume\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4226 ../src/guestfs-actions.pod:6753
|
|
msgid ""
|
|
"Return the type of the volume named C<volume> in the disk group with GUID "
|
|
"C<diskgroup>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4229 ../src/guestfs-actions.pod:6756
|
|
msgid ""
|
|
"Possible volume types that can be returned here include: C<simple>, "
|
|
"C<spanned>, C<striped>, C<mirrored>, C<raid5>. Other types may also be "
|
|
"returned."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4233
|
|
msgid "lgetxattr"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4235
|
|
#, no-wrap
|
|
msgid ""
|
|
" lgetxattr path name\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4237 ../src/guestfs-actions.pod:6773
|
|
msgid ""
|
|
"Get a single extended attribute from file C<path> named C<name>. If C<path> "
|
|
"is a symlink, then this call returns an extended attribute from the symlink."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4251
|
|
msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4253
|
|
msgid "lgetxattrs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4255
|
|
#, no-wrap
|
|
msgid ""
|
|
" lgetxattrs path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4257
|
|
msgid ""
|
|
"This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
|
|
"it returns the extended attributes of the link itself."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4261
|
|
msgid "list-9p"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4263
|
|
#, no-wrap
|
|
msgid ""
|
|
" list-9p\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6816
|
|
msgid ""
|
|
"List all 9p filesystems attached to the guest. A list of mount tags is "
|
|
"returned."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4268
|
|
msgid "list-devices"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4270
|
|
#, no-wrap
|
|
msgid ""
|
|
" list-devices\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4272 ../src/guestfs-actions.pod:6830
|
|
msgid "List all the block devices."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4274 ../src/guestfs-actions.pod:6832
|
|
msgid "The full block device names are returned, eg. C</dev/sda>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4278
|
|
msgid "list-disk-labels"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4280
|
|
#, no-wrap
|
|
msgid ""
|
|
" list-disk-labels\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4282
|
|
msgid ""
|
|
"If you add drives using the optional C<label> parameter of "
|
|
"L</add-drive-opts>, you can use this call to map between disk labels, and "
|
|
"raw block device and partition names (like C</dev/sda> and C</dev/sda1>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6852
|
|
msgid ""
|
|
"This returns a hashtable, where keys are the disk labels (I<without> the "
|
|
"C</dev/disk/guestfs> prefix), and the values are the full raw block device "
|
|
"and partition names (eg. C</dev/sda> and C</dev/sda1>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4292
|
|
msgid "list-dm-devices"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4294
|
|
#, no-wrap
|
|
msgid ""
|
|
" list-dm-devices\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6870
|
|
msgid "List all device mapper devices."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4298
|
|
msgid ""
|
|
"The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
|
|
"previous call to L</luks-open>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4301
|
|
msgid ""
|
|
"Device mapper devices which correspond to logical volumes are I<not> "
|
|
"returned in this list. Call L</lvs> if you want to list logical volumes."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4305
|
|
msgid "list-filesystems"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4307
|
|
#, no-wrap
|
|
msgid ""
|
|
" list-filesystems\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4309 ../src/guestfs-actions.pod:6890
|
|
msgid ""
|
|
"This inspection command looks for filesystems on partitions, block devices "
|
|
"and logical volumes, returning a list of C<mountables> containing "
|
|
"filesystems and their type."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4313 ../src/guestfs-actions.pod:6894
|
|
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:4317 ../src/guestfs-actions.pod:6898
|
|
#, no-wrap
|
|
msgid ""
|
|
" \"/dev/sda1\" => \"ntfs\"\n"
|
|
" \"/dev/sda2\" => \"ext2\"\n"
|
|
" \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
|
|
" \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4322
|
|
msgid ""
|
|
"The key is not necessarily a block device. It may also be an opaque "
|
|
"'mountable' string which can be passed to L</mount>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4325 ../src/guestfs-actions.pod:6906
|
|
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:4329
|
|
msgid ""
|
|
"This command runs other libguestfs commands, which might include L</mount> "
|
|
"and L</umount>, and therefore you should use this soon after launch and only "
|
|
"when nothing is mounted."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4333
|
|
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 "
|
|
"each filesystem found is valid and mountable, and some filesystems might be "
|
|
"mountable but require special options. Filesystems may not all belong to a "
|
|
"single logical operating system (use L</inspect-os> to look for OSes)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4341
|
|
msgid "list-ldm-partitions"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4343
|
|
#, no-wrap
|
|
msgid ""
|
|
" list-ldm-partitions\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4345 ../src/guestfs-actions.pod:6935
|
|
msgid ""
|
|
"This function returns all Windows dynamic disk partitions that were found at "
|
|
"launch time. It returns a list of device names."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4349
|
|
msgid "list-ldm-volumes"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4351
|
|
#, no-wrap
|
|
msgid ""
|
|
" list-ldm-volumes\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4353 ../src/guestfs-actions.pod:6950
|
|
msgid ""
|
|
"This function returns all Windows dynamic disk volumes that were found at "
|
|
"launch time. It returns a list of device names."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4357
|
|
msgid "list-md-devices"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4359
|
|
#, no-wrap
|
|
msgid ""
|
|
" list-md-devices\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4361 ../src/guestfs-actions.pod:6965
|
|
msgid "List all Linux md devices."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4363
|
|
msgid "list-partitions"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4365
|
|
#, no-wrap
|
|
msgid ""
|
|
" list-partitions\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4367 ../src/guestfs-actions.pod:6978
|
|
msgid "List all the partitions detected on all block devices."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6980
|
|
msgid "The full partition device names are returned, eg. C</dev/sda1>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4371
|
|
msgid ""
|
|
"This does not return logical volumes. For that you will need to call "
|
|
"L</lvs>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4376
|
|
msgid "ll"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4378
|
|
#, no-wrap
|
|
msgid ""
|
|
" ll directory\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4380 ../src/guestfs-actions.pod:6999
|
|
msgid ""
|
|
"List the files in C<directory> (relative to the root directory, there is no "
|
|
"cwd) in the format of 'ls -la'."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4383 ../fish/guestfish-actions.pod:4392 ../src/guestfs-actions.pod:7002 ../src/guestfs-actions.pod:7018
|
|
msgid ""
|
|
"This command is mostly useful for interactive sessions. It is I<not> "
|
|
"intended that you try to parse the output string."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4386
|
|
msgid "llz"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4388
|
|
#, no-wrap
|
|
msgid ""
|
|
" llz directory\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4390 ../src/guestfs-actions.pod:7016
|
|
msgid "List the files in C<directory> in the format of 'ls -laZ'."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4395
|
|
msgid "ln"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4397
|
|
#, no-wrap
|
|
msgid ""
|
|
" ln target linkname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4399 ../src/guestfs-actions.pod:7033
|
|
msgid "This command creates a hard link using the C<ln> command."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4401
|
|
msgid "ln-f"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4403
|
|
#, no-wrap
|
|
msgid ""
|
|
" ln-f target linkname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4405 ../src/guestfs-actions.pod:7046
|
|
msgid ""
|
|
"This command creates a hard link using the C<ln -f> command. The I<-f> "
|
|
"option removes the link (C<linkname>) if it exists already."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4408
|
|
msgid "ln-s"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4410
|
|
#, no-wrap
|
|
msgid ""
|
|
" ln-s target linkname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4412 ../src/guestfs-actions.pod:7060
|
|
msgid "This command creates a symbolic link using the C<ln -s> command."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4414
|
|
msgid "ln-sf"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4416
|
|
#, no-wrap
|
|
msgid ""
|
|
" ln-sf target linkname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:7073
|
|
msgid ""
|
|
"This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
|
|
"option removes the link (C<linkname>) if it exists already."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4421
|
|
msgid "lremovexattr"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4423
|
|
#, no-wrap
|
|
msgid ""
|
|
" lremovexattr xattr path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4425
|
|
msgid ""
|
|
"This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
|
|
"it removes an extended attribute of the link itself."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4429
|
|
msgid "ls"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4431
|
|
#, no-wrap
|
|
msgid ""
|
|
" ls directory\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4433 ../src/guestfs-actions.pod:7101
|
|
msgid ""
|
|
"List the files in C<directory> (relative to the root directory, there is no "
|
|
"cwd). The '.' and '..' entries are not returned, but hidden files are "
|
|
"shown."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4437
|
|
msgid "ls0"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4439
|
|
#, no-wrap
|
|
msgid ""
|
|
" ls0 dir (filenames|-)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4441 ../src/guestfs-actions.pod:7118
|
|
msgid ""
|
|
"This specialized command is used to get a listing of the filenames in the "
|
|
"directory C<dir>. The list of filenames is written to the local file "
|
|
"C<filenames> (on the host)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4445 ../src/guestfs-actions.pod:7122
|
|
msgid "In the output file, the filenames are separated by C<\\0> characters."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4447 ../src/guestfs-actions.pod:7124
|
|
msgid "C<.> and C<..> are not returned. The filenames are not sorted."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4451
|
|
msgid "lsetxattr"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4453
|
|
#, no-wrap
|
|
msgid ""
|
|
" lsetxattr xattr val vallen path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4455
|
|
msgid ""
|
|
"This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
|
|
"sets an extended attribute of the link itself."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4459
|
|
msgid "lstat"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4461
|
|
#, no-wrap
|
|
msgid ""
|
|
" lstat path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4463 ../fish/guestfish-actions.pod:7095 ../src/guestfs-actions.pod:7153 ../src/guestfs-actions.pod:11484
|
|
msgid "Returns file information for the given C<path>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4465
|
|
msgid ""
|
|
"This is the same as L</stat> except that if C<path> is a symbolic link, then "
|
|
"the link is stat-ed, not the file it refers to."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4469 ../src/guestfs-actions.pod:7159
|
|
msgid "This is the same as the C<lstat(2)> system call."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4471
|
|
msgid "lstatlist"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4473
|
|
#, no-wrap
|
|
msgid ""
|
|
" lstatlist path 'names ...'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4475
|
|
msgid ""
|
|
"This call allows you to perform the L</lstat> operation on multiple files, "
|
|
"where all files are in the directory C<path>. C<names> is the list of files "
|
|
"from this directory."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4479 ../src/guestfs-actions.pod:7178
|
|
msgid ""
|
|
"On return you get a list of stat structs, with a one-to-one correspondence "
|
|
"to the C<names> list. If any name did not exist or could not be lstat'd, "
|
|
"then the C<ino> field of that structure is set to C<-1>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4484
|
|
msgid ""
|
|
"This call is intended for programs that want to efficiently list a directory "
|
|
"contents without making many round-trips. See also L</lxattrlist> for a "
|
|
"similarly efficient call for getting extended attributes."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4489
|
|
msgid "luks-add-key"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4491
|
|
#, no-wrap
|
|
msgid ""
|
|
" luks-add-key device keyslot\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4493 ../src/guestfs-actions.pod:7203
|
|
msgid ""
|
|
"This command adds a new key on LUKS device C<device>. C<key> is any "
|
|
"existing key, and is used to access the device. C<newkey> is the new key to "
|
|
"add. C<keyslot> is the key slot that will be replaced."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4498
|
|
msgid ""
|
|
"Note that if C<keyslot> already contains a key, then this command will "
|
|
"fail. You have to use L</luks-kill-slot> first to remove that key."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4502 ../fish/guestfish-actions.pod:4524 ../fish/guestfish-actions.pod:4534 ../fish/guestfish-actions.pod:4545 ../fish/guestfish-actions.pod:4571 ../fish/guestfish-actions.pod:4581
|
|
msgid ""
|
|
"This command has one or more key or passphrase parameters. Guestfish will "
|
|
"prompt for these separately."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4505
|
|
msgid "luks-close"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4507
|
|
#, no-wrap
|
|
msgid ""
|
|
" luks-close device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4509
|
|
msgid ""
|
|
"This closes a LUKS device that was created earlier by L</luks-open> or "
|
|
"L</luks-open-ro>. The C<device> parameter must be the name of the LUKS "
|
|
"mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
|
|
"underlying block device."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4515
|
|
msgid "luks-format"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4517
|
|
#, no-wrap
|
|
msgid ""
|
|
" luks-format device keyslot\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:7244
|
|
msgid ""
|
|
"This command erases existing data on C<device> and formats the device as a "
|
|
"LUKS encrypted device. C<key> is the initial key, which is added to key "
|
|
"slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4527
|
|
msgid "luks-format-cipher"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4529
|
|
#, no-wrap
|
|
msgid ""
|
|
" luks-format-cipher device keyslot cipher\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4531
|
|
msgid ""
|
|
"This command is the same as L</luks-format> but it also allows you to set "
|
|
"the C<cipher> used."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4537
|
|
msgid "luks-kill-slot"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4539
|
|
#, no-wrap
|
|
msgid ""
|
|
" luks-kill-slot device keyslot\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4541 ../src/guestfs-actions.pod:7285
|
|
msgid ""
|
|
"This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
|
|
"device C<device>. C<key> must be one of the I<other> keys."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4548
|
|
msgid "luks-open"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4550
|
|
#, no-wrap
|
|
msgid ""
|
|
" luks-open device mapname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4552 ../src/guestfs-actions.pod:7305
|
|
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:4555 ../src/guestfs-actions.pod:7308
|
|
msgid "C<device> is the encrypted block device or partition."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4557 ../src/guestfs-actions.pod:7310
|
|
msgid ""
|
|
"The caller must supply one of the keys associated with the LUKS block "
|
|
"device, in the C<key> parameter."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:7313
|
|
msgid ""
|
|
"This creates a new block device called C</dev/mapper/mapname>. Reads and "
|
|
"writes to this block device are decrypted from and encrypted to the "
|
|
"underlying C<device> respectively."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4564
|
|
msgid ""
|
|
"If this block device contains LVM volume groups, then calling L</vgscan> "
|
|
"followed by L</vg-activate-all> will make them visible."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4568
|
|
msgid "Use L</list-dm-devices> to list all device mapper devices."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4574
|
|
msgid "luks-open-ro"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4576
|
|
#, no-wrap
|
|
msgid ""
|
|
" luks-open-ro device mapname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4578
|
|
msgid ""
|
|
"This is the same as L</luks-open> except that a read-only mapping is "
|
|
"created."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4584
|
|
msgid "lvcreate"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4586
|
|
#, no-wrap
|
|
msgid ""
|
|
" lvcreate logvol volgroup mbytes\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:7359
|
|
msgid ""
|
|
"This creates an LVM logical volume called C<logvol> on the volume group "
|
|
"C<volgroup>, with C<size> megabytes."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4591
|
|
msgid "lvcreate-free"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4593
|
|
#, no-wrap
|
|
msgid ""
|
|
" lvcreate-free logvol volgroup percent\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4595 ../src/guestfs-actions.pod:7374
|
|
msgid ""
|
|
"Create an LVM logical volume called C</dev/volgroup/logvol>, using "
|
|
"approximately C<percent> % of the free space remaining in the volume group. "
|
|
"Most usefully, when C<percent> is C<100> this will create the largest "
|
|
"possible LV."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4600
|
|
msgid "lvm-canonical-lv-name"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4602
|
|
#, no-wrap
|
|
msgid ""
|
|
" lvm-canonical-lv-name lvname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4604 ../src/guestfs-actions.pod:7389
|
|
msgid ""
|
|
"This converts alternative naming schemes for LVs that you might find to the "
|
|
"canonical name. For example, C</dev/mapper/VG-LV> is converted to "
|
|
"C</dev/VG/LV>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4608 ../src/guestfs-actions.pod:7393
|
|
msgid ""
|
|
"This command returns an error if the C<lvname> parameter does not refer to a "
|
|
"logical volume."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4611
|
|
msgid "See also L</is-lv>, L</canonical-device-name>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4613
|
|
msgid "lvm-clear-filter"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4615
|
|
#, no-wrap
|
|
msgid ""
|
|
" lvm-clear-filter\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4617
|
|
msgid ""
|
|
"This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
|
|
"block device."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4620 ../fish/guestfish-actions.pod:4648 ../src/guestfs-actions.pod:7411 ../src/guestfs-actions.pod:7450
|
|
msgid "This command also clears the LVM cache and performs a volume group scan."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4623
|
|
msgid "lvm-remove-all"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4625
|
|
#, no-wrap
|
|
msgid ""
|
|
" lvm-remove-all\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:7423
|
|
msgid ""
|
|
"This command removes all LVM logical volumes, volume groups and physical "
|
|
"volumes."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4630
|
|
msgid "lvm-set-filter"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4632
|
|
#, no-wrap
|
|
msgid ""
|
|
" lvm-set-filter 'devices ...'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4634 ../src/guestfs-actions.pod:7436
|
|
msgid ""
|
|
"This sets the LVM device filter so that LVM will only be able to \"see\" the "
|
|
"block devices in the list C<devices>, and will ignore all other attached "
|
|
"block devices."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4638 ../src/guestfs-actions.pod:7440
|
|
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 "
|
|
"there are two types of duplication possible: either cloned PVs/VGs which "
|
|
"have identical UUIDs; or VGs that are not cloned but just happen to have the "
|
|
"same name. In normal operation you cannot create this situation, but you "
|
|
"can do it outside LVM, eg. by cloning disk images or by bit twiddling "
|
|
"inside the LVM metadata."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4651 ../src/guestfs-actions.pod:7453
|
|
msgid "You can filter whole block devices or individual partitions."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4653 ../src/guestfs-actions.pod:7455
|
|
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:4657
|
|
msgid "lvremove"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4659
|
|
#, no-wrap
|
|
msgid ""
|
|
" lvremove device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4661 ../src/guestfs-actions.pod:7469
|
|
msgid ""
|
|
"Remove an LVM logical volume C<device>, where C<device> is the path to the "
|
|
"LV, such as C</dev/VG/LV>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4664 ../src/guestfs-actions.pod:7472
|
|
msgid ""
|
|
"You can also remove all LVs in a volume group by specifying the VG name, "
|
|
"C</dev/VG>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4667
|
|
msgid "lvrename"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4669
|
|
#, no-wrap
|
|
msgid ""
|
|
" lvrename logvol newlogvol\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4671 ../src/guestfs-actions.pod:7486
|
|
msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4673
|
|
msgid "lvresize"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4675
|
|
#, no-wrap
|
|
msgid ""
|
|
" lvresize device mbytes\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4677 ../src/guestfs-actions.pod:7499
|
|
msgid ""
|
|
"This resizes (expands or shrinks) an existing LVM logical volume to "
|
|
"C<mbytes>. When reducing, data in the reduced part is lost."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4681
|
|
msgid "lvresize-free"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4683
|
|
#, no-wrap
|
|
msgid ""
|
|
" lvresize-free lv percent\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4685 ../src/guestfs-actions.pod:7514
|
|
msgid ""
|
|
"This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
|
|
"remaining free space in the volume group. Commonly you would call this with "
|
|
"pc = 100 which expands the logical volume as much as possible, using all "
|
|
"remaining free space in the volume group."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4691
|
|
msgid "lvs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4693
|
|
#, no-wrap
|
|
msgid ""
|
|
" lvs\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4695 ../src/guestfs-actions.pod:7529
|
|
msgid ""
|
|
"List all the logical volumes detected. This is the equivalent of the "
|
|
"L<lvs(8)> command."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4698 ../src/guestfs-actions.pod:7532
|
|
msgid ""
|
|
"This returns a list of the logical volume device names "
|
|
"(eg. C</dev/VolGroup00/LogVol00>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4701
|
|
msgid "See also L</lvs-full>, L</list-filesystems>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4703
|
|
msgid "lvs-full"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4705
|
|
#, no-wrap
|
|
msgid ""
|
|
" lvs-full\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4707 ../src/guestfs-actions.pod:7548
|
|
msgid ""
|
|
"List all the logical volumes detected. This is the equivalent of the "
|
|
"L<lvs(8)> command. The \"full\" version includes all fields."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4710
|
|
msgid "lvuuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4712
|
|
#, no-wrap
|
|
msgid ""
|
|
" lvuuid device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7563
|
|
msgid "This command returns the UUID of the LVM LV C<device>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4716
|
|
msgid "lxattrlist"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4718
|
|
#, no-wrap
|
|
msgid ""
|
|
" lxattrlist path 'names ...'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4720 ../src/guestfs-actions.pod:7577
|
|
msgid ""
|
|
"This call allows you to get the extended attributes of multiple files, where "
|
|
"all files are in the directory C<path>. C<names> is the list of files from "
|
|
"this directory."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4724 ../src/guestfs-actions.pod:7581
|
|
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<attrname>. "
|
|
"C<attrval> in this struct is zero-length to indicate there was an error "
|
|
"doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
|
|
"number (the number of following attributes for this file, which could be "
|
|
"C<\"0\">). Then after the first xattr struct are the zero or more "
|
|
"attributes for the first named file. This repeats for the second and "
|
|
"subsequent files."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4734
|
|
msgid ""
|
|
"This call is intended for programs that want to efficiently list a directory "
|
|
"contents without making many round-trips. See also L</lstatlist> for a "
|
|
"similarly efficient call for getting standard stats."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4739
|
|
msgid "max-disks"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4741
|
|
#, no-wrap
|
|
msgid ""
|
|
" max-disks\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4743
|
|
msgid ""
|
|
"Return the maximum number of disks that may be added to a handle (eg. by "
|
|
"L</add-drive-opts> and similar calls)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4746 ../src/guestfs-actions.pod:7610
|
|
msgid ""
|
|
"This function was added in libguestfs 1.19.7. In previous versions of "
|
|
"libguestfs the limit was 25."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4749 ../src/guestfs-actions.pod:7613
|
|
msgid ""
|
|
"See L<guestfs(3)/MAXIMUM NUMBER OF DISKS> for additional information on this "
|
|
"topic."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4752
|
|
msgid "md-create"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4754
|
|
#, 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:4756 ../src/guestfs-actions.pod:7639
|
|
msgid ""
|
|
"Create a Linux md (RAID) device named C<name> on the devices in the list "
|
|
"C<devices>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:4763 ../src/guestfs-actions.pod:7646
|
|
msgid "C<missingbitmap>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4765 ../src/guestfs-actions.pod:7648
|
|
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:4769 ../src/guestfs-actions.pod:7652
|
|
msgid "As examples:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4771 ../src/guestfs-actions.pod:7654
|
|
msgid ""
|
|
"If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x1> then the resulting "
|
|
"array would be C<[E<lt>missingE<gt>, \"/dev/sda\"]>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4774 ../src/guestfs-actions.pod:7657
|
|
msgid ""
|
|
"If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x2> then the resulting "
|
|
"array would be C<[\"/dev/sda\", E<lt>missingE<gt>]>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4777 ../src/guestfs-actions.pod:7660
|
|
msgid "This defaults to C<0> (no missing devices)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7662
|
|
msgid ""
|
|
"The length of C<devices> + the number of bits set in C<missingbitmap> must "
|
|
"equal C<nrdevices> + C<spare>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:4782 ../src/guestfs-actions.pod:7665
|
|
msgid "C<nrdevices>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4784 ../src/guestfs-actions.pod:7667
|
|
msgid "The number of active RAID devices."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4786 ../src/guestfs-actions.pod:7669
|
|
msgid ""
|
|
"If not set, this defaults to the length of C<devices> plus the number of "
|
|
"bits set in C<missingbitmap>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:4789 ../src/guestfs-actions.pod:7672
|
|
msgid "C<spare>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4791 ../src/guestfs-actions.pod:7674
|
|
msgid "The number of spare devices."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4793 ../src/guestfs-actions.pod:7676
|
|
msgid "If not set, this defaults to C<0>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:4795 ../src/guestfs-actions.pod:7678
|
|
msgid "C<chunk>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4797 ../src/guestfs-actions.pod:7680
|
|
msgid "The chunk size in bytes."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:4799 ../fish/guestfish-actions.pod:4822 ../src/guestfs-actions.pod:7682 ../src/guestfs-actions.pod:7733
|
|
msgid "C<level>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4801 ../src/guestfs-actions.pod:7684
|
|
msgid ""
|
|
"The RAID level, which can be one of: I<linear>, I<raid0>, I<0>, I<stripe>, "
|
|
"I<raid1>, I<1>, I<mirror>, I<raid4>, I<4>, I<raid5>, I<5>, I<raid6>, I<6>, "
|
|
"I<raid10>, I<10>. Some of these are synonymous, and more levels may be "
|
|
"added in future."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4806 ../src/guestfs-actions.pod:7689
|
|
msgid "If not set, this defaults to C<raid1>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4812
|
|
msgid "md-detail"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4814
|
|
#, no-wrap
|
|
msgid ""
|
|
" md-detail md\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4816 ../src/guestfs-actions.pod:7727
|
|
msgid ""
|
|
"This command exposes the output of 'mdadm -DY E<lt>mdE<gt>'. The following "
|
|
"fields are usually present in the returned hash. Other fields may also be "
|
|
"present."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7735
|
|
msgid "The raid level of the MD device."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:4826 ../src/guestfs-actions.pod:7737
|
|
msgid "C<devices>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4828 ../src/guestfs-actions.pod:7739
|
|
msgid "The number of underlying devices in the MD device."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:4830 ../src/guestfs-actions.pod:7741
|
|
msgid "C<metadata>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4832 ../src/guestfs-actions.pod:7743
|
|
msgid "The metadata version used."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:4834 ../src/guestfs-actions.pod:7745
|
|
msgid "C<uuid>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7747
|
|
msgid "The UUID of the MD device."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4840 ../src/guestfs-actions.pod:7751
|
|
msgid "The name of the MD device."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4844
|
|
msgid "md-stat"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4846
|
|
#, no-wrap
|
|
msgid ""
|
|
" md-stat md\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4848 ../src/guestfs-actions.pod:7769
|
|
msgid ""
|
|
"This call returns a list of the underlying devices which make up the single "
|
|
"software RAID array device C<md>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4851
|
|
msgid "To get a list of software RAID devices, call L</list-md-devices>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4853 ../src/guestfs-actions.pod:7774
|
|
msgid ""
|
|
"Each structure returned corresponds to one device along with additional "
|
|
"status information:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:4858 ../src/guestfs-actions.pod:7779
|
|
msgid "C<mdstat_device>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4860 ../src/guestfs-actions.pod:7781
|
|
msgid "The name of the underlying device."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:4862 ../src/guestfs-actions.pod:7783
|
|
msgid "C<mdstat_index>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4864 ../src/guestfs-actions.pod:7785
|
|
msgid "The index of this device within the array."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7787
|
|
msgid "C<mdstat_flags>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4868 ../src/guestfs-actions.pod:7789
|
|
msgid ""
|
|
"Flags associated with this device. This is a string containing (in no "
|
|
"specific order) zero or more of the following flags:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:4873 ../src/guestfs-actions.pod:7794
|
|
msgid "C<W>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4875 ../src/guestfs-actions.pod:7796
|
|
msgid "write-mostly"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:4877 ../src/guestfs-actions.pod:7798
|
|
msgid "C<F>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4879 ../src/guestfs-actions.pod:7800
|
|
msgid "device is faulty"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:4881 ../src/guestfs-actions.pod:7802
|
|
msgid "C<S>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4883 ../src/guestfs-actions.pod:7804
|
|
msgid "device is a RAID spare"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:4885 ../src/guestfs-actions.pod:7806
|
|
msgid "C<R>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7808
|
|
msgid "replacement"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4893
|
|
msgid "md-stop"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4895
|
|
#, no-wrap
|
|
msgid ""
|
|
" md-stop md\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4897 ../src/guestfs-actions.pod:7826
|
|
msgid ""
|
|
"This command deactivates the MD array named C<md>. The device is stopped, "
|
|
"but it is not destroyed or zeroed."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4900
|
|
msgid "mkdir"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4902
|
|
#, no-wrap
|
|
msgid ""
|
|
" mkdir path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4904 ../src/guestfs-actions.pod:7839
|
|
msgid "Create a directory named C<path>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4906
|
|
msgid "mkdir-mode"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4908
|
|
#, no-wrap
|
|
msgid ""
|
|
" mkdir-mode path mode\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4910 ../src/guestfs-actions.pod:7852
|
|
msgid ""
|
|
"This command creates a directory, setting the initial permissions of the "
|
|
"directory to C<mode>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4913 ../src/guestfs-actions.pod:7855
|
|
msgid ""
|
|
"For common Linux filesystems, the actual mode which is set will be C<mode & "
|
|
"~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
|
|
"other ways."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4917
|
|
msgid "See also L</mkdir>, L</umask>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4919
|
|
msgid "mkdir-p"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4921
|
|
#, no-wrap
|
|
msgid ""
|
|
" mkdir-p path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7871
|
|
msgid ""
|
|
"Create a directory named C<path>, creating any parent directories as "
|
|
"necessary. This is like the C<mkdir -p> shell command."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4926
|
|
msgid "mkdtemp"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4928
|
|
#, no-wrap
|
|
msgid ""
|
|
" mkdtemp tmpl\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4930 ../src/guestfs-actions.pod:7884
|
|
msgid ""
|
|
"This command creates a temporary directory. The C<tmpl> parameter should be "
|
|
"a full pathname for the temporary directory name with the final six "
|
|
"characters being \"XXXXXX\"."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4935 ../fish/guestfish-actions.pod:5302 ../src/guestfs-actions.pod:7889 ../src/guestfs-actions.pod:8605
|
|
msgid ""
|
|
"For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
|
|
"being suitable for Windows filesystems."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4938 ../src/guestfs-actions.pod:7892
|
|
msgid "The name of the temporary directory that was created is returned."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7895
|
|
msgid "The temporary directory is created with mode 0700 and is owned by root."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4944 ../src/guestfs-actions.pod:7898
|
|
msgid ""
|
|
"The caller is responsible for deleting the temporary directory and its "
|
|
"contents after use."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4947 ../src/guestfs-actions.pod:7901
|
|
msgid "See also: L<mkdtemp(3)>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4949
|
|
msgid "mke2fs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4951
|
|
#, no-wrap
|
|
msgid ""
|
|
" mke2fs device [blockscount:N] [blocksize:N] [fragsize:N] [blockspergroup:N] "
|
|
"[numberofgroups:N] [bytesperinode:N] [inodesize:N] [journalsize:N] "
|
|
"[numberofinodes:N] [stridesize:N] [stripewidth:N] [maxonlineresize:N] "
|
|
"[reservedblockspercentage:N] [mmpupdateinterval:N] [journaldevice:..] "
|
|
"[label:..] [lastmounteddir:..] [creatoros:..] [fstype:..] [usagetype:..] "
|
|
"[uuid:..] [forcecreate:true|false] [writesbandgrouponly:true|false] "
|
|
"[lazyitableinit:true|false] [lazyjournalinit:true|false] [testfs:true|false] "
|
|
"[discard:true|false] [quotatype:true|false] [extent:true|false] "
|
|
"[filetype:true|false] [flexbg:true|false] [hasjournal:true|false] "
|
|
"[journaldev:true|false] [largefile:true|false] [quota:true|false] "
|
|
"[resizeinode:true|false] [sparsesuper:true|false] [uninitbg:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4953 ../src/guestfs-actions.pod:7959
|
|
msgid "C<mke2fs> is used to create an ext2, ext3, or ext4 filesystem on C<device>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4956 ../src/guestfs-actions.pod:7962
|
|
msgid ""
|
|
"The optional C<blockscount> is the size of the filesystem in blocks. If "
|
|
"omitted it defaults to the size of C<device>. Note if the filesystem is too "
|
|
"small to contain a journal, C<mke2fs> will silently create an ext2 "
|
|
"filesystem instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4963
|
|
msgid "mke2fs-J"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4965
|
|
#, no-wrap
|
|
msgid ""
|
|
" mke2fs-J fstype blocksize device journal\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4967 ../src/guestfs-actions.pod:8009
|
|
msgid ""
|
|
"This creates an ext2/3/4 filesystem on C<device> with an external journal on "
|
|
"C<journal>. It is equivalent to the command:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4971 ../src/guestfs-actions.pod:8013
|
|
#, no-wrap
|
|
msgid ""
|
|
" mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4973
|
|
msgid "See also L</mke2journal>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4975 ../fish/guestfish-actions.pod:4991 ../fish/guestfish-actions.pod:5007 ../fish/guestfish-actions.pod:5023 ../fish/guestfish-actions.pod:5036 ../fish/guestfish-actions.pod:5049
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</mke2fs> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4982
|
|
msgid "mke2fs-JL"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:4984
|
|
#, no-wrap
|
|
msgid ""
|
|
" mke2fs-JL fstype blocksize device label\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4986 ../src/guestfs-actions.pod:8037
|
|
msgid ""
|
|
"This creates an ext2/3/4 filesystem on C<device> with an external journal on "
|
|
"the journal labeled C<label>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:4989
|
|
msgid "See also L</mke2journal-L>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:4998
|
|
msgid "mke2fs-JU"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5000
|
|
#, no-wrap
|
|
msgid ""
|
|
" mke2fs-JU fstype blocksize device uuid\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5002 ../src/guestfs-actions.pod:8062
|
|
msgid ""
|
|
"This creates an ext2/3/4 filesystem on C<device> with an external journal on "
|
|
"the journal with UUID C<uuid>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5005
|
|
msgid "See also L</mke2journal-U>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5014
|
|
msgid "mke2journal"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5016
|
|
#, no-wrap
|
|
msgid ""
|
|
" mke2journal blocksize device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:8085
|
|
msgid ""
|
|
"This creates an ext2 external journal on C<device>. It is equivalent to the "
|
|
"command:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:8088
|
|
#, no-wrap
|
|
msgid ""
|
|
" mke2fs -O journal_dev -b blocksize device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5030
|
|
msgid "mke2journal-L"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5032
|
|
#, no-wrap
|
|
msgid ""
|
|
" mke2journal-L blocksize label device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5034 ../src/guestfs-actions.pod:8109
|
|
msgid "This creates an ext2 external journal on C<device> with label C<label>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5043
|
|
msgid "mke2journal-U"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5045
|
|
#, no-wrap
|
|
msgid ""
|
|
" mke2journal-U blocksize uuid device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5047 ../src/guestfs-actions.pod:8130
|
|
msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5056
|
|
msgid "mkfifo"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5058
|
|
#, no-wrap
|
|
msgid ""
|
|
" mkfifo mode path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5060
|
|
msgid ""
|
|
"This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
|
|
"is just a convenient wrapper around L</mknod>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5066
|
|
msgid "mkfs"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5068
|
|
msgid "mkfs-opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5070
|
|
#, no-wrap
|
|
msgid ""
|
|
" mkfs fstype device [blocksize:N] [features:..] [inode:N] [sectorsize:N]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5072 ../src/guestfs-actions.pod:8185
|
|
msgid ""
|
|
"This function creates a filesystem on C<device>. The filesystem type is "
|
|
"C<fstype>, for example C<ext3>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:8192
|
|
msgid "C<blocksize>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5081 ../src/guestfs-actions.pod:8194
|
|
msgid ""
|
|
"The filesystem block size. Supported block sizes depend on the filesystem "
|
|
"type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
|
|
"filesystems."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5085 ../fish/guestfish-actions.pod:5124 ../src/guestfs-actions.pod:8198 ../src/guestfs-actions.pod:8274
|
|
msgid ""
|
|
"For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
|
|
"cluster size."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5088 ../src/guestfs-actions.pod:8201
|
|
msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:5090 ../src/guestfs-actions.pod:8203
|
|
msgid "C<features>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5092 ../src/guestfs-actions.pod:8205
|
|
msgid "This passes the I<-O> parameter to the external mkfs program."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5094 ../src/guestfs-actions.pod:8207
|
|
msgid ""
|
|
"For certain filesystem types, this allows extra filesystem features to be "
|
|
"selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5098 ../src/guestfs-actions.pod:8211
|
|
msgid ""
|
|
"You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
|
|
"type."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:5101 ../src/guestfs-actions.pod:8214
|
|
msgid "C<inode>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5103 ../src/guestfs-actions.pod:8216
|
|
msgid ""
|
|
"This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
|
|
"sets the inode size (only for ext2/3/4 filesystems at present)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:8219
|
|
msgid "C<sectorsize>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5108 ../src/guestfs-actions.pod:8221
|
|
msgid ""
|
|
"This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
|
|
"sets sector size for ufs filesystem."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5115
|
|
msgid "mkfs-b"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5117
|
|
#, no-wrap
|
|
msgid ""
|
|
" mkfs-b fstype blocksize device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5119
|
|
msgid ""
|
|
"This call is similar to L</mkfs>, but it allows you to control the block "
|
|
"size of the resulting filesystem. Supported block sizes depend on the "
|
|
"filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5134
|
|
msgid "mkfs-btrfs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5136
|
|
#, no-wrap
|
|
msgid ""
|
|
" mkfs-btrfs 'devices ...' [allocstart:N] [bytecount:N] [datatype:..] "
|
|
"[leafsize:N] [label:..] [metadata:..] [nodesize:N] [sectorsize:N]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:8302
|
|
msgid ""
|
|
"Create a btrfs filesystem, allowing all configurables to be set. For more "
|
|
"information on the optional arguments, see L<mkfs.btrfs(8)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5141 ../src/guestfs-actions.pod:8305
|
|
msgid ""
|
|
"Since btrfs filesystems can span multiple devices, this takes a non-empty "
|
|
"list of devices."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5144
|
|
msgid "To create general filesystems, use L</mkfs>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5148
|
|
msgid "mklost-and-found"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5150
|
|
#, no-wrap
|
|
msgid ""
|
|
" mklost-and-found mountpoint\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:8342
|
|
msgid ""
|
|
"Make the C<lost+found> directory, normally in the root directory of an "
|
|
"ext2/3/4 filesystem. C<mountpoint> is the directory under which we try to "
|
|
"create the C<lost+found> directory."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5156
|
|
msgid "mkmountpoint"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5158
|
|
#, no-wrap
|
|
msgid ""
|
|
" mkmountpoint exemptpath\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5160
|
|
msgid ""
|
|
"L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
|
|
"to create extra mountpoints before mounting the first filesystem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5164 ../src/guestfs-actions.pod:8360
|
|
msgid ""
|
|
"These calls are I<only> necessary in some very limited circumstances, mainly "
|
|
"the case where you want to mount a mix of unrelated and/or read-only "
|
|
"filesystems together."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5168 ../src/guestfs-actions.pod:8364
|
|
msgid ""
|
|
"For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
|
|
"an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
|
|
"inside that. You can unpack this as follows in guestfish:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5173 ../src/guestfs-actions.pod:8369
|
|
#, no-wrap
|
|
msgid ""
|
|
" add-ro Fedora-11-i686-Live.iso\n"
|
|
" run\n"
|
|
" mkmountpoint /cd\n"
|
|
" mkmountpoint /sqsh\n"
|
|
" mkmountpoint /ext3fs\n"
|
|
" mount /dev/sda /cd\n"
|
|
" mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
|
|
" mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5182 ../src/guestfs-actions.pod:8378
|
|
msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5184
|
|
msgid ""
|
|
"L</mkmountpoint> is not compatible with L</umount-all>. You may get "
|
|
"unexpected errors if you try to mix these calls. It is safest to manually "
|
|
"unmount filesystems and remove mountpoints after use."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5188
|
|
msgid ""
|
|
"L</umount-all> unmounts filesystems by sorting the paths longest first, so "
|
|
"for this to work for manual mountpoints, you must ensure that the innermost "
|
|
"mountpoints have the longest pathnames, as in the example code above."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5193 ../src/guestfs-actions.pod:8389
|
|
msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5195
|
|
msgid ""
|
|
"Autosync [see L</set-autosync>, this is set by default on handles] can cause "
|
|
"L</umount-all> to be called when the handle is closed which can also trigger "
|
|
"these issues."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5199
|
|
msgid "mknod"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5201
|
|
#, no-wrap
|
|
msgid ""
|
|
" mknod mode devmajor devminor path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5203 ../src/guestfs-actions.pod:8408
|
|
msgid ""
|
|
"This call creates block or character special devices, or named pipes "
|
|
"(FIFOs)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5206 ../src/guestfs-actions.pod:8411
|
|
msgid ""
|
|
"The C<mode> parameter should be the mode, using the standard constants. "
|
|
"C<devmajor> and C<devminor> are the device major and minor numbers, only "
|
|
"used when creating block and character special devices."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5211
|
|
msgid ""
|
|
"Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
|
|
"S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
|
|
"regular file). These constants are available in the standard Linux header "
|
|
"files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
|
|
"wrappers around this command which bitwise OR in the appropriate constant "
|
|
"for you."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5221
|
|
msgid "mknod-b"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5223
|
|
#, no-wrap
|
|
msgid ""
|
|
" mknod-b mode devmajor devminor path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5225
|
|
msgid ""
|
|
"This call creates a block device node called C<path> with mode C<mode> and "
|
|
"device major/minor C<devmajor> and C<devminor>. It is just a convenient "
|
|
"wrapper around L</mknod>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5231
|
|
msgid "mknod-c"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5233
|
|
#, no-wrap
|
|
msgid ""
|
|
" mknod-c mode devmajor devminor path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5235
|
|
msgid ""
|
|
"This call creates a char device node called C<path> with mode C<mode> and "
|
|
"device major/minor C<devmajor> and C<devminor>. It is just a convenient "
|
|
"wrapper around L</mknod>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5241
|
|
msgid "mkswap"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5243
|
|
msgid "mkswap-opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5245
|
|
#, no-wrap
|
|
msgid ""
|
|
" mkswap device [label:..] [uuid:..]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5247 ../src/guestfs-actions.pod:8496
|
|
msgid "Create a Linux swap partition on C<device>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5249 ../src/guestfs-actions.pod:8498
|
|
msgid ""
|
|
"The option arguments C<label> and C<uuid> allow you to set the label and/or "
|
|
"UUID of the new swap partition."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5254
|
|
msgid "mkswap-L"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5256
|
|
#, no-wrap
|
|
msgid ""
|
|
" mkswap-L label device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5258 ../src/guestfs-actions.pod:8541
|
|
msgid "Create a swap partition on C<device> with label C<label>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5260 ../src/guestfs-actions.pod:8543
|
|
msgid ""
|
|
"Note that you cannot attach a swap label to a block device "
|
|
"(eg. C</dev/sda>), just to a partition. This appears to be a limitation of "
|
|
"the kernel or swap tools."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5264 ../fish/guestfish-actions.pod:5277
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</mkswap> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5271
|
|
msgid "mkswap-U"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5273
|
|
#, no-wrap
|
|
msgid ""
|
|
" mkswap-U uuid device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5275 ../src/guestfs-actions.pod:8565
|
|
msgid "Create a swap partition on C<device> with UUID C<uuid>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5284
|
|
msgid "mkswap-file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5286
|
|
#, no-wrap
|
|
msgid ""
|
|
" mkswap-file path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5288 ../src/guestfs-actions.pod:8577
|
|
msgid "Create a swap file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5290
|
|
msgid ""
|
|
"This command just writes a swap file signature to an existing file. To "
|
|
"create the file itself, use something like L</fallocate>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5293
|
|
msgid "mktemp"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5295
|
|
#, no-wrap
|
|
msgid ""
|
|
" mktemp tmpl [suffix:..]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5297 ../src/guestfs-actions.pod:8600
|
|
msgid ""
|
|
"This command creates a temporary file. The C<tmpl> parameter should be a "
|
|
"full pathname for the temporary directory name with the final six characters "
|
|
"being \"XXXXXX\"."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5305 ../src/guestfs-actions.pod:8608
|
|
msgid "The name of the temporary file that was created is returned."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5308 ../src/guestfs-actions.pod:8611
|
|
msgid "The temporary file is created with mode 0600 and is owned by root."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5311 ../src/guestfs-actions.pod:8614
|
|
msgid "The caller is responsible for deleting the temporary file after use."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5314 ../src/guestfs-actions.pod:8617
|
|
msgid ""
|
|
"If the optional C<suffix> parameter is given, then the suffix (eg. C<.txt>) "
|
|
"is appended to the temporary name."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5317
|
|
msgid "See also: L</mkdtemp>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5321
|
|
msgid "modprobe"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5323
|
|
#, no-wrap
|
|
msgid ""
|
|
" modprobe modulename\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5325 ../src/guestfs-actions.pod:8655
|
|
msgid "This loads a kernel module in the appliance."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5327 ../src/guestfs-actions.pod:8657
|
|
msgid ""
|
|
"The kernel module must have been whitelisted when libguestfs was built (see "
|
|
"C<appliance/kmod.whitelist.in> in the source)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5330
|
|
msgid "mount"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5332
|
|
#, no-wrap
|
|
msgid ""
|
|
" mount mountable mountpoint\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5334
|
|
msgid ""
|
|
"Mount a guest disk at a position in the filesystem. Block devices are named "
|
|
"C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
|
|
"those block devices contain partitions, they will have the usual names "
|
|
"(eg. C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used, or "
|
|
"'mountable' strings returned by L</list-filesystems> or "
|
|
"L</inspect-get-mountpoints>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5341 ../src/guestfs-actions.pod:8678
|
|
msgid ""
|
|
"The rules are the same as for L<mount(2)>: A filesystem must first be "
|
|
"mounted on C</> before others can be mounted. Other filesystems can only be "
|
|
"mounted on directories which already exist."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5346 ../src/guestfs-actions.pod:8683
|
|
msgid ""
|
|
"The mounted filesystem is writable, if we have sufficient permissions on the "
|
|
"underlying device."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5349
|
|
msgid ""
|
|
"Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
|
|
"and C<noatime>. The C<sync> option greatly slowed writes and caused many "
|
|
"problems for users. If your program might need to work with older versions "
|
|
"of libguestfs, use L</mount-options> instead (using an empty string for the "
|
|
"first parameter if you don't want any options)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5356
|
|
msgid "mount-9p"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5358
|
|
#, no-wrap
|
|
msgid ""
|
|
" mount-9p mounttag mountpoint [options:..]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5360 ../src/guestfs-actions.pod:8712
|
|
msgid ""
|
|
"Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
|
|
"C<mountpoint>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5363 ../src/guestfs-actions.pod:8715
|
|
msgid ""
|
|
"If required, C<trans=virtio> will be automatically added to the options. "
|
|
"Any other options required can be passed in the optional C<options> "
|
|
"parameter."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5369
|
|
msgid "mount-local"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5371
|
|
#, no-wrap
|
|
msgid ""
|
|
" mount-local localmountpoint [readonly:true|false] [options:..] "
|
|
"[cachetimeout:N] [debugcalls:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5373 ../src/guestfs-actions.pod:8764
|
|
msgid ""
|
|
"This call exports the libguestfs-accessible filesystem to a local mountpoint "
|
|
"(directory) called C<localmountpoint>. Ordinary reads and writes to files "
|
|
"and directories under C<localmountpoint> are redirected through libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5378 ../src/guestfs-actions.pod:8769
|
|
msgid ""
|
|
"If the optional C<readonly> flag is set to true, then writes to the "
|
|
"filesystem return error C<EROFS>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5381 ../src/guestfs-actions.pod:8772
|
|
msgid ""
|
|
"C<options> is a comma-separated list of mount options. See L<guestmount(1)> "
|
|
"for some useful options."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5384 ../src/guestfs-actions.pod:8775
|
|
msgid ""
|
|
"C<cachetimeout> sets the timeout (in seconds) for cached directory entries. "
|
|
"The default is 60 seconds. See L<guestmount(1)> for further information."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5388 ../src/guestfs-actions.pod:8779
|
|
msgid ""
|
|
"If C<debugcalls> is set to true, then additional debugging information is "
|
|
"generated for every FUSE call."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5391
|
|
msgid ""
|
|
"When L</mount-local> returns, the filesystem is ready, but is not processing "
|
|
"requests (access to it will block). You have to call L</mount-local-run> to "
|
|
"run the main loop."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5395 ../fish/guestfish-actions.pod:5418 ../fish/guestfish-actions.pod:7594 ../src/guestfs-actions.pod:8786 ../src/guestfs-actions.pod:8834 ../src/guestfs-actions.pod:12368
|
|
msgid "See L<guestfs(3)/MOUNT LOCAL> for full documentation."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5399
|
|
msgid "mount-local-run"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5401
|
|
#, no-wrap
|
|
msgid ""
|
|
" mount-local-run\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5403 ../src/guestfs-actions.pod:8819
|
|
msgid "Run the main loop which translates kernel calls to libguestfs calls."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5406
|
|
msgid ""
|
|
"This should only be called after L</mount-local> returns successfully. The "
|
|
"call will not return until the filesystem is unmounted."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5410 ../src/guestfs-actions.pod:8826
|
|
msgid ""
|
|
"B<Note> you must I<not> make concurrent libguestfs calls on the same handle "
|
|
"from another thread."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5413
|
|
msgid ""
|
|
"You may call this from a different thread than the one which called "
|
|
"L</mount-local>, subject to the usual rules for threads and libguestfs (see "
|
|
"L<guestfs(3)/MULTIPLE HANDLES AND MULTIPLE THREADS>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5420
|
|
msgid "mount-loop"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5422
|
|
#, no-wrap
|
|
msgid ""
|
|
" mount-loop file mountpoint\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5424 ../src/guestfs-actions.pod:8847
|
|
msgid ""
|
|
"This command lets you mount C<file> (a filesystem image in a file) on a "
|
|
"mount point. It is entirely equivalent to the command C<mount -o loop file "
|
|
"mountpoint>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5428
|
|
msgid "mount-options"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5430
|
|
#, no-wrap
|
|
msgid ""
|
|
" mount-options options mountable mountpoint\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5432
|
|
msgid ""
|
|
"This is the same as the L</mount> command, but it allows you to set the "
|
|
"mount options as for the L<mount(8)> I<-o> flag."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5436 ../src/guestfs-actions.pod:8867
|
|
msgid ""
|
|
"If the C<options> parameter is an empty string, then no options are passed "
|
|
"(all options default to whatever the filesystem uses)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5440
|
|
msgid "mount-ro"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5442
|
|
#, no-wrap
|
|
msgid ""
|
|
" mount-ro mountable mountpoint\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5444
|
|
msgid ""
|
|
"This is the same as the L</mount> command, but it mounts the filesystem with "
|
|
"the read-only (I<-o ro>) flag."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5447
|
|
msgid "mount-vfs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5449
|
|
#, no-wrap
|
|
msgid ""
|
|
" mount-vfs options vfstype mountable mountpoint\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5451
|
|
msgid ""
|
|
"This is the same as the L</mount> command, but it allows you to set both the "
|
|
"mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5455
|
|
msgid "mountpoints"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5457
|
|
#, no-wrap
|
|
msgid ""
|
|
" mountpoints\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5459
|
|
msgid ""
|
|
"This call is similar to L</mounts>. That call returns a list of devices. "
|
|
"This one returns a hash table (map) of device name to directory where the "
|
|
"device is mounted."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5463
|
|
msgid "mounts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5465
|
|
#, no-wrap
|
|
msgid ""
|
|
" mounts\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5467 ../src/guestfs-actions.pod:8928
|
|
msgid ""
|
|
"This returns the list of currently mounted filesystems. It returns the list "
|
|
"of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5470 ../src/guestfs-actions.pod:8931
|
|
msgid "Some internal mounts are not shown."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5472
|
|
msgid "See also: L</mountpoints>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5474
|
|
msgid "mv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5476
|
|
#, no-wrap
|
|
msgid ""
|
|
" mv src dest\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5478 ../src/guestfs-actions.pod:8948
|
|
msgid ""
|
|
"This moves a file from C<src> to C<dest> where C<dest> is either a "
|
|
"destination filename or destination directory."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5481
|
|
msgid "See also: L</rename>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5483
|
|
msgid "nr-devices"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5485
|
|
#, no-wrap
|
|
msgid ""
|
|
" nr-devices\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5487
|
|
msgid ""
|
|
"This returns the number of whole block devices that were added. This is the "
|
|
"same as the number of devices that would be returned if you called "
|
|
"L</list-devices>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5491
|
|
msgid ""
|
|
"To find out the maximum number of devices that could be added, call "
|
|
"L</max-disks>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5494
|
|
msgid "ntfs-3g-probe"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5496
|
|
#, no-wrap
|
|
msgid ""
|
|
" ntfs-3g-probe true|false device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5498 ../src/guestfs-actions.pod:8980
|
|
msgid ""
|
|
"This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
|
|
"C<device> for mountability. (Not all NTFS volumes can be mounted "
|
|
"read-write, and some cannot be mounted at all)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5502 ../src/guestfs-actions.pod:8984
|
|
msgid ""
|
|
"C<rw> is a boolean flag. Set it to true if you want to test if the volume "
|
|
"can be mounted read-write. Set it to false if you want to test if the "
|
|
"volume can be mounted read-only."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5506 ../src/guestfs-actions.pod:8988
|
|
msgid ""
|
|
"The return value is an integer which C<0> if the operation would succeed, or "
|
|
"some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5510
|
|
msgid "ntfsclone-in"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5512
|
|
#, no-wrap
|
|
msgid ""
|
|
" ntfsclone-in (backupfile|-) device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5514
|
|
msgid ""
|
|
"Restore the C<backupfile> (from a previous call to L</ntfsclone-out>) to "
|
|
"C<device>, overwriting any existing contents of this device."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5520
|
|
msgid "ntfsclone-out"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5522
|
|
#, no-wrap
|
|
msgid ""
|
|
" ntfsclone-out device (backupfile|-) [metadataonly:true|false] "
|
|
"[rescue:true|false] [ignorefscheck:true|false] "
|
|
"[preservetimestamps:true|false] [force:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5524 ../src/guestfs-actions.pod:9030
|
|
msgid ""
|
|
"Stream the NTFS filesystem C<device> to the local file C<backupfile>. The "
|
|
"format used for the backup file is a special format used by the "
|
|
"L<ntfsclone(8)> tool."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5528 ../src/guestfs-actions.pod:9034
|
|
msgid ""
|
|
"If the optional C<metadataonly> flag is true, then I<only> the metadata is "
|
|
"saved, losing all the user data (this is useful for diagnosing some "
|
|
"filesystem problems)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5532 ../src/guestfs-actions.pod:9038
|
|
msgid ""
|
|
"The optional C<rescue>, C<ignorefscheck>, C<preservetimestamps> and C<force> "
|
|
"flags have precise meanings detailed in the L<ntfsclone(8)> man page."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5536
|
|
msgid "Use L</ntfsclone-in> to restore the file back to a libguestfs device."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5543
|
|
msgid "ntfsfix"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5545
|
|
#, no-wrap
|
|
msgid ""
|
|
" ntfsfix device [clearbadsectors:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5547 ../src/guestfs-actions.pod:9087
|
|
msgid ""
|
|
"This command repairs some fundamental NTFS inconsistencies, resets the NTFS "
|
|
"journal file, and schedules an NTFS consistency check for the first boot "
|
|
"into Windows."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5551 ../src/guestfs-actions.pod:9091
|
|
msgid ""
|
|
"This is I<not> an equivalent of Windows C<chkdsk>. It does I<not> scan the "
|
|
"filesystem for inconsistencies."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5554 ../src/guestfs-actions.pod:9094
|
|
msgid ""
|
|
"The optional C<clearbadsectors> flag clears the list of bad sectors. This "
|
|
"is useful after cloning a disk with bad sectors to a new disk."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5559
|
|
msgid "ntfsresize"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5561
|
|
msgid "ntfsresize-opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5563
|
|
#, no-wrap
|
|
msgid ""
|
|
" ntfsresize device [size:N] [force:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5565 ../src/guestfs-actions.pod:9151
|
|
msgid ""
|
|
"This command resizes an NTFS filesystem, expanding or shrinking it to the "
|
|
"size of the underlying device."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5574 ../src/guestfs-actions.pod:9160
|
|
msgid ""
|
|
"The new size (in bytes) of the filesystem. If omitted, the filesystem is "
|
|
"resized to fit the container (eg. partition)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:5577 ../fish/guestfish-actions.pod:7430 ../src/guestfs-actions.pod:9163 ../src/guestfs-actions.pod:12098
|
|
msgid "C<force>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5579 ../src/guestfs-actions.pod:9165
|
|
msgid ""
|
|
"If this option is true, then force the resize of the filesystem even if the "
|
|
"filesystem is marked as requiring a consistency check."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5582
|
|
msgid ""
|
|
"After the resize operation, the filesystem is always marked as requiring a "
|
|
"consistency check (for safety). You have to boot into Windows to perform "
|
|
"this check and clear this condition. If you I<don't> set the C<force> "
|
|
"option then it is not possible to call L</ntfsresize> multiple times on a "
|
|
"single filesystem without booting into Windows between each resize."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5591 ../src/guestfs-actions.pod:9177
|
|
msgid "See also L<ntfsresize(8)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5595
|
|
msgid "ntfsresize-size"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5597
|
|
#, no-wrap
|
|
msgid ""
|
|
" ntfsresize-size device size\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5599
|
|
msgid ""
|
|
"This command is the same as L</ntfsresize> except that it allows you to "
|
|
"specify the new size (in bytes) explicitly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5602
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</ntfsresize> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5609
|
|
msgid "parse-environment"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5611
|
|
#, no-wrap
|
|
msgid ""
|
|
" parse-environment\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5613 ../src/guestfs-actions.pod:9231
|
|
msgid ""
|
|
"Parse the program's environment and set flags in the handle accordingly. "
|
|
"For example if C<LIBGUESTFS_DEBUG=1> then the 'verbose' flag is set in the "
|
|
"handle."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5617
|
|
msgid ""
|
|
"I<Most programs do not need to call this>. It is done implicitly when you "
|
|
"call L</create>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5620
|
|
msgid ""
|
|
"See L<guestfs(3)/ENVIRONMENT VARIABLES> for a list of environment variables "
|
|
"that can affect libguestfs handles. See also "
|
|
"L<guestfs(3)/guestfs_create_flags>, and L</parse-environment-list>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5625
|
|
msgid "parse-environment-list"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5627
|
|
#, no-wrap
|
|
msgid ""
|
|
" parse-environment-list 'environment ...'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5629 ../src/guestfs-actions.pod:9253
|
|
msgid ""
|
|
"Parse the list of strings in the argument C<environment> and set flags in "
|
|
"the handle accordingly. For example if C<LIBGUESTFS_DEBUG=1> is a string in "
|
|
"the list, then the 'verbose' flag is set in the handle."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5634
|
|
msgid ""
|
|
"This is the same as L</parse-environment> except that it parses an explicit "
|
|
"list of strings instead of the program's environment."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5638
|
|
msgid "part-add"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5640
|
|
#, no-wrap
|
|
msgid ""
|
|
" part-add device prlogex startsect endsect\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5642
|
|
msgid ""
|
|
"This command adds a partition to C<device>. If there is no partition table "
|
|
"on the device, call L</part-init> first."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5645 ../src/guestfs-actions.pod:9278
|
|
msgid ""
|
|
"The C<prlogex> parameter is the type of partition. Normally you should pass "
|
|
"C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
|
|
"C<logical>) and C<e> (or C<extended>) partition types."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5650 ../src/guestfs-actions.pod:9283
|
|
msgid ""
|
|
"C<startsect> and C<endsect> are the start and end of the partition in "
|
|
"I<sectors>. C<endsect> may be negative, which means it counts backwards "
|
|
"from the end of the disk (C<-1> is the last sector)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5654
|
|
msgid ""
|
|
"Creating a partition which covers the whole disk is not so easy. Use "
|
|
"L</part-disk> to do that."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5657
|
|
msgid "part-del"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5659
|
|
#, no-wrap
|
|
msgid ""
|
|
" part-del device partnum\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5661 ../src/guestfs-actions.pod:9301
|
|
msgid "This command deletes the partition numbered C<partnum> on C<device>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5663 ../src/guestfs-actions.pod:9303
|
|
msgid ""
|
|
"Note that in the case of MBR partitioning, deleting an extended partition "
|
|
"also deletes any logical partitions it contains."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5667
|
|
msgid "part-disk"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5669
|
|
#, no-wrap
|
|
msgid ""
|
|
" part-disk device parttype\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5671
|
|
msgid ""
|
|
"This command is simply a combination of L</part-init> followed by "
|
|
"L</part-add> to create a single primary partition covering the whole disk."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5675
|
|
msgid ""
|
|
"C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
|
|
"possible values are described in L</part-init>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5678
|
|
msgid "part-get-bootable"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5680
|
|
#, no-wrap
|
|
msgid ""
|
|
" part-get-bootable device partnum\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5682 ../src/guestfs-actions.pod:9336
|
|
msgid ""
|
|
"This command returns true if the partition C<partnum> on C<device> has the "
|
|
"bootable flag set."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5685
|
|
msgid "See also L</part-set-bootable>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5687
|
|
msgid "part-get-gpt-type"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5689
|
|
#, no-wrap
|
|
msgid ""
|
|
" part-get-gpt-type device partnum\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5691 ../src/guestfs-actions.pod:9352
|
|
msgid ""
|
|
"Return the type GUID of numbered GPT partition C<partnum>. For MBR "
|
|
"partitions, return an appropriate GUID corresponding to the MBR "
|
|
"type. Behaviour is undefined for other partition types."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5695
|
|
msgid "part-get-mbr-id"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5697
|
|
#, no-wrap
|
|
msgid ""
|
|
" part-get-mbr-id device partnum\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5699 ../src/guestfs-actions.pod:9368
|
|
msgid ""
|
|
"Returns the MBR type byte (also known as the ID byte) from the numbered "
|
|
"partition C<partnum>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5702 ../fish/guestfish-actions.pod:5867
|
|
msgid ""
|
|
"Note that only MBR (old DOS-style) partitions have type bytes. You will get "
|
|
"undefined results for other partition table types (see "
|
|
"L</part-get-parttype>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5706
|
|
msgid "part-get-name"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5708
|
|
#, no-wrap
|
|
msgid ""
|
|
" part-get-name device partnum\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5710 ../src/guestfs-actions.pod:9386
|
|
msgid ""
|
|
"This gets the partition name on partition numbered C<partnum> on device "
|
|
"C<device>. Note that partitions are numbered from 1."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5713 ../src/guestfs-actions.pod:9389
|
|
msgid ""
|
|
"The partition name can only be read on certain types of partition table. "
|
|
"This works on C<gpt> but not on C<mbr> partitions."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5716
|
|
msgid "part-get-parttype"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5718
|
|
#, no-wrap
|
|
msgid ""
|
|
" part-get-parttype device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5720 ../src/guestfs-actions.pod:9401
|
|
msgid ""
|
|
"This command examines the partition table on C<device> and returns the "
|
|
"partition table type (format) being used."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5723
|
|
msgid ""
|
|
"Common return values include: C<msdos> (a DOS/Windows style MBR partition "
|
|
"table), C<gpt> (a GPT/EFI-style partition table). Other values are "
|
|
"possible, although unusual. See L</part-init> for a full list."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5728
|
|
msgid "part-init"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5730
|
|
#, no-wrap
|
|
msgid ""
|
|
" part-init device parttype\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5732 ../src/guestfs-actions.pod:9421
|
|
msgid ""
|
|
"This creates an empty partition table on C<device> of one of the partition "
|
|
"types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
|
|
"(for large disks)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5736
|
|
msgid ""
|
|
"Initially there are no partitions. Following this, you should call "
|
|
"L</part-add> for each partition required."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5739 ../src/guestfs-actions.pod:9428
|
|
msgid "Possible values for C<parttype> are:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:5743 ../src/guestfs-actions.pod:9432
|
|
msgid "B<efi>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:5745 ../src/guestfs-actions.pod:9434
|
|
msgid "B<gpt>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5747 ../src/guestfs-actions.pod:9436
|
|
msgid "Intel EFI / GPT partition table."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5749 ../src/guestfs-actions.pod:9438
|
|
msgid ""
|
|
"This is recommended for >= 2 TB partitions that will be accessed from Linux "
|
|
"and Intel-based Mac OS X. It also has limited backwards compatibility with "
|
|
"the C<mbr> format."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:5753 ../src/guestfs-actions.pod:9442
|
|
msgid "B<mbr>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:5755 ../src/guestfs-actions.pod:9444
|
|
msgid "B<msdos>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5757 ../src/guestfs-actions.pod:9446
|
|
msgid ""
|
|
"The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
|
|
"Windows. This partition type will B<only> work for device sizes up to 2 "
|
|
"TB. For large disks we recommend using C<gpt>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5764 ../src/guestfs-actions.pod:9453
|
|
msgid "Other partition table types that may work but are not supported include:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:5769 ../src/guestfs-actions.pod:9458
|
|
msgid "B<aix>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5771 ../src/guestfs-actions.pod:9460
|
|
msgid "AIX disk labels."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:5773 ../src/guestfs-actions.pod:9462
|
|
msgid "B<amiga>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:5775 ../src/guestfs-actions.pod:9464
|
|
msgid "B<rdb>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5777 ../src/guestfs-actions.pod:9466
|
|
msgid "Amiga \"Rigid Disk Block\" format."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:5779 ../src/guestfs-actions.pod:9468
|
|
msgid "B<bsd>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5781 ../src/guestfs-actions.pod:9470
|
|
msgid "BSD disk labels."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:5783 ../src/guestfs-actions.pod:9472
|
|
msgid "B<dasd>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5785 ../src/guestfs-actions.pod:9474
|
|
msgid "DASD, used on IBM mainframes."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:5787 ../src/guestfs-actions.pod:9476
|
|
msgid "B<dvh>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5789 ../src/guestfs-actions.pod:9478
|
|
msgid "MIPS/SGI volumes."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:5791 ../src/guestfs-actions.pod:9480
|
|
msgid "B<mac>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5793 ../src/guestfs-actions.pod:9482
|
|
msgid "Old Mac partition format. Modern Macs use C<gpt>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:5795 ../src/guestfs-actions.pod:9484
|
|
msgid "B<pc98>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5797 ../src/guestfs-actions.pod:9486
|
|
msgid "NEC PC-98 format, common in Japan apparently."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:5799 ../src/guestfs-actions.pod:9488
|
|
msgid "B<sun>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5801 ../src/guestfs-actions.pod:9490
|
|
msgid "Sun disk labels."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5805
|
|
msgid "part-list"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5807
|
|
#, no-wrap
|
|
msgid ""
|
|
" part-list device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5809 ../src/guestfs-actions.pod:9504
|
|
msgid ""
|
|
"This command parses the partition table on C<device> and returns the list of "
|
|
"partitions found."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5812 ../src/guestfs-actions.pod:9507
|
|
msgid "The fields in the returned structure are:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:5816 ../src/guestfs-actions.pod:9511
|
|
msgid "B<part_num>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5818 ../src/guestfs-actions.pod:9513
|
|
msgid "Partition number, counting from 1."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:5820 ../src/guestfs-actions.pod:9515
|
|
msgid "B<part_start>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5822
|
|
msgid ""
|
|
"Start of the partition I<in bytes>. To get sectors you have to divide by "
|
|
"the device's sector size, see L</blockdev-getss>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:5825 ../src/guestfs-actions.pod:9520
|
|
msgid "B<part_end>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5827 ../src/guestfs-actions.pod:9522
|
|
msgid "End of the partition in bytes."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:5829 ../src/guestfs-actions.pod:9524
|
|
msgid "B<part_size>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5831 ../src/guestfs-actions.pod:9526
|
|
msgid "Size of the partition in bytes."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5835
|
|
msgid "part-set-bootable"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5837
|
|
#, no-wrap
|
|
msgid ""
|
|
" part-set-bootable device partnum true|false\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5839 ../src/guestfs-actions.pod:9544
|
|
msgid ""
|
|
"This sets the bootable flag on partition numbered C<partnum> on device "
|
|
"C<device>. Note that partitions are numbered from 1."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5842 ../src/guestfs-actions.pod:9547
|
|
msgid ""
|
|
"The bootable flag is used by some operating systems (notably Windows) to "
|
|
"determine which partition to boot from. It is by no means universally "
|
|
"recognized."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5846
|
|
msgid "part-set-gpt-type"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5848
|
|
#, no-wrap
|
|
msgid ""
|
|
" part-set-gpt-type device partnum guid\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5850 ../src/guestfs-actions.pod:9563
|
|
msgid ""
|
|
"Set the type GUID of numbered GPT partition C<partnum> to C<guid>. Return an "
|
|
"error if the partition table of C<device> isn't GPT, or if C<guid> is not a "
|
|
"valid GUID."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5854 ../src/guestfs-actions.pod:9567
|
|
msgid ""
|
|
"See "
|
|
"L<http://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_type_GUIDs> "
|
|
"for a useful list of type GUIDs."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5857
|
|
msgid "part-set-mbr-id"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5859
|
|
#, no-wrap
|
|
msgid ""
|
|
" part-set-mbr-id device partnum idbyte\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5861 ../src/guestfs-actions.pod:9582
|
|
msgid ""
|
|
"Sets the MBR type byte (also known as the ID byte) of the numbered partition "
|
|
"C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
|
|
"documentation are in fact hexadecimal numbers, but usually documented "
|
|
"without any leading \"0x\" which might be confusing."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5871
|
|
msgid "part-set-name"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5873
|
|
#, no-wrap
|
|
msgid ""
|
|
" part-set-name device partnum name\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5875 ../src/guestfs-actions.pod:9604
|
|
msgid ""
|
|
"This sets the partition name on partition numbered C<partnum> on device "
|
|
"C<device>. Note that partitions are numbered from 1."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5878 ../src/guestfs-actions.pod:9607
|
|
msgid ""
|
|
"The partition name can only be set on certain types of partition table. "
|
|
"This works on C<gpt> but not on C<mbr> partitions."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5881
|
|
msgid "part-to-dev"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5883
|
|
#, no-wrap
|
|
msgid ""
|
|
" part-to-dev partition\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5885 ../src/guestfs-actions.pod:9620
|
|
msgid ""
|
|
"This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
|
|
"partition number, returning the device name (eg. \"/dev/sdb\")."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5889 ../fish/guestfish-actions.pod:5901
|
|
msgid ""
|
|
"The named partition must exist, for example as a string returned from "
|
|
"L</list-partitions>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5892
|
|
msgid "See also L</part-to-partnum>, L</device-index>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5894
|
|
msgid "part-to-partnum"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5896
|
|
#, no-wrap
|
|
msgid ""
|
|
" part-to-partnum partition\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5898 ../src/guestfs-actions.pod:9640
|
|
msgid ""
|
|
"This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
|
|
"partition number (eg. C<1>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5904
|
|
msgid "See also L</part-to-dev>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5906
|
|
msgid "ping-daemon"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5908
|
|
#, no-wrap
|
|
msgid ""
|
|
" ping-daemon\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5910 ../src/guestfs-actions.pod:9657
|
|
msgid ""
|
|
"This is a test probe into the guestfs daemon running inside the hypervisor. "
|
|
"Calling this function checks that the daemon responds to the ping message, "
|
|
"without affecting the daemon or attached block device(s) in any other way."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5915
|
|
msgid "pread"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5917
|
|
#, no-wrap
|
|
msgid ""
|
|
" pread path count offset\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5919 ../src/guestfs-actions.pod:9675
|
|
msgid ""
|
|
"This command lets you read part of a file. It reads C<count> bytes of the "
|
|
"file, starting at C<offset>, from file C<path>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5922 ../fish/guestfish-actions.pod:5937 ../src/guestfs-actions.pod:9678 ../src/guestfs-actions.pod:9704
|
|
msgid ""
|
|
"This may read fewer bytes than requested. For further details see the "
|
|
"L<pread(2)> system call."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5925
|
|
msgid "See also L</pwrite>, L</pread-device>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5930
|
|
msgid "pread-device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5932
|
|
#, no-wrap
|
|
msgid ""
|
|
" pread-device device count offset\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5934 ../src/guestfs-actions.pod:9701
|
|
msgid ""
|
|
"This command lets you read part of a block device. It reads C<count> bytes "
|
|
"of C<device>, starting at C<offset>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5940
|
|
msgid "See also L</pread>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5945
|
|
msgid "pvchange-uuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5947
|
|
#, no-wrap
|
|
msgid ""
|
|
" pvchange-uuid device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5949 ../src/guestfs-actions.pod:9724
|
|
msgid "Generate a new random UUID for the physical volume C<device>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5951
|
|
msgid "pvchange-uuid-all"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5953
|
|
#, no-wrap
|
|
msgid ""
|
|
" pvchange-uuid-all\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5955 ../src/guestfs-actions.pod:9735
|
|
msgid "Generate new random UUIDs for all physical volumes."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5957
|
|
msgid "pvcreate"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5959
|
|
#, no-wrap
|
|
msgid ""
|
|
" pvcreate device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5961 ../src/guestfs-actions.pod:9747
|
|
msgid ""
|
|
"This creates an LVM physical volume on the named C<device>, where C<device> "
|
|
"should usually be a partition name such as C</dev/sda1>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5965
|
|
msgid "pvremove"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5967
|
|
#, no-wrap
|
|
msgid ""
|
|
" pvremove device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5969 ../src/guestfs-actions.pod:9761
|
|
msgid ""
|
|
"This wipes a physical volume C<device> so that LVM will no longer recognise "
|
|
"it."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5972 ../src/guestfs-actions.pod:9764
|
|
msgid ""
|
|
"The implementation uses the C<pvremove> command which refuses to wipe "
|
|
"physical volumes that contain any volume groups, so you have to remove those "
|
|
"first."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5976
|
|
msgid "pvresize"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5978
|
|
#, no-wrap
|
|
msgid ""
|
|
" pvresize device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5980 ../src/guestfs-actions.pod:9778
|
|
msgid ""
|
|
"This resizes (expands or shrinks) an existing LVM physical volume to match "
|
|
"the new size of the underlying device."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5983
|
|
msgid "pvresize-size"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5985
|
|
#, no-wrap
|
|
msgid ""
|
|
" pvresize-size device size\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5987
|
|
msgid ""
|
|
"This command is the same as L</pvresize> except that it allows you to "
|
|
"specify the new size (in bytes) explicitly."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:5990
|
|
msgid "pvs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:5992
|
|
#, no-wrap
|
|
msgid ""
|
|
" pvs\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5994 ../src/guestfs-actions.pod:9804
|
|
msgid ""
|
|
"List all the physical volumes detected. This is the equivalent of the "
|
|
"L<pvs(8)> command."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:5997 ../src/guestfs-actions.pod:9807
|
|
msgid ""
|
|
"This returns a list of just the device names that contain PVs "
|
|
"(eg. C</dev/sda2>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6000
|
|
msgid "See also L</pvs-full>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6002
|
|
msgid "pvs-full"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6004
|
|
#, no-wrap
|
|
msgid ""
|
|
" pvs-full\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6006 ../src/guestfs-actions.pod:9823
|
|
msgid ""
|
|
"List all the physical volumes detected. This is the equivalent of the "
|
|
"L<pvs(8)> command. The \"full\" version includes all fields."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6009
|
|
msgid "pvuuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6011
|
|
#, no-wrap
|
|
msgid ""
|
|
" pvuuid device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6013 ../src/guestfs-actions.pod:9838
|
|
msgid "This command returns the UUID of the LVM PV C<device>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6015
|
|
msgid "pwrite"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6017
|
|
#, no-wrap
|
|
msgid ""
|
|
" pwrite path content offset\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6019 ../src/guestfs-actions.pod:9854
|
|
msgid ""
|
|
"This command writes to part of a file. It writes the data buffer C<content> "
|
|
"to the file C<path> starting at offset C<offset>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6022 ../src/guestfs-actions.pod:9857
|
|
msgid ""
|
|
"This command implements the L<pwrite(2)> system call, and like that system "
|
|
"call it may not write the full data requested. The return value is the "
|
|
"number of bytes that were actually written to the file. This could even be "
|
|
"0, although short writes are unlikely for regular files in ordinary "
|
|
"circumstances."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6028
|
|
msgid "See also L</pread>, L</pwrite-device>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6033
|
|
msgid "pwrite-device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6035
|
|
#, no-wrap
|
|
msgid ""
|
|
" pwrite-device device content offset\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6037 ../src/guestfs-actions.pod:9881
|
|
msgid ""
|
|
"This command writes to part of a device. It writes the data buffer "
|
|
"C<content> to C<device> starting at offset C<offset>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6040 ../src/guestfs-actions.pod:9884
|
|
msgid ""
|
|
"This command implements the L<pwrite(2)> system call, and like that system "
|
|
"call it may not write the full data requested (although short writes to disk "
|
|
"devices and partitions are probably impossible with standard Linux kernels)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6045
|
|
msgid "See also L</pwrite>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6050
|
|
msgid "read-file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6052
|
|
#, no-wrap
|
|
msgid ""
|
|
" read-file path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6054 ../src/guestfs-actions.pod:9905
|
|
msgid "This calls returns the contents of the file C<path> as a buffer."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6057
|
|
msgid ""
|
|
"Unlike L</cat>, this function can correctly handle files that contain "
|
|
"embedded ASCII NUL characters."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6060
|
|
msgid "read-lines"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6062
|
|
#, no-wrap
|
|
msgid ""
|
|
" read-lines path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6066 ../src/guestfs-actions.pod:9925
|
|
msgid ""
|
|
"The file contents are returned as a list of lines. Trailing C<LF> and "
|
|
"C<CRLF> character sequences are I<not> returned."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6069
|
|
msgid ""
|
|
"Note that this function cannot correctly handle binary files (specifically, "
|
|
"files containing C<\\0> character which is treated as end of string). For "
|
|
"those you need to use the L</read-file> function and split the buffer into "
|
|
"lines yourself."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6074
|
|
msgid "readdir"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6076
|
|
#, no-wrap
|
|
msgid ""
|
|
" readdir dir\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6078 ../src/guestfs-actions.pod:9945
|
|
msgid "This returns the list of directory entries in directory C<dir>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6080 ../src/guestfs-actions.pod:9947
|
|
msgid ""
|
|
"All entries in the directory are returned, including C<.> and C<..>. The "
|
|
"entries are I<not> sorted, but returned in the same order as the underlying "
|
|
"filesystem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6084 ../src/guestfs-actions.pod:9951
|
|
msgid ""
|
|
"Also this call returns basic file type information about each file. The "
|
|
"C<ftyp> field will contain one of the following characters:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:6089 ../src/guestfs-actions.pod:9956
|
|
msgid "'b'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6091 ../src/guestfs-actions.pod:9958
|
|
msgid "Block special"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6095 ../src/guestfs-actions.pod:9962
|
|
msgid "Char special"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6099 ../src/guestfs-actions.pod:9966
|
|
msgid "Directory"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:6101 ../src/guestfs-actions.pod:9968
|
|
msgid "'f'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6103 ../src/guestfs-actions.pod:9970
|
|
msgid "FIFO (named pipe)"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:6105 ../src/guestfs-actions.pod:9972
|
|
msgid "'l'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6107 ../src/guestfs-actions.pod:9974
|
|
msgid "Symbolic link"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:6109 ../src/guestfs-actions.pod:9976
|
|
msgid "'r'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6111 ../src/guestfs-actions.pod:9978
|
|
msgid "Regular file"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6115 ../src/guestfs-actions.pod:9982
|
|
msgid "Socket"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6119 ../src/guestfs-actions.pod:9986
|
|
msgid "Unknown file type"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:6121 ../src/guestfs-actions.pod:9988
|
|
msgid "'?'"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6123 ../src/guestfs-actions.pod:9990
|
|
msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6128
|
|
msgid ""
|
|
"This function is primarily intended for use by programs. To get a simple "
|
|
"list of names, use L</ls>. To get a printable directory for human "
|
|
"consumption, use L</ll>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6135
|
|
msgid "readlink"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6137
|
|
#, no-wrap
|
|
msgid ""
|
|
" readlink path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6139 ../src/guestfs-actions.pod:10014
|
|
msgid "This command reads the target of a symbolic link."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6141
|
|
msgid "readlinklist"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6143
|
|
#, no-wrap
|
|
msgid ""
|
|
" readlinklist path 'names ...'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6145 ../src/guestfs-actions.pod:10028
|
|
msgid ""
|
|
"This call allows you to do a C<readlink> operation on multiple files, where "
|
|
"all files are in the directory C<path>. C<names> is the list of files from "
|
|
"this directory."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6149 ../src/guestfs-actions.pod:10032
|
|
msgid ""
|
|
"On return you get a list of strings, with a one-to-one correspondence to the "
|
|
"C<names> list. Each string is the value of the symbolic link."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6153 ../src/guestfs-actions.pod:10036
|
|
msgid ""
|
|
"If the C<readlink(2)> operation fails on any name, then the corresponding "
|
|
"result string is the empty string C<\"\">. However the whole operation is "
|
|
"completed even if there were C<readlink(2)> errors, and so you can call this "
|
|
"function with names where you don't know if they are symbolic links already "
|
|
"(albeit slightly less efficient)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6160 ../src/guestfs-actions.pod:10043
|
|
msgid ""
|
|
"This call is intended for programs that want to efficiently list a directory "
|
|
"contents without making many round-trips."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6163
|
|
msgid "realpath"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6165
|
|
#, no-wrap
|
|
msgid ""
|
|
" realpath path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6167 ../src/guestfs-actions.pod:10058
|
|
msgid ""
|
|
"Return the canonicalized absolute pathname of C<path>. The returned path "
|
|
"has no C<.>, C<..> or symbolic link path elements."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6170
|
|
msgid "remount"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6172
|
|
#, no-wrap
|
|
msgid ""
|
|
" remount mountpoint [rw:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6174 ../src/guestfs-actions.pod:10080
|
|
msgid ""
|
|
"This call allows you to change the C<rw> (readonly/read-write) flag on an "
|
|
"already mounted filesystem at C<mountpoint>, converting a readonly "
|
|
"filesystem to be read-write, or vice-versa."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6178 ../src/guestfs-actions.pod:10084
|
|
msgid ""
|
|
"Note that at the moment you must supply the \"optional\" C<rw> parameter. "
|
|
"In future we may allow other flags to be adjusted."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6183
|
|
msgid "remove-drive"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6185
|
|
#, no-wrap
|
|
msgid ""
|
|
" remove-drive label\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6187
|
|
msgid ""
|
|
"This function is conceptually the opposite of L</add-drive-opts>. It "
|
|
"removes the drive that was previously added with label C<label>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6190
|
|
msgid ""
|
|
"Note that in order to remove drives, you have to add them with labels (see "
|
|
"the optional C<label> argument to L</add-drive-opts>). If you didn't use a "
|
|
"label, then they cannot be removed."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6194 ../src/guestfs-actions.pod:10126
|
|
msgid ""
|
|
"You can call this function before or after launching the handle. If called "
|
|
"after launch, if the backend supports it, we try to hot unplug the drive: "
|
|
"see L<guestfs(3)/HOTPLUGGING>. The disk B<must not> be in use (eg. mounted) "
|
|
"when you do this. We try to detect if the disk is in use and stop you from "
|
|
"doing this."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6200
|
|
msgid "removexattr"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6202
|
|
#, no-wrap
|
|
msgid ""
|
|
" removexattr xattr path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6204 ../src/guestfs-actions.pod:10143
|
|
msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6207
|
|
msgid "See also: L</lremovexattr>, L<attr(5)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6209
|
|
msgid "rename"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6211
|
|
#, no-wrap
|
|
msgid ""
|
|
" rename oldpath newpath\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6213
|
|
msgid ""
|
|
"Rename a file to a new place on the same filesystem. This is the same as "
|
|
"the Linux L<rename(2)> system call. In most cases you are better to use "
|
|
"L</mv> instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6217
|
|
msgid "resize2fs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6219
|
|
#, no-wrap
|
|
msgid ""
|
|
" resize2fs device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6221 ../src/guestfs-actions.pod:10173
|
|
msgid ""
|
|
"This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
|
|
"underlying device."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6224 ../fish/guestfish-actions.pod:6239 ../fish/guestfish-actions.pod:6248 ../src/guestfs-actions.pod:10176 ../src/guestfs-actions.pod:10197 ../src/guestfs-actions.pod:10213
|
|
msgid "See also L<guestfs(3)/RESIZE2FS ERRORS>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6226
|
|
msgid "resize2fs-M"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6228
|
|
#, no-wrap
|
|
msgid ""
|
|
" resize2fs-M device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6230
|
|
msgid ""
|
|
"This command is the same as L</resize2fs>, but the filesystem is resized to "
|
|
"its minimum size. This works like the I<-M> option to the C<resize2fs> "
|
|
"command."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6234
|
|
msgid ""
|
|
"To get the resulting size of the filesystem you should call L</tune2fs-l> "
|
|
"and read the C<Block size> and C<Block count> values. These two numbers, "
|
|
"multiplied together, give the resulting size of the minimal filesystem in "
|
|
"bytes."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6241
|
|
msgid "resize2fs-size"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6243
|
|
#, no-wrap
|
|
msgid ""
|
|
" resize2fs-size device size\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6245
|
|
msgid ""
|
|
"This command is the same as L</resize2fs> except that it allows you to "
|
|
"specify the new size (in bytes) explicitly."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6250
|
|
msgid "rm"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6252
|
|
#, no-wrap
|
|
msgid ""
|
|
" rm path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6254 ../src/guestfs-actions.pod:10225
|
|
msgid "Remove the single file C<path>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6256
|
|
msgid "rm-f"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6258
|
|
#, no-wrap
|
|
msgid ""
|
|
" rm-f path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6260 ../src/guestfs-actions.pod:10237
|
|
msgid "Remove the file C<path>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6262 ../src/guestfs-actions.pod:10239
|
|
msgid ""
|
|
"If the file doesn't exist, that error is ignored. (Other errors, eg. I/O "
|
|
"errors or bad paths, are not ignored)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6265
|
|
msgid ""
|
|
"This call cannot remove directories. Use L</rmdir> to remove an empty "
|
|
"directory, or L</rm-rf> to remove directories recursively."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6269
|
|
msgid "rm-rf"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6271
|
|
#, no-wrap
|
|
msgid ""
|
|
" rm-rf path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6273 ../src/guestfs-actions.pod:10256
|
|
msgid ""
|
|
"Remove the file or directory C<path>, recursively removing the contents if "
|
|
"its a directory. This is like the C<rm -rf> shell command."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6277
|
|
msgid "rmdir"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6279
|
|
#, no-wrap
|
|
msgid ""
|
|
" rmdir path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6281 ../src/guestfs-actions.pod:10270
|
|
msgid "Remove the single directory C<path>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6283
|
|
msgid "rmmountpoint"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6285
|
|
#, no-wrap
|
|
msgid ""
|
|
" rmmountpoint exemptpath\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6287
|
|
msgid ""
|
|
"This calls removes a mountpoint that was previously created with "
|
|
"L</mkmountpoint>. See L</mkmountpoint> for full details."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6291
|
|
msgid "rsync"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6293
|
|
#, no-wrap
|
|
msgid ""
|
|
" rsync src dest [archive:true|false] [deletedest:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6295 ../src/guestfs-actions.pod:10306
|
|
msgid ""
|
|
"This call may be used to copy or synchronize two directories under the same "
|
|
"libguestfs handle. This uses the L<rsync(1)> program which uses a fast "
|
|
"algorithm that avoids copying files unnecessarily."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6300 ../src/guestfs-actions.pod:10311
|
|
msgid ""
|
|
"C<src> and C<dest> are the source and destination directories. Files are "
|
|
"copied from C<src> to C<dest>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:6307 ../src/guestfs-actions.pod:10318
|
|
msgid "C<archive>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6309 ../src/guestfs-actions.pod:10320
|
|
msgid ""
|
|
"Turns on archive mode. This is the same as passing the I<--archive> flag to "
|
|
"C<rsync>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:6312 ../src/guestfs-actions.pod:10323
|
|
msgid "C<deletedest>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6314 ../src/guestfs-actions.pod:10325
|
|
msgid "Delete files at the destination that do not exist at the source."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6320
|
|
msgid "rsync-in"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6322
|
|
#, no-wrap
|
|
msgid ""
|
|
" rsync-in remote dest [archive:true|false] [deletedest:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6324 ../src/guestfs-actions.pod:10373
|
|
msgid ""
|
|
"This call may be used to copy or synchronize the filesystem on the host or "
|
|
"on a remote computer with the filesystem within libguestfs. This uses the "
|
|
"L<rsync(1)> program which uses a fast algorithm that avoids copying files "
|
|
"unnecessarily."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6329 ../fish/guestfish-actions.pod:6353
|
|
msgid ""
|
|
"This call only works if the network is enabled. See L</set-network> or the "
|
|
"I<--network> option to various tools like L<guestfish(1)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6333 ../src/guestfs-actions.pod:10382
|
|
msgid ""
|
|
"Files are copied from the remote server and directory specified by C<remote> "
|
|
"to the destination directory C<dest>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6336 ../fish/guestfish-actions.pod:6360 ../src/guestfs-actions.pod:10385 ../src/guestfs-actions.pod:10447
|
|
msgid ""
|
|
"The format of the remote server string is defined by L<rsync(1)>. Note that "
|
|
"there is no way to supply a password or passphrase so the target must be set "
|
|
"up not to require one."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6340 ../fish/guestfish-actions.pod:6364
|
|
msgid "The optional arguments are the same as those of L</rsync>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6344
|
|
msgid "rsync-out"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6346
|
|
#, no-wrap
|
|
msgid ""
|
|
" rsync-out src remote [archive:true|false] [deletedest:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6348 ../src/guestfs-actions.pod:10435
|
|
msgid ""
|
|
"This call may be used to copy or synchronize the filesystem within "
|
|
"libguestfs with a filesystem on the host or on a remote computer. This uses "
|
|
"the L<rsync(1)> program which uses a fast algorithm that avoids copying "
|
|
"files unnecessarily."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6357 ../src/guestfs-actions.pod:10444
|
|
msgid ""
|
|
"Files are copied from the source directory C<src> to the remote server and "
|
|
"directory specified by C<remote>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6366
|
|
msgid ""
|
|
"Globbing does not happen on the C<src> parameter. In programs which use the "
|
|
"API directly you have to expand wildcards yourself (see L</glob-expand>). "
|
|
"In guestfish you can use the C<glob> command (see L<guestfish(1)/glob>), for "
|
|
"example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6371 ../src/guestfs-actions.pod:10458
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><fs> glob rsync-out /* rsync://remote/\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6375
|
|
msgid "scrub-device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6377
|
|
#, no-wrap
|
|
msgid ""
|
|
" scrub-device device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6379 ../src/guestfs-actions.pod:10494
|
|
msgid ""
|
|
"This command writes patterns over C<device> to make data retrieval more "
|
|
"difficult."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6382 ../fish/guestfish-actions.pod:6394 ../fish/guestfish-actions.pod:6407 ../src/guestfs-actions.pod:10497 ../src/guestfs-actions.pod:10515 ../src/guestfs-actions.pod:10534
|
|
msgid ""
|
|
"It is an interface to the L<scrub(1)> program. See that manual page for "
|
|
"more details."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6385
|
|
msgid "scrub-file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6387
|
|
#, no-wrap
|
|
msgid ""
|
|
" scrub-file file\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6389 ../src/guestfs-actions.pod:10510
|
|
msgid ""
|
|
"This command writes patterns over a file to make data retrieval more "
|
|
"difficult."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6392 ../src/guestfs-actions.pod:10513
|
|
msgid "The file is I<removed> after scrubbing."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6397
|
|
msgid "scrub-freespace"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6399
|
|
#, no-wrap
|
|
msgid ""
|
|
" scrub-freespace dir\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6401
|
|
msgid ""
|
|
"This command creates the directory C<dir> and then fills it with files until "
|
|
"the filesystem is full, and scrubs the files as for L</scrub-file>, and "
|
|
"deletes them. The intention is to scrub any free space on the partition "
|
|
"containing C<dir>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6410
|
|
msgid "set-append"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6412
|
|
msgid "append"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6414
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-append append\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6416 ../src/guestfs-actions.pod:10547
|
|
msgid ""
|
|
"This function is used to add additional options to the guest kernel command "
|
|
"line."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6419 ../src/guestfs-actions.pod:10550
|
|
msgid ""
|
|
"The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
|
|
"environment variable."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6422 ../src/guestfs-actions.pod:10553
|
|
msgid ""
|
|
"Setting C<append> to C<NULL> means I<no> additional options are passed "
|
|
"(libguestfs always adds a few of its own)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6425
|
|
msgid "set-attach-method"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6427
|
|
msgid "attach-method"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6429
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-attach-method backend\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6431 ../fish/guestfish-actions.pod:6463 ../src/guestfs-actions.pod:10573 ../src/guestfs-actions.pod:10606
|
|
msgid ""
|
|
"Set the method that libguestfs uses to connect to the backend guestfsd "
|
|
"daemon."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6434 ../fish/guestfish-actions.pod:6468 ../src/guestfs-actions.pod:10576 ../src/guestfs-actions.pod:10611
|
|
msgid "See L<guestfs(3)/BACKEND>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6436
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</set-backend> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6443
|
|
msgid "set-autosync"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6445
|
|
msgid "autosync"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6447
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-autosync true|false\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6449 ../src/guestfs-actions.pod:10588
|
|
msgid ""
|
|
"If C<autosync> is true, this enables autosync. Libguestfs will make a best "
|
|
"effort attempt to make filesystems consistent and synchronized when the "
|
|
"handle is closed (also if the program exits without closing handles)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6454 ../src/guestfs-actions.pod:10593
|
|
msgid ""
|
|
"This is enabled by default (since libguestfs 1.5.24, previously it was "
|
|
"disabled by default)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6457
|
|
msgid "set-backend"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6459
|
|
msgid "backend"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6461
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-backend backend\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6470
|
|
msgid "set-backend-settings"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6472
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-backend-settings 'settings ...'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6474 ../src/guestfs-actions.pod:10623
|
|
msgid ""
|
|
"Set a list of zero or more settings which are passed through to the current "
|
|
"backend. Each setting is a string which is interpreted in a "
|
|
"backend-specific way, or ignored if not understood by the backend."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6479 ../src/guestfs-actions.pod:10628
|
|
msgid ""
|
|
"The default value is an empty list, unless the environment variable "
|
|
"C<LIBGUESTFS_BACKEND_SETTINGS> was set when the handle was created. This "
|
|
"environment variable contains a colon-separated list of settings."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6486
|
|
msgid "set-cachedir"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6488
|
|
msgid "cachedir"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6490
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-cachedir cachedir\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6492 ../src/guestfs-actions.pod:10643
|
|
msgid ""
|
|
"Set the directory used by the handle to store the appliance cache, when "
|
|
"using a supermin appliance. The appliance is cached and shared between all "
|
|
"handles which have the same effective user ID."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6497 ../src/guestfs-actions.pod:10648
|
|
msgid ""
|
|
"The environment variables C<LIBGUESTFS_CACHEDIR> and C<TMPDIR> control the "
|
|
"default value: If C<LIBGUESTFS_CACHEDIR> is set, then that is the default. "
|
|
"Else if C<TMPDIR> is set, then that is the default. Else C</var/tmp> is the "
|
|
"default."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6502
|
|
msgid "set-direct"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6504
|
|
msgid "direct"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6506
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-direct true|false\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6508 ../src/guestfs-actions.pod:10663
|
|
msgid ""
|
|
"If the direct appliance mode flag is enabled, then stdin and stdout are "
|
|
"passed directly through to the appliance once it is launched."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6512
|
|
msgid ""
|
|
"One consequence of this is that log messages aren't caught by the library "
|
|
"and handled by L</set-log-message-callback>, but go straight to stdout."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6516 ../src/guestfs-actions.pod:10671
|
|
msgid "You probably don't want to use this unless you know what you are doing."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6519 ../src/guestfs-actions.pod:10674
|
|
msgid "The default is disabled."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6521
|
|
msgid "set-e2attrs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6523
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-e2attrs file attrs [clear:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6525 ../src/guestfs-actions.pod:10695
|
|
msgid ""
|
|
"This sets or clears the file attributes C<attrs> associated with the inode "
|
|
"C<file>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6528
|
|
msgid ""
|
|
"C<attrs> is a string of characters representing file attributes. See "
|
|
"L</get-e2attrs> for a list of possible attributes. Not all attributes can "
|
|
"be changed."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6532 ../src/guestfs-actions.pod:10702
|
|
msgid ""
|
|
"If optional boolean C<clear> is not present or false, then the C<attrs> "
|
|
"listed are set in the inode."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6535 ../src/guestfs-actions.pod:10705
|
|
msgid "If C<clear> is true, then the C<attrs> listed are cleared in the inode."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6538 ../src/guestfs-actions.pod:10708
|
|
msgid ""
|
|
"In both cases, other attributes not present in the C<attrs> string are left "
|
|
"unchanged."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6547
|
|
msgid "set-e2generation"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6549
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-e2generation file generation\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6551 ../src/guestfs-actions.pod:10750
|
|
msgid "This sets the ext2 file generation of a file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6553
|
|
msgid "See L</get-e2generation>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6555
|
|
msgid "set-e2label"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6557
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-e2label device label\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6559 ../src/guestfs-actions.pod:10772
|
|
msgid ""
|
|
"This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
|
|
"C<label>. Filesystem labels are limited to 16 characters."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6563
|
|
msgid ""
|
|
"You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
|
|
"label on a filesystem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6566
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</set-label> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6573
|
|
msgid "set-e2uuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6575
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-e2uuid device uuid\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6577 ../src/guestfs-actions.pod:10797
|
|
msgid ""
|
|
"This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
|
|
"C<uuid>. The format of the UUID and alternatives such as C<clear>, "
|
|
"C<random> and C<time> are described in the L<tune2fs(8)> manpage."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6582
|
|
msgid "You can use L</vfs-uuid> to return the existing UUID of a filesystem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6585
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</set-uuid> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6592
|
|
msgid "set-hv"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6594
|
|
msgid "hv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6596
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-hv hv\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6598 ../src/guestfs-actions.pod:10815
|
|
msgid ""
|
|
"Set the hypervisor binary that we will use. The hypervisor depends on the "
|
|
"backend, but is usually the location of the qemu/KVM hypervisor. For the "
|
|
"uml backend, it is the location of the C<linux> or C<vmlinux> binary."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6603 ../fish/guestfish-actions.pod:6781 ../src/guestfs-actions.pod:10820 ../src/guestfs-actions.pod:11050
|
|
msgid "The default is chosen when the library was compiled by the configure script."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6606 ../fish/guestfish-actions.pod:6784 ../src/guestfs-actions.pod:10823 ../src/guestfs-actions.pod:11053
|
|
msgid ""
|
|
"You can also override this by setting the C<LIBGUESTFS_HV> environment "
|
|
"variable."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6609 ../fish/guestfish-actions.pod:6789 ../src/guestfs-actions.pod:10826 ../src/guestfs-actions.pod:11058
|
|
msgid ""
|
|
"Note that you should call this function as early as possible after creating "
|
|
"the handle. This is because some pre-launch operations depend on testing "
|
|
"qemu features (by running C<qemu -help>). If the qemu binary changes, we "
|
|
"don't retest features, and so you might see inconsistent results. Using the "
|
|
"environment variable C<LIBGUESTFS_HV> is safest of all since that picks the "
|
|
"qemu binary at the same time as the handle is created."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6617
|
|
msgid "set-label"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6619
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-label mountable label\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6621 ../src/guestfs-actions.pod:10845
|
|
msgid "Set the filesystem label on C<mountable> to C<label>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6623 ../src/guestfs-actions.pod:10847
|
|
msgid ""
|
|
"Only some filesystem types support labels, and libguestfs supports setting "
|
|
"labels on only a subset of these."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:6628 ../src/guestfs-actions.pod:10852
|
|
msgid "ext2, ext3, ext4"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6630 ../src/guestfs-actions.pod:10854
|
|
msgid "Labels are limited to 16 bytes."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:6632 ../src/guestfs-actions.pod:10856
|
|
msgid "NTFS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6634 ../src/guestfs-actions.pod:10858
|
|
msgid "Labels are limited to 128 unicode characters."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:6636 ../src/guestfs-actions.pod:10860
|
|
msgid "XFS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6638 ../src/guestfs-actions.pod:10862
|
|
msgid ""
|
|
"The label is limited to 12 bytes. The filesystem must not be mounted when "
|
|
"trying to set the label."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:6641 ../src/guestfs-actions.pod:10865
|
|
msgid "btrfs"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6643 ../src/guestfs-actions.pod:10867
|
|
msgid ""
|
|
"The label is limited to 256 bytes and some characters are not allowed. "
|
|
"Setting the label on a btrfs subvolume will set the label on its parent "
|
|
"filesystem. The filesystem must not be mounted when trying to set the "
|
|
"label."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6650
|
|
msgid "To read the label on a filesystem, call L</vfs-label>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6652
|
|
msgid "set-libvirt-requested-credential"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6654
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-libvirt-requested-credential index cred\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6656 ../src/guestfs-actions.pod:10888
|
|
msgid ""
|
|
"After requesting the C<index>'th credential from the user, call this "
|
|
"function to pass the answer back to libvirt."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6661
|
|
msgid "set-libvirt-supported-credentials"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6663
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-libvirt-supported-credentials 'creds ...'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6665 ../src/guestfs-actions.pod:10903
|
|
msgid ""
|
|
"Call this function before setting an event handler for "
|
|
"C<GUESTFS_EVENT_LIBVIRT_AUTH>, to supply the list of credential types that "
|
|
"the program knows how to process."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6669 ../src/guestfs-actions.pod:10907
|
|
msgid ""
|
|
"The C<creds> list must be a non-empty list of strings. Possible strings "
|
|
"are:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:6676 ../src/guestfs-actions.pod:10914
|
|
msgid "C<authname>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:6678 ../src/guestfs-actions.pod:10916
|
|
msgid "C<language>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:6680 ../src/guestfs-actions.pod:10918
|
|
msgid "C<cnonce>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:6682 ../src/guestfs-actions.pod:10920
|
|
msgid "C<passphrase>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:6684 ../src/guestfs-actions.pod:10922
|
|
msgid "C<echoprompt>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:6686 ../src/guestfs-actions.pod:10924
|
|
msgid "C<noechoprompt>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:6688 ../src/guestfs-actions.pod:10926
|
|
msgid "C<realm>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:6690 ../src/guestfs-actions.pod:10928
|
|
msgid "C<external>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6694 ../src/guestfs-actions.pod:10932
|
|
msgid "See libvirt documentation for the meaning of these credential types."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6698
|
|
msgid "set-memsize"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6700
|
|
msgid "memsize"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6702
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-memsize memsize\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6704
|
|
msgid ""
|
|
"This sets the memory size in megabytes allocated to the hypervisor. This "
|
|
"only has any effect if called before L</launch>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6708 ../src/guestfs-actions.pod:10950
|
|
msgid ""
|
|
"You can also change this by setting the environment variable "
|
|
"C<LIBGUESTFS_MEMSIZE> before the handle is created."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6715
|
|
msgid "set-network"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6717
|
|
msgid "network"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6719
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-network true|false\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6721 ../src/guestfs-actions.pod:10967
|
|
msgid ""
|
|
"If C<network> is true, then the network is enabled in the libguestfs "
|
|
"appliance. The default is false."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6724 ../src/guestfs-actions.pod:10970
|
|
msgid ""
|
|
"This affects whether commands are able to access the network (see "
|
|
"L<guestfs(3)/RUNNING COMMANDS>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6727
|
|
msgid "You must call this before calling L</launch>, otherwise it has no effect."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6730
|
|
msgid "set-path"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6734
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-path searchpath\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6736 ../src/guestfs-actions.pod:10986
|
|
msgid "Set the path that libguestfs searches for kernel and initrd.img."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6738 ../src/guestfs-actions.pod:10988
|
|
msgid ""
|
|
"The default is C<$libdir/guestfs> unless overridden by setting "
|
|
"C<LIBGUESTFS_PATH> environment variable."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6741 ../src/guestfs-actions.pod:10991
|
|
msgid "Setting C<path> to C<NULL> restores the default path."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6743
|
|
msgid "set-pgroup"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6745
|
|
msgid "pgroup"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6747
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-pgroup true|false\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6749 ../src/guestfs-actions.pod:11003
|
|
msgid ""
|
|
"If C<pgroup> is true, child processes are placed into their own process "
|
|
"group."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6752 ../src/guestfs-actions.pod:11006
|
|
msgid ""
|
|
"The practical upshot of this is that signals like C<SIGINT> (from users "
|
|
"pressing C<^C>) won't be received by the child process."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6755
|
|
msgid ""
|
|
"The default for this flag is false, because usually you want C<^C> to kill "
|
|
"the subprocess. Guestfish sets this flag to true when used interactively, "
|
|
"so that C<^C> can cancel long-running commands gracefully (see "
|
|
"L</user-cancel>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6760
|
|
msgid "set-program"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6762
|
|
msgid "program"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6764
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-program program\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6766 ../src/guestfs-actions.pod:11024
|
|
msgid ""
|
|
"Set the program name. This is an informative string which the main program "
|
|
"may optionally set in the handle."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6769 ../src/guestfs-actions.pod:11027
|
|
msgid ""
|
|
"When the handle is created, the program name in the handle is set to the "
|
|
"basename from C<argv[0]>. If that was not possible, it is set to the empty "
|
|
"string (but never C<NULL>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6773
|
|
msgid "set-qemu"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6775
|
|
msgid "qemu"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6777
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-qemu hv\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6779 ../src/guestfs-actions.pod:11048
|
|
msgid "Set the hypervisor binary (usually qemu) that we will use."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6787 ../src/guestfs-actions.pod:11056
|
|
msgid "Setting C<hv> to C<NULL> restores the default qemu binary."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6797
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</set-hv> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6804
|
|
msgid "set-recovery-proc"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6806
|
|
msgid "recovery-proc"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6808
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-recovery-proc true|false\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6810
|
|
msgid ""
|
|
"If this is called with the parameter C<false> then L</launch> does not "
|
|
"create a recovery process. The purpose of the recovery process is to stop "
|
|
"runaway hypervisor processes in the case where the main program aborts "
|
|
"abruptly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6815
|
|
msgid ""
|
|
"This only has any effect if called before L</launch>, and the default is "
|
|
"true."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6818 ../src/guestfs-actions.pod:11084
|
|
msgid ""
|
|
"About the only time when you would want to disable this is if the main "
|
|
"process will fork itself into the background (\"daemonize\" itself). In "
|
|
"this case the recovery process thinks that the main program has disappeared "
|
|
"and so kills the hypervisor, which is not very helpful."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6824
|
|
msgid "set-selinux"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6826
|
|
msgid "selinux"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6828
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-selinux true|false\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6830 ../src/guestfs-actions.pod:11100
|
|
msgid ""
|
|
"This sets the selinux flag that is passed to the appliance at boot time. "
|
|
"The default is C<selinux=0> (disabled)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6833 ../src/guestfs-actions.pod:11103
|
|
msgid ""
|
|
"Note that if SELinux is enabled, it is always in Permissive mode "
|
|
"(C<enforcing=0>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6839
|
|
msgid "set-smp"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6841
|
|
msgid "smp"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6843
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-smp smp\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6845 ../src/guestfs-actions.pod:11119
|
|
msgid ""
|
|
"Change the number of virtual CPUs assigned to the appliance. The default is "
|
|
"C<1>. Increasing this may improve performance, though often it has no "
|
|
"effect."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6849
|
|
msgid "This function must be called before L</launch>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6851
|
|
msgid "set-tmpdir"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6853
|
|
msgid "tmpdir"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6855
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-tmpdir tmpdir\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6857 ../src/guestfs-actions.pod:11135
|
|
msgid "Set the directory used by the handle to store temporary files."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6859 ../src/guestfs-actions.pod:11137
|
|
msgid ""
|
|
"The environment variables C<LIBGUESTFS_TMPDIR> and C<TMPDIR> control the "
|
|
"default value: If C<LIBGUESTFS_TMPDIR> is set, then that is the default. "
|
|
"Else if C<TMPDIR> is set, then that is the default. Else C</tmp> is the "
|
|
"default."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6864
|
|
msgid "set-trace"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6866
|
|
msgid "trace"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6868
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-trace true|false\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6870 ../src/guestfs-actions.pod:11152
|
|
msgid ""
|
|
"If the command trace flag is set to 1, then libguestfs calls, parameters and "
|
|
"return values are traced."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6873 ../src/guestfs-actions.pod:11155
|
|
msgid ""
|
|
"If you want to trace C API calls into libguestfs (and other libraries) then "
|
|
"possibly a better way is to use the external ltrace(1) command."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6877 ../src/guestfs-actions.pod:11159
|
|
msgid ""
|
|
"Command traces are disabled unless the environment variable "
|
|
"C<LIBGUESTFS_TRACE> is defined and set to C<1>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6880
|
|
msgid ""
|
|
"Trace messages are normally sent to C<stderr>, unless you register a "
|
|
"callback to send them somewhere else (see L</set-event-callback>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6884
|
|
msgid "set-uuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6886
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-uuid device uuid\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6888 ../src/guestfs-actions.pod:11177
|
|
msgid "Set the filesystem UUID on C<device> to C<uuid>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6890 ../src/guestfs-actions.pod:11179
|
|
msgid "Only some filesystem types support setting UUIDs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6892
|
|
msgid "To read the UUID on a filesystem, call L</vfs-uuid>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6894
|
|
msgid "set-verbose"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6896
|
|
msgid "verbose"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6898
|
|
#, no-wrap
|
|
msgid ""
|
|
" set-verbose true|false\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6900 ../src/guestfs-actions.pod:11193
|
|
msgid "If C<verbose> is true, this turns on verbose messages."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6902 ../src/guestfs-actions.pod:11195
|
|
msgid ""
|
|
"Verbose messages are disabled unless the environment variable "
|
|
"C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6905
|
|
msgid ""
|
|
"Verbose messages are normally sent to C<stderr>, unless you register a "
|
|
"callback to send them somewhere else (see L</set-event-callback>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6909
|
|
msgid "setcon"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6911
|
|
#, no-wrap
|
|
msgid ""
|
|
" setcon context\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6913 ../src/guestfs-actions.pod:11212
|
|
msgid ""
|
|
"This sets the SELinux security context of the daemon to the string "
|
|
"C<context>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6916 ../src/guestfs-actions.pod:11215
|
|
msgid "See the documentation about SELINUX in L<guestfs(3)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6918
|
|
msgid "setxattr"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6920
|
|
#, no-wrap
|
|
msgid ""
|
|
" setxattr xattr val vallen path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6922 ../src/guestfs-actions.pod:11230
|
|
msgid ""
|
|
"This call sets the extended attribute named C<xattr> of the file C<path> to "
|
|
"the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6926
|
|
msgid "See also: L</lsetxattr>, L<attr(5)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6928
|
|
msgid "sfdisk"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6930
|
|
#, no-wrap
|
|
msgid ""
|
|
" sfdisk device cyls heads sectors 'lines ...'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6932 ../src/guestfs-actions.pod:11257
|
|
msgid ""
|
|
"This is a direct interface to the L<sfdisk(8)> program for creating "
|
|
"partitions on block devices."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6935 ../src/guestfs-actions.pod:11260
|
|
msgid "C<device> should be a block device, for example C</dev/sda>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6937 ../src/guestfs-actions.pod:11262
|
|
msgid ""
|
|
"C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
|
|
"sectors on the device, which are passed directly to sfdisk as the I<-C>, "
|
|
"I<-H> and I<-S> parameters. If you pass C<0> for any of these, then the "
|
|
"corresponding parameter is omitted. Usually for 'large' disks, you can just "
|
|
"pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
|
|
"the kernel) cannot work out the right geometry and you will need to tell it."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6945 ../src/guestfs-actions.pod:11270
|
|
msgid ""
|
|
"C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
|
|
"refer to the L<sfdisk(8)> manpage."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6948 ../src/guestfs-actions.pod:11273
|
|
msgid ""
|
|
"To create a single partition occupying the whole disk, you would pass "
|
|
"C<lines> as a single element list, when the single element being the string "
|
|
"C<,> (comma)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6952
|
|
msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6955 ../fish/guestfish-actions.pod:6975 ../fish/guestfish-actions.pod:6994
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</part-add> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6962
|
|
msgid "sfdiskM"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6964
|
|
#, no-wrap
|
|
msgid ""
|
|
" sfdiskM device 'lines ...'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6966
|
|
msgid ""
|
|
"This is a simplified interface to the L</sfdisk> command, where partition "
|
|
"sizes are specified in megabytes only (rounded to the nearest cylinder) and "
|
|
"you don't need to specify the cyls, heads and sectors parameters which were "
|
|
"rarely if ever used anyway."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6972
|
|
msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:6982
|
|
msgid "sfdisk-N"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:6984
|
|
#, no-wrap
|
|
msgid ""
|
|
" sfdisk-N device partnum cyls heads sectors line\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6986 ../src/guestfs-actions.pod:11329
|
|
msgid ""
|
|
"This runs L<sfdisk(8)> option to modify just the single partition C<n> "
|
|
"(note: C<n> counts from 1)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6989
|
|
msgid ""
|
|
"For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
|
|
"cyls/heads/sectors parameters."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:6992
|
|
msgid "See also: L</part-add>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7001
|
|
msgid "sfdisk-disk-geometry"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7003
|
|
#, no-wrap
|
|
msgid ""
|
|
" sfdisk-disk-geometry device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7005
|
|
msgid ""
|
|
"This displays the disk geometry of C<device> read from the partition table. "
|
|
"Especially in the case where the underlying block device has been resized, "
|
|
"this can be different from the kernel's idea of the geometry (see "
|
|
"L</sfdisk-kernel-geometry>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7010 ../fish/guestfish-actions.pod:7019 ../src/guestfs-actions.pod:11352 ../src/guestfs-actions.pod:11368
|
|
msgid "The result is in human-readable format, and not designed to be parsed."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7013
|
|
msgid "sfdisk-kernel-geometry"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7015
|
|
#, no-wrap
|
|
msgid ""
|
|
" sfdisk-kernel-geometry device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7017 ../src/guestfs-actions.pod:11366
|
|
msgid "This displays the kernel's idea of the geometry of C<device>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7022
|
|
msgid "sfdisk-l"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7024
|
|
#, no-wrap
|
|
msgid ""
|
|
" sfdisk-l device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7026 ../src/guestfs-actions.pod:11389
|
|
msgid ""
|
|
"This displays the partition table on C<device>, in the human-readable output "
|
|
"of the L<sfdisk(8)> command. It is not intended to be parsed."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7030
|
|
msgid "See also: L</part-list>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7032
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</part-list> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7039
|
|
msgid "sh"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7041
|
|
#, no-wrap
|
|
msgid ""
|
|
" sh command\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7043 ../src/guestfs-actions.pod:11406
|
|
msgid ""
|
|
"This call runs a command from the guest filesystem via the guest's "
|
|
"C</bin/sh>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7046
|
|
msgid "This is like L</command>, but passes the command to:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7048 ../src/guestfs-actions.pod:11411
|
|
#, no-wrap
|
|
msgid ""
|
|
" /bin/sh -c \"command\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7050 ../src/guestfs-actions.pod:11413
|
|
msgid ""
|
|
"Depending on the guest's shell, this usually results in wildcards being "
|
|
"expanded, shell expressions being interpolated and so on."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7054
|
|
msgid "All the provisos about L</command> apply to this call."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7056
|
|
msgid "sh-lines"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7058
|
|
#, no-wrap
|
|
msgid ""
|
|
" sh-lines command\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7060
|
|
msgid "This is the same as L</sh>, but splits the result into a list of lines."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7063
|
|
msgid "See also: L</command-lines>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7065
|
|
msgid "shutdown"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7067
|
|
#, no-wrap
|
|
msgid ""
|
|
" shutdown\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7069
|
|
msgid ""
|
|
"This is the opposite of L</launch>. It performs an orderly shutdown of the "
|
|
"backend process(es). If the autosync flag is set (which is the default) "
|
|
"then the disk image is synchronized."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7073 ../src/guestfs-actions.pod:11450
|
|
msgid ""
|
|
"If the subprocess exits with an error then this function will return an "
|
|
"error, which should I<not> be ignored (it may indicate that the disk image "
|
|
"could not be written out properly)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7077 ../src/guestfs-actions.pod:11454
|
|
msgid "It is safe to call this multiple times. Extra calls are ignored."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7079
|
|
msgid ""
|
|
"This call does I<not> close or free up the handle. You still need to call "
|
|
"L</close> afterwards."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7082
|
|
msgid ""
|
|
"L</close> will call this if you don't do it explicitly, but note that any "
|
|
"errors are ignored in that case."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7085
|
|
msgid "sleep"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7087
|
|
#, no-wrap
|
|
msgid ""
|
|
" sleep secs\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7089 ../src/guestfs-actions.pod:11472
|
|
msgid "Sleep for C<secs> seconds."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7091
|
|
msgid "stat"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7093
|
|
#, no-wrap
|
|
msgid ""
|
|
" stat path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7097 ../src/guestfs-actions.pod:11486
|
|
msgid "This is the same as the C<stat(2)> system call."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7099
|
|
msgid "statvfs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7101
|
|
#, no-wrap
|
|
msgid ""
|
|
" statvfs path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7103 ../src/guestfs-actions.pod:11500
|
|
msgid ""
|
|
"Returns file system statistics for any mounted file system. C<path> should "
|
|
"be a file or directory in the mounted file system (typically it is the mount "
|
|
"point itself, but it doesn't need to be)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7107 ../src/guestfs-actions.pod:11504
|
|
msgid "This is the same as the C<statvfs(2)> system call."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7109
|
|
msgid "strings"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7111
|
|
#, no-wrap
|
|
msgid ""
|
|
" strings path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7113 ../src/guestfs-actions.pod:11518
|
|
msgid ""
|
|
"This runs the L<strings(1)> command on a file and returns the list of "
|
|
"printable strings found."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7119
|
|
msgid "strings-e"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7121
|
|
#, no-wrap
|
|
msgid ""
|
|
" strings-e encoding path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7123
|
|
msgid ""
|
|
"This is like the L</strings> command, but allows you to specify the encoding "
|
|
"of strings that are looked for in the source file C<path>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7127 ../src/guestfs-actions.pod:11541
|
|
msgid "Allowed encodings are:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:7131 ../src/guestfs-actions.pod:11545
|
|
msgid "s"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7133
|
|
msgid ""
|
|
"Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
|
|
"ISO-8859-X (this is what L</strings> uses)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:7136 ../src/guestfs-actions.pod:11550
|
|
msgid "S"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7138 ../src/guestfs-actions.pod:11552
|
|
msgid "Single 8-bit-byte characters."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:7140 ../src/guestfs-actions.pod:11554
|
|
msgid "b"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7142 ../src/guestfs-actions.pod:11556
|
|
msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:7145 ../src/guestfs-actions.pod:11559
|
|
msgid "l (lower case letter L)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7147 ../src/guestfs-actions.pod:11561
|
|
msgid ""
|
|
"16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
|
|
"examining binaries in Windows guests."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:7150 ../src/guestfs-actions.pod:11564
|
|
msgid "B"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7152 ../src/guestfs-actions.pod:11566
|
|
msgid "32-bit big endian such as UCS-4BE."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:7154 ../src/guestfs-actions.pod:11568
|
|
msgid "L"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7156 ../src/guestfs-actions.pod:11570
|
|
msgid "32-bit little endian such as UCS-4LE."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7160 ../src/guestfs-actions.pod:11574
|
|
msgid "The returned strings are transcoded to UTF-8."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7165
|
|
msgid "swapoff-device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7167
|
|
#, no-wrap
|
|
msgid ""
|
|
" swapoff-device device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7169
|
|
msgid ""
|
|
"This command disables the libguestfs appliance swap device or partition "
|
|
"named C<device>. See L</swapon-device>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7173
|
|
msgid "swapoff-file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7175
|
|
#, no-wrap
|
|
msgid ""
|
|
" swapoff-file file\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7177 ../src/guestfs-actions.pod:11605
|
|
msgid "This command disables the libguestfs appliance swap on file."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7179
|
|
msgid "swapoff-label"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7181
|
|
#, no-wrap
|
|
msgid ""
|
|
" swapoff-label label\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7183 ../src/guestfs-actions.pod:11617
|
|
msgid ""
|
|
"This command disables the libguestfs appliance swap on labeled swap "
|
|
"partition."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7186
|
|
msgid "swapoff-uuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7188
|
|
#, no-wrap
|
|
msgid ""
|
|
" swapoff-uuid uuid\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7190 ../src/guestfs-actions.pod:11630
|
|
msgid ""
|
|
"This command disables the libguestfs appliance swap partition with the given "
|
|
"UUID."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7193
|
|
msgid "swapon-device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7195
|
|
#, no-wrap
|
|
msgid ""
|
|
" swapon-device device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7197
|
|
msgid ""
|
|
"This command enables the libguestfs appliance to use the swap device or "
|
|
"partition named C<device>. The increased memory is made available for all "
|
|
"commands, for example those run using L</command> or L</sh>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7202 ../src/guestfs-actions.pod:11648
|
|
msgid ""
|
|
"Note that you should not swap to existing guest swap partitions unless you "
|
|
"know what you are doing. They may contain hibernation information, or other "
|
|
"information that the guest doesn't want you to trash. You also risk leaking "
|
|
"information about the host to the guest this way. Instead, attach a new "
|
|
"host device to the guest and swap on that."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7209
|
|
msgid "swapon-file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7211
|
|
#, no-wrap
|
|
msgid ""
|
|
" swapon-file file\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7213
|
|
msgid "This command enables swap to a file. See L</swapon-device> for other notes."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7216
|
|
msgid "swapon-label"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7218
|
|
#, no-wrap
|
|
msgid ""
|
|
" swapon-label label\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7220
|
|
msgid ""
|
|
"This command enables swap to a labeled swap partition. See "
|
|
"L</swapon-device> for other notes."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7223
|
|
msgid "swapon-uuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7225
|
|
#, no-wrap
|
|
msgid ""
|
|
" swapon-uuid uuid\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7227
|
|
msgid ""
|
|
"This command enables swap to a swap partition with the given UUID. See "
|
|
"L</swapon-device> for other notes."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7230
|
|
msgid "sync"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7232
|
|
#, no-wrap
|
|
msgid ""
|
|
" sync\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7234 ../src/guestfs-actions.pod:11703
|
|
msgid ""
|
|
"This syncs the disk, so that any writes are flushed through to the "
|
|
"underlying disk image."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7237 ../src/guestfs-actions.pod:11706
|
|
msgid ""
|
|
"You should always call this if you have modified a disk image, before "
|
|
"closing the handle."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7240
|
|
msgid "syslinux"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7242
|
|
#, no-wrap
|
|
msgid ""
|
|
" syslinux device [directory:..]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7244 ../src/guestfs-actions.pod:11727
|
|
msgid "Install the SYSLINUX bootloader on C<device>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7246
|
|
msgid ""
|
|
"The device parameter must be either a whole disk formatted as a FAT "
|
|
"filesystem, or a partition formatted as a FAT filesystem. In the latter "
|
|
"case, the partition should be marked as \"active\" (L</part-set-bootable>) "
|
|
"and a Master Boot Record must be installed (eg. using L</pwrite-device>) on "
|
|
"the first sector of the whole disk. The SYSLINUX package comes with some "
|
|
"suitable Master Boot Records. See the L<syslinux(1)> man page for further "
|
|
"information."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:7259 ../src/guestfs-actions.pod:11742
|
|
msgid "C<directory>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7261 ../src/guestfs-actions.pod:11744
|
|
msgid ""
|
|
"Install SYSLINUX in the named subdirectory, instead of in the root directory "
|
|
"of the FAT filesystem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7266 ../src/guestfs-actions.pod:11749
|
|
msgid ""
|
|
"Additional configuration can be supplied to SYSLINUX by placing a file "
|
|
"called C<syslinux.cfg> on the FAT filesystem, either in the root directory, "
|
|
"or under C<directory> if that optional argument is being used. For further "
|
|
"information about the contents of this file, see L<syslinux(1)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7272
|
|
msgid "See also L</extlinux>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7276
|
|
msgid "tail"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7278
|
|
#, no-wrap
|
|
msgid ""
|
|
" tail path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7280 ../src/guestfs-actions.pod:11789
|
|
msgid "This command returns up to the last 10 lines of a file as a list of strings."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7286
|
|
msgid "tail-n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7288
|
|
#, no-wrap
|
|
msgid ""
|
|
" tail-n nrlines path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7290 ../src/guestfs-actions.pod:11808
|
|
msgid ""
|
|
"If the parameter C<nrlines> is a positive number, this returns the last "
|
|
"C<nrlines> lines of the file C<path>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7293 ../src/guestfs-actions.pod:11811
|
|
msgid ""
|
|
"If the parameter C<nrlines> is a negative number, this returns lines from "
|
|
"the file C<path>, starting with the C<-nrlines>th line."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7301
|
|
msgid "tar-in"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7303
|
|
msgid "tar-in-opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7305
|
|
#, no-wrap
|
|
msgid ""
|
|
" tar-in (tarfile|-) directory [compress:..]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7307 ../src/guestfs-actions.pod:11854
|
|
msgid "This command uploads and unpacks local file C<tarfile> into C<directory>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7309 ../src/guestfs-actions.pod:11856
|
|
msgid ""
|
|
"The optional C<compress> flag controls compression. If not given, then the "
|
|
"input should be an uncompressed tar file. Otherwise one of the following "
|
|
"strings may be given to select the compression type of the input file: "
|
|
"C<compress>, C<gzip>, C<bzip2>, C<xz>, C<lzop>. (Note that not all builds "
|
|
"of libguestfs will support all of these compression types)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7320
|
|
msgid "tar-out"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7322
|
|
msgid "tar-out-opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7324
|
|
#, no-wrap
|
|
msgid ""
|
|
" tar-out directory (tarfile|-) [compress:..] [numericowner:true|false] "
|
|
"[excludes:..]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7326 ../src/guestfs-actions.pod:11922
|
|
msgid ""
|
|
"This command packs the contents of C<directory> and downloads it to local "
|
|
"file C<tarfile>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7329 ../src/guestfs-actions.pod:11925
|
|
msgid ""
|
|
"The optional C<compress> flag controls compression. If not given, then the "
|
|
"output will be an uncompressed tar file. Otherwise one of the following "
|
|
"strings may be given to select the compression type of the output file: "
|
|
"C<compress>, C<gzip>, C<bzip2>, C<xz>, C<lzop>. (Note that not all builds "
|
|
"of libguestfs will support all of these compression types)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7336 ../src/guestfs-actions.pod:11932
|
|
msgid "The other optional arguments are:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:7340 ../src/guestfs-actions.pod:11936
|
|
msgid "C<excludes>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7342 ../src/guestfs-actions.pod:11938
|
|
msgid "A list of wildcards. Files are excluded if they match any of the wildcards."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:7345 ../src/guestfs-actions.pod:11941
|
|
msgid "C<numericowner>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7347 ../src/guestfs-actions.pod:11943
|
|
msgid ""
|
|
"If set to true, the output tar file will contain UID/GID numbers instead of "
|
|
"user/group names."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7356
|
|
msgid "tgz-in"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7358
|
|
#, no-wrap
|
|
msgid ""
|
|
" tgz-in (tarball|-) directory\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7360 ../src/guestfs-actions.pod:11990
|
|
msgid ""
|
|
"This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
|
|
"tar file) into C<directory>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7365 ../fish/guestfish-actions.pod:7519
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</tar-in> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7372
|
|
msgid "tgz-out"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7374
|
|
#, no-wrap
|
|
msgid ""
|
|
" tgz-out directory (tarball|-)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7376 ../src/guestfs-actions.pod:12011
|
|
msgid ""
|
|
"This command packs the contents of C<directory> and downloads it to local "
|
|
"file C<tarball>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7381 ../fish/guestfish-actions.pod:7535
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</tar-out> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7388
|
|
msgid "touch"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7390
|
|
#, no-wrap
|
|
msgid ""
|
|
" touch path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7392 ../src/guestfs-actions.pod:12024
|
|
msgid ""
|
|
"Touch acts like the L<touch(1)> command. It can be used to update the "
|
|
"timestamps on a file, or, if the file does not exist, to create a new "
|
|
"zero-length file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7396 ../src/guestfs-actions.pod:12028
|
|
msgid ""
|
|
"This command only works on regular files, and will fail on other file types "
|
|
"such as directories, symbolic links, block special etc."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7399
|
|
msgid "truncate"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7401
|
|
#, no-wrap
|
|
msgid ""
|
|
" truncate path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7403 ../src/guestfs-actions.pod:12041
|
|
msgid ""
|
|
"This command truncates C<path> to a zero-length file. The file must exist "
|
|
"already."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7406
|
|
msgid "truncate-size"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7408
|
|
#, no-wrap
|
|
msgid ""
|
|
" truncate-size path size\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7410 ../src/guestfs-actions.pod:12055
|
|
msgid ""
|
|
"This command truncates C<path> to size C<size> bytes. The file must exist "
|
|
"already."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7413
|
|
msgid ""
|
|
"If the current file size is less than C<size> then the file is extended to "
|
|
"the required size with zero bytes. This creates a sparse file (ie. disk "
|
|
"blocks are not allocated for the file until you write to it). To create a "
|
|
"non-sparse file of zeroes, use L</fallocate64> instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7419
|
|
msgid "tune2fs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7421
|
|
#, no-wrap
|
|
msgid ""
|
|
" tune2fs device [force:true|false] [maxmountcount:N] [mountcount:N] "
|
|
"[errorbehavior:..] [group:N] [intervalbetweenchecks:N] "
|
|
"[reservedblockspercentage:N] [lastmounteddirectory:..] "
|
|
"[reservedblockscount:N] [user:N]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7423 ../src/guestfs-actions.pod:12091
|
|
msgid ""
|
|
"This call allows you to adjust various filesystem parameters of an "
|
|
"ext2/ext3/ext4 filesystem called C<device>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7432 ../src/guestfs-actions.pod:12100
|
|
msgid ""
|
|
"Force tune2fs to complete the operation even in the face of errors. This is "
|
|
"the same as the tune2fs C<-f> option."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:7435 ../src/guestfs-actions.pod:12103
|
|
msgid "C<maxmountcount>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7437 ../src/guestfs-actions.pod:12105
|
|
msgid ""
|
|
"Set the number of mounts after which the filesystem is checked by "
|
|
"L<e2fsck(8)>. If this is C<0> then the number of mounts is disregarded. "
|
|
"This is the same as the tune2fs C<-c> option."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:7441 ../src/guestfs-actions.pod:12109
|
|
msgid "C<mountcount>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7443 ../src/guestfs-actions.pod:12111
|
|
msgid ""
|
|
"Set the number of times the filesystem has been mounted. This is the same "
|
|
"as the tune2fs C<-C> option."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:7446 ../src/guestfs-actions.pod:12114
|
|
msgid "C<errorbehavior>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7448 ../src/guestfs-actions.pod:12116
|
|
msgid ""
|
|
"Change the behavior of the kernel code when errors are detected. Possible "
|
|
"values currently are: C<continue>, C<remount-ro>, C<panic>. In practice "
|
|
"these options don't really make any difference, particularly for write "
|
|
"errors."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7453 ../src/guestfs-actions.pod:12121
|
|
msgid "This is the same as the tune2fs C<-e> option."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:7455 ../src/guestfs-actions.pod:12123
|
|
msgid "C<group>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7457 ../src/guestfs-actions.pod:12125
|
|
msgid ""
|
|
"Set the group which can use reserved filesystem blocks. This is the same as "
|
|
"the tune2fs C<-g> option except that it can only be specified as a number."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:7461 ../src/guestfs-actions.pod:12129
|
|
msgid "C<intervalbetweenchecks>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7463 ../src/guestfs-actions.pod:12131
|
|
msgid ""
|
|
"Adjust the maximal time between two filesystem checks (in seconds). If the "
|
|
"option is passed as C<0> then time-dependent checking is disabled."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7467 ../src/guestfs-actions.pod:12135
|
|
msgid "This is the same as the tune2fs C<-i> option."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:7469 ../src/guestfs-actions.pod:12137
|
|
msgid "C<reservedblockspercentage>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7471 ../src/guestfs-actions.pod:12139
|
|
msgid ""
|
|
"Set the percentage of the filesystem which may only be allocated by "
|
|
"privileged processes. This is the same as the tune2fs C<-m> option."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:7475 ../src/guestfs-actions.pod:12143
|
|
msgid "C<lastmounteddirectory>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7477 ../src/guestfs-actions.pod:12145
|
|
msgid ""
|
|
"Set the last mounted directory. This is the same as the tune2fs C<-M> "
|
|
"option."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:7480 ../src/guestfs-actions.pod:12148
|
|
msgid ""
|
|
"C<reservedblockscount> Set the number of reserved filesystem blocks. This "
|
|
"is the same as the tune2fs C<-r> option."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish-actions.pod:7484 ../src/guestfs-actions.pod:12152
|
|
msgid "C<user>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7486 ../src/guestfs-actions.pod:12154
|
|
msgid ""
|
|
"Set the user who can use the reserved filesystem blocks. This is the same "
|
|
"as the tune2fs C<-u> option except that it can only be specified as a "
|
|
"number."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7492
|
|
msgid ""
|
|
"To get the current values of filesystem parameters, see L</tune2fs-l>. For "
|
|
"precise details of how tune2fs works, see the L<tune2fs(8)> man page."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7498
|
|
msgid "tune2fs-l"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7500
|
|
#, no-wrap
|
|
msgid ""
|
|
" tune2fs-l device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7502 ../src/guestfs-actions.pod:12196
|
|
msgid ""
|
|
"This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
|
|
"C<device>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7505 ../src/guestfs-actions.pod:12199
|
|
msgid ""
|
|
"It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
|
|
"for more details. The list of fields returned isn't clearly defined, and "
|
|
"depends on both the version of C<tune2fs> that libguestfs was built against, "
|
|
"and the filesystem itself."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7510
|
|
msgid "txz-in"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7512
|
|
#, no-wrap
|
|
msgid ""
|
|
" txz-in (tarball|-) directory\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7514 ../src/guestfs-actions.pod:12226
|
|
msgid ""
|
|
"This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
|
|
"tar file) into C<directory>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7526
|
|
msgid "txz-out"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7528
|
|
#, no-wrap
|
|
msgid ""
|
|
" txz-out directory (tarball|-)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7530 ../src/guestfs-actions.pod:12247
|
|
msgid ""
|
|
"This command packs the contents of C<directory> and downloads it to local "
|
|
"file C<tarball> (as an xz compressed tar archive)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7542
|
|
msgid "umask"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7544
|
|
#, no-wrap
|
|
msgid ""
|
|
" umask mask\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7546 ../src/guestfs-actions.pod:12260
|
|
msgid ""
|
|
"This function sets the mask used for creating new files and device nodes to "
|
|
"C<mask & 0777>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7549 ../src/guestfs-actions.pod:12263
|
|
msgid ""
|
|
"Typical umask values would be C<022> which creates new files with "
|
|
"permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
|
|
"new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7554 ../src/guestfs-actions.pod:12268
|
|
msgid ""
|
|
"The default umask is C<022>. This is important because it means that "
|
|
"directories and device nodes will be created with C<0644> or C<0755> mode "
|
|
"even if you specify C<0777>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7558
|
|
msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7561 ../src/guestfs-actions.pod:12275
|
|
msgid "This call returns the previous umask."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7563
|
|
msgid "umount"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7565
|
|
msgid "unmount"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7567
|
|
msgid "umount-opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7569
|
|
#, no-wrap
|
|
msgid ""
|
|
" umount pathordevice [force:true|false] [lazyunmount:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7571 ../src/guestfs-actions.pod:12309
|
|
msgid ""
|
|
"This unmounts the given filesystem. The filesystem may be specified either "
|
|
"by its mountpoint (path) or the device which contains the filesystem."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7577
|
|
msgid "umount-all"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7579
|
|
msgid "unmount-all"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7581
|
|
#, no-wrap
|
|
msgid ""
|
|
" umount-all\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7583 ../src/guestfs-actions.pod:12344
|
|
msgid "This unmounts all mounted filesystems."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7585 ../src/guestfs-actions.pod:12346
|
|
msgid "Some internal mounts are not unmounted by this call."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7587
|
|
msgid "umount-local"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7589
|
|
#, no-wrap
|
|
msgid ""
|
|
" umount-local [retry:true|false]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7591 ../src/guestfs-actions.pod:12365
|
|
msgid ""
|
|
"If libguestfs is exporting the filesystem on a local mountpoint, then this "
|
|
"unmounts it."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7598
|
|
msgid "upload"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7600
|
|
#, no-wrap
|
|
msgid ""
|
|
" upload (filename|-) remotefilename\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7602 ../fish/guestfish-actions.pod:7615 ../src/guestfs-actions.pod:12401 ../src/guestfs-actions.pod:12425
|
|
msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7607
|
|
msgid "See also L</download>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7611
|
|
msgid "upload-offset"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7613
|
|
#, no-wrap
|
|
msgid ""
|
|
" upload-offset (filename|-) remotefilename offset\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7618 ../src/guestfs-actions.pod:12428
|
|
msgid ""
|
|
"C<remotefilename> is overwritten starting at the byte C<offset> specified. "
|
|
"The intention is to overwrite parts of existing files or devices, although "
|
|
"if a non-existant file is specified then it is created with a \"hole\" "
|
|
"before C<offset>. The size of the data written is implicit in the size of "
|
|
"the source C<filename>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7625
|
|
msgid ""
|
|
"Note that there is no limit on the amount of data that can be uploaded with "
|
|
"this call, unlike with L</pwrite>, and this call always writes the full "
|
|
"amount unless an error occurs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7630
|
|
msgid "See also L</upload>, L</pwrite>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7634
|
|
msgid "user-cancel"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7636
|
|
#, no-wrap
|
|
msgid ""
|
|
" user-cancel\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7638 ../src/guestfs-actions.pod:12456
|
|
msgid "This function cancels the current upload or download operation."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7640 ../src/guestfs-actions.pod:12458
|
|
msgid ""
|
|
"Unlike most other libguestfs calls, this function is signal safe and thread "
|
|
"safe. You can call it from a signal handler or from another thread, without "
|
|
"needing to do any locking."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7644 ../src/guestfs-actions.pod:12462
|
|
msgid ""
|
|
"The transfer that was in progress (if there is one) will stop shortly "
|
|
"afterwards, and will return an error. The errno (see "
|
|
"L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
|
|
"out if the operation was cancelled or failed because of another error."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7650 ../src/guestfs-actions.pod:12468
|
|
msgid ""
|
|
"No cleanup is performed: for example, if a file was being uploaded then "
|
|
"after cancellation there may be a partially uploaded file. It is the "
|
|
"caller's responsibility to clean up if necessary."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7654
|
|
msgid "There are two common places that you might call L</user-cancel>:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7656 ../src/guestfs-actions.pod:12474
|
|
msgid ""
|
|
"In an interactive text-based program, you might call it from a C<SIGINT> "
|
|
"signal handler so that pressing C<^C> cancels the current operation. (You "
|
|
"also need to call L</guestfs_set_pgroup> so that child processes don't "
|
|
"receive the C<^C> signal)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7661 ../src/guestfs-actions.pod:12479
|
|
msgid ""
|
|
"In a graphical program, when the main thread is displaying a progress bar "
|
|
"with a cancel button, wire up the cancel button to call this function."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7665
|
|
msgid "utimens"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7667
|
|
#, no-wrap
|
|
msgid ""
|
|
" utimens path atsecs atnsecs mtsecs mtnsecs\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7669 ../src/guestfs-actions.pod:12497
|
|
msgid "This command sets the timestamps of a file with nanosecond precision."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7672 ../src/guestfs-actions.pod:12500
|
|
msgid ""
|
|
"C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
|
|
"from the epoch."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7675 ../src/guestfs-actions.pod:12503
|
|
msgid ""
|
|
"C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
|
|
"nanoseconds from the epoch."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7678 ../src/guestfs-actions.pod:12506
|
|
msgid ""
|
|
"If the C<*nsecs> field contains the special value C<-1> then the "
|
|
"corresponding timestamp is set to the current time. (The C<*secs> field is "
|
|
"ignored in this case)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7682 ../src/guestfs-actions.pod:12510
|
|
msgid ""
|
|
"If the C<*nsecs> field contains the special value C<-2> then the "
|
|
"corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
|
|
"in this case)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7686
|
|
msgid "utsname"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7688
|
|
#, no-wrap
|
|
msgid ""
|
|
" utsname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7690 ../src/guestfs-actions.pod:12523
|
|
msgid ""
|
|
"This returns the kernel version of the appliance, where this is available. "
|
|
"This information is only useful for debugging. Nothing in the returned "
|
|
"structure is defined by the API."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7694
|
|
msgid "version"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7696
|
|
#, no-wrap
|
|
msgid ""
|
|
" version\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7698 ../src/guestfs-actions.pod:12538
|
|
msgid "Return the libguestfs version number that the program is linked against."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7701 ../src/guestfs-actions.pod:12541
|
|
msgid ""
|
|
"Note that because of dynamic linking this is not necessarily the version of "
|
|
"libguestfs that you compiled against. You can compile the program, and then "
|
|
"at runtime dynamically link against a completely different C<libguestfs.so> "
|
|
"library."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7706 ../src/guestfs-actions.pod:12546
|
|
msgid ""
|
|
"This call was added in version C<1.0.58>. In previous versions of "
|
|
"libguestfs there was no way to get the version number. From C code you can "
|
|
"use dynamic linker functions to find out if this symbol exists (if it "
|
|
"doesn't, then it's an earlier version)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7712 ../src/guestfs-actions.pod:12552
|
|
msgid ""
|
|
"The call returns a structure with four elements. The first three (C<major>, "
|
|
"C<minor> and C<release>) are numbers and correspond to the usual version "
|
|
"triplet. The fourth element (C<extra>) is a string and is normally empty, "
|
|
"but may be used for distro-specific information."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7718 ../src/guestfs-actions.pod:12558
|
|
msgid "To construct the original version string: C<$major.$minor.$release$extra>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7721 ../src/guestfs-actions.pod:12561
|
|
msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7723
|
|
msgid ""
|
|
"I<Note:> Don't use this call to test for availability of features. In "
|
|
"enterprise distributions we backport features from later versions into "
|
|
"earlier versions, making this an unreliable way to test for features. Use "
|
|
"L</available> or L</feature-available> instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7729
|
|
msgid "vfs-label"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7731
|
|
#, no-wrap
|
|
msgid ""
|
|
" vfs-label mountable\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7733 ../src/guestfs-actions.pod:12581
|
|
msgid "This returns the label of the filesystem on C<mountable>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7735 ../src/guestfs-actions.pod:12583
|
|
msgid "If the filesystem is unlabeled, this returns the empty string."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7737
|
|
msgid "To find a filesystem from the label, use L</findfs-label>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7739
|
|
msgid "vfs-type"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7741
|
|
#, no-wrap
|
|
msgid ""
|
|
" vfs-type mountable\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7743 ../src/guestfs-actions.pod:12598
|
|
msgid ""
|
|
"This command gets the filesystem type corresponding to the filesystem on "
|
|
"C<mountable>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7746 ../src/guestfs-actions.pod:12601
|
|
msgid ""
|
|
"For most filesystems, the result is the name of the Linux VFS module which "
|
|
"would be used to mount this filesystem if you mounted it without specifying "
|
|
"the filesystem type. For example a string such as C<ext3> or C<ntfs>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7751
|
|
msgid "vfs-uuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7753
|
|
#, no-wrap
|
|
msgid ""
|
|
" vfs-uuid mountable\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7755 ../src/guestfs-actions.pod:12617
|
|
msgid "This returns the filesystem UUID of the filesystem on C<mountable>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7757 ../src/guestfs-actions.pod:12619
|
|
msgid "If the filesystem does not have a UUID, this returns the empty string."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7759
|
|
msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7761
|
|
msgid "vg-activate"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7763
|
|
#, no-wrap
|
|
msgid ""
|
|
" vg-activate true|false 'volgroups ...'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7765 ../src/guestfs-actions.pod:12635
|
|
msgid ""
|
|
"This command activates or (if C<activate> is false) deactivates all logical "
|
|
"volumes in the listed volume groups C<volgroups>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7768 ../src/guestfs-actions.pod:12638
|
|
msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7770 ../src/guestfs-actions.pod:12640
|
|
msgid ""
|
|
"Note that if C<volgroups> is an empty list then B<all> volume groups are "
|
|
"activated or deactivated."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7773
|
|
msgid "vg-activate-all"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7775
|
|
#, no-wrap
|
|
msgid ""
|
|
" vg-activate-all true|false\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7777 ../src/guestfs-actions.pod:12653
|
|
msgid ""
|
|
"This command activates or (if C<activate> is false) deactivates all logical "
|
|
"volumes in all volume groups."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7780 ../src/guestfs-actions.pod:12656
|
|
msgid "This command is the same as running C<vgchange -a y|n>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7782
|
|
msgid "vgchange-uuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7784
|
|
#, no-wrap
|
|
msgid ""
|
|
" vgchange-uuid vg\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7786 ../src/guestfs-actions.pod:12668
|
|
msgid "Generate a new random UUID for the volume group C<vg>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7788
|
|
msgid "vgchange-uuid-all"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7790
|
|
#, no-wrap
|
|
msgid ""
|
|
" vgchange-uuid-all\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7792 ../src/guestfs-actions.pod:12679
|
|
msgid "Generate new random UUIDs for all volume groups."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7794
|
|
msgid "vgcreate"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7796
|
|
#, no-wrap
|
|
msgid ""
|
|
" vgcreate volgroup 'physvols ...'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7798 ../src/guestfs-actions.pod:12692
|
|
msgid ""
|
|
"This creates an LVM volume group called C<volgroup> from the non-empty list "
|
|
"of physical volumes C<physvols>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7801
|
|
msgid "vglvuuids"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7803
|
|
#, no-wrap
|
|
msgid ""
|
|
" vglvuuids vgname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7805 ../src/guestfs-actions.pod:12705
|
|
msgid ""
|
|
"Given a VG called C<vgname>, this returns the UUIDs of all the logical "
|
|
"volumes created in this volume group."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7808
|
|
msgid ""
|
|
"You can use this along with L</lvs> and L</lvuuid> calls to associate "
|
|
"logical volumes and volume groups."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7811
|
|
msgid "See also L</vgpvuuids>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7813
|
|
msgid "vgmeta"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7815
|
|
#, no-wrap
|
|
msgid ""
|
|
" vgmeta vgname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7817 ../src/guestfs-actions.pod:12726
|
|
msgid ""
|
|
"C<vgname> is an LVM volume group. This command examines the volume group "
|
|
"and returns its metadata."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7820 ../src/guestfs-actions.pod:12729
|
|
msgid ""
|
|
"Note that the metadata is an internal structure used by LVM, subject to "
|
|
"change at any time, and is provided for information only."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7823
|
|
msgid "vgpvuuids"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7825
|
|
#, no-wrap
|
|
msgid ""
|
|
" vgpvuuids vgname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7827 ../src/guestfs-actions.pod:12744
|
|
msgid ""
|
|
"Given a VG called C<vgname>, this returns the UUIDs of all the physical "
|
|
"volumes that this volume group resides on."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7830
|
|
msgid ""
|
|
"You can use this along with L</pvs> and L</pvuuid> calls to associate "
|
|
"physical volumes and volume groups."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7833
|
|
msgid "See also L</vglvuuids>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7835
|
|
msgid "vgremove"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7837
|
|
#, no-wrap
|
|
msgid ""
|
|
" vgremove vgname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7839 ../src/guestfs-actions.pod:12764
|
|
msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7841 ../src/guestfs-actions.pod:12766
|
|
msgid "This also forcibly removes all logical volumes in the volume group (if any)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7844
|
|
msgid "vgrename"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7846
|
|
#, no-wrap
|
|
msgid ""
|
|
" vgrename volgroup newvolgroup\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7848 ../src/guestfs-actions.pod:12780
|
|
msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7850
|
|
msgid "vgs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7852
|
|
#, no-wrap
|
|
msgid ""
|
|
" vgs\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7854 ../src/guestfs-actions.pod:12791
|
|
msgid ""
|
|
"List all the volumes groups detected. This is the equivalent of the "
|
|
"L<vgs(8)> command."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7857 ../src/guestfs-actions.pod:12794
|
|
msgid ""
|
|
"This returns a list of just the volume group names that were detected "
|
|
"(eg. C<VolGroup00>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7860
|
|
msgid "See also L</vgs-full>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7862
|
|
msgid "vgs-full"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7864
|
|
#, no-wrap
|
|
msgid ""
|
|
" vgs-full\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7866 ../src/guestfs-actions.pod:12810
|
|
msgid ""
|
|
"List all the volumes groups detected. This is the equivalent of the "
|
|
"L<vgs(8)> command. The \"full\" version includes all fields."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7869
|
|
msgid "vgscan"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7871
|
|
#, no-wrap
|
|
msgid ""
|
|
" vgscan\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7873 ../src/guestfs-actions.pod:12824
|
|
msgid ""
|
|
"This rescans all block devices and rebuilds the list of LVM physical "
|
|
"volumes, volume groups and logical volumes."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7876
|
|
msgid "vguuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7878
|
|
#, no-wrap
|
|
msgid ""
|
|
" vguuid vgname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7880 ../src/guestfs-actions.pod:12837
|
|
msgid "This command returns the UUID of the LVM VG named C<vgname>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7882
|
|
msgid "wc-c"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7884
|
|
#, no-wrap
|
|
msgid ""
|
|
" wc-c path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7886 ../src/guestfs-actions.pod:12877
|
|
msgid ""
|
|
"This command counts the characters in a file, using the C<wc -c> external "
|
|
"command."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7889
|
|
msgid "wc-l"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7891
|
|
#, no-wrap
|
|
msgid ""
|
|
" wc-l path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7893 ../src/guestfs-actions.pod:12890
|
|
msgid ""
|
|
"This command counts the lines in a file, using the C<wc -l> external "
|
|
"command."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7896
|
|
msgid "wc-w"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7898
|
|
#, no-wrap
|
|
msgid ""
|
|
" wc-w path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7900 ../src/guestfs-actions.pod:12903
|
|
msgid ""
|
|
"This command counts the words in a file, using the C<wc -w> external "
|
|
"command."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7903
|
|
msgid "wipefs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7905
|
|
#, no-wrap
|
|
msgid ""
|
|
" wipefs device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7907 ../src/guestfs-actions.pod:12916
|
|
msgid ""
|
|
"This command erases filesystem or RAID signatures from the specified "
|
|
"C<device> to make the filesystem invisible to libblkid."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7910 ../src/guestfs-actions.pod:12919
|
|
msgid ""
|
|
"This does not erase the filesystem itself nor any other data from the "
|
|
"C<device>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7913
|
|
msgid "Compare with L</zero> which zeroes the first few blocks of a device."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7916
|
|
msgid "write"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7918
|
|
#, no-wrap
|
|
msgid ""
|
|
" write path content\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7920 ../src/guestfs-actions.pod:12937
|
|
msgid ""
|
|
"This call creates a file called C<path>. The content of the file is the "
|
|
"string C<content> (which can contain any 8 bit data)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7923
|
|
msgid "See also L</write-append>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7925
|
|
msgid "write-append"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7927
|
|
#, no-wrap
|
|
msgid ""
|
|
" write-append path content\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7929 ../src/guestfs-actions.pod:12954
|
|
msgid ""
|
|
"This call appends C<content> to the end of file C<path>. If C<path> does "
|
|
"not exist, then a new file is created."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7932
|
|
msgid "See also L</write>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7934
|
|
msgid "write-file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7936
|
|
#, no-wrap
|
|
msgid ""
|
|
" write-file path content size\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7938 ../src/guestfs-actions.pod:12978
|
|
msgid ""
|
|
"This call creates a file called C<path>. The contents of the file is the "
|
|
"string C<content> (which can contain any 8 bit data), with length C<size>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7942 ../src/guestfs-actions.pod:12982
|
|
msgid ""
|
|
"As a special case, if C<size> is C<0> then the length is calculated using "
|
|
"C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7946 ../src/guestfs-actions.pod:12986
|
|
msgid ""
|
|
"I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
|
|
"I<not> work, even if the length is specified."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7952
|
|
msgid "I<This function is deprecated.> In new code, use the L</write> call instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7959
|
|
msgid "xfs-admin"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7961
|
|
#, no-wrap
|
|
msgid ""
|
|
" xfs-admin device [extunwritten:true|false] [imgfile:true|false] "
|
|
"[v2log:true|false] [projid32bit:true|false] [lazycounter:true|false] "
|
|
"[label:..] [uuid:..]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7963 ../src/guestfs-actions.pod:13016
|
|
msgid "Change the parameters of the XFS filesystem on C<device>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7965 ../src/guestfs-actions.pod:13018
|
|
msgid ""
|
|
"Devices that are mounted cannot be modified. Administrators must unmount "
|
|
"filesystems before this call can modify parameters."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7969
|
|
msgid ""
|
|
"Some of the parameters of a mounted filesystem can be examined and modified "
|
|
"using the L</xfs-info> and L</xfs-growfs> calls."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7975
|
|
msgid "xfs-growfs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7977
|
|
#, no-wrap
|
|
msgid ""
|
|
" xfs-growfs path [datasec:true|false] [logsec:true|false] [rtsec:true|false] "
|
|
"[datasize:N] [logsize:N] [rtsize:N] [rtextsize:N] [maxpct:N]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7979 ../src/guestfs-actions.pod:13073
|
|
msgid "Grow the XFS filesystem mounted at C<path>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7981 ../fish/guestfish-actions.pod:7994 ../src/guestfs-actions.pod:13075 ../src/guestfs-actions.pod:13114
|
|
msgid ""
|
|
"The returned struct contains geometry information. Missing fields are "
|
|
"returned as C<-1> (for numeric fields) or empty string."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7987
|
|
msgid "xfs-info"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:7989
|
|
#, no-wrap
|
|
msgid ""
|
|
" xfs-info pathordevice\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:7991 ../src/guestfs-actions.pod:13111
|
|
msgid ""
|
|
"C<pathordevice> is a mounted XFS filesystem or a device containing an XFS "
|
|
"filesystem. This command returns the geometry of the filesystem."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:7998
|
|
msgid "xfs-repair"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:8000
|
|
#, no-wrap
|
|
msgid ""
|
|
" xfs-repair device [forcelogzero:true|false] [nomodify:true|false] "
|
|
"[noprefetch:true|false] [forcegeometry:true|false] [maxmem:N] [ihashsize:N] "
|
|
"[bhashsize:N] [agstride:N] [logdev:..] [rtdev:..]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8002 ../src/guestfs-actions.pod:13147
|
|
msgid "Repair corrupt or damaged XFS filesystem on C<device>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8004 ../src/guestfs-actions.pod:13149
|
|
msgid ""
|
|
"The filesystem is specified using the C<device> argument which should be the "
|
|
"device name of the disk partition or volume containing the filesystem. If "
|
|
"given the name of a block device, C<xfs_repair> will attempt to find the raw "
|
|
"device associated with the specified block device and will use the raw "
|
|
"device instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8010 ../src/guestfs-actions.pod:13155
|
|
msgid ""
|
|
"Regardless, the filesystem to be repaired must be unmounted, otherwise, the "
|
|
"resulting filesystem may be inconsistent or corrupt."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8013 ../src/guestfs-actions.pod:13158
|
|
msgid ""
|
|
"The returned status indicates whether filesystem corruption was detected "
|
|
"(returns C<1>) or was not detected (returns C<0>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:8018
|
|
msgid "zegrep"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:8020
|
|
#, no-wrap
|
|
msgid ""
|
|
" zegrep regex path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8022 ../src/guestfs-actions.pod:13201
|
|
msgid "This calls the external C<zegrep> program and returns the matching lines."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:8035
|
|
msgid "zegrepi"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:8037
|
|
#, no-wrap
|
|
msgid ""
|
|
" zegrepi regex path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8039 ../src/guestfs-actions.pod:13227
|
|
msgid "This calls the external C<zegrep -i> program and returns the matching lines."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:8052
|
|
msgid "zero"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:8054
|
|
#, no-wrap
|
|
msgid ""
|
|
" zero device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8056 ../src/guestfs-actions.pod:13245
|
|
msgid "This command writes zeroes over the first few blocks of C<device>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8058 ../src/guestfs-actions.pod:13247
|
|
msgid ""
|
|
"How many blocks are zeroed isn't specified (but it's I<not> enough to "
|
|
"securely wipe the device). It should be sufficient to remove any partition "
|
|
"tables, filesystem superblocks and so on."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8062 ../fish/guestfish-actions.pod:8077 ../src/guestfs-actions.pod:13251 ../src/guestfs-actions.pod:13277
|
|
msgid ""
|
|
"If blocks are already zero, then this command avoids writing zeroes. This "
|
|
"prevents the underlying device from becoming non-sparse or growing "
|
|
"unnecessarily."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8066
|
|
msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:8069
|
|
msgid "zero-device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:8071
|
|
#, no-wrap
|
|
msgid ""
|
|
" zero-device device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8073
|
|
msgid ""
|
|
"This command writes zeroes over the entire C<device>. Compare with L</zero> "
|
|
"which just zeroes the first few blocks of a device."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:8081
|
|
msgid "zero-free-space"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:8083
|
|
#, no-wrap
|
|
msgid ""
|
|
" zero-free-space directory\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8085 ../src/guestfs-actions.pod:13296
|
|
msgid ""
|
|
"Zero the free space in the filesystem mounted on C<directory>. The "
|
|
"filesystem must be mounted read-write."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8088 ../src/guestfs-actions.pod:13299
|
|
msgid ""
|
|
"The filesystem contents are not affected, but any free space in the "
|
|
"filesystem is freed."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8091
|
|
msgid ""
|
|
"Free space is not \"trimmed\". You may want to call L</fstrim> either as an "
|
|
"alternative to this, or after calling this, depending on your requirements."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:8095
|
|
msgid "zerofree"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:8097
|
|
#, no-wrap
|
|
msgid ""
|
|
" zerofree device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8099 ../src/guestfs-actions.pod:13321
|
|
msgid ""
|
|
"This runs the I<zerofree> program on C<device>. This program claims to zero "
|
|
"unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
|
|
"possible to compress the filesystem more effectively."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8104 ../src/guestfs-actions.pod:13326
|
|
msgid "You should B<not> run this program if the filesystem is mounted."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8107 ../src/guestfs-actions.pod:13329
|
|
msgid ""
|
|
"It is possible that using this program can damage the filesystem or data on "
|
|
"the filesystem."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:8110
|
|
msgid "zfgrep"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:8112
|
|
#, no-wrap
|
|
msgid ""
|
|
" zfgrep pattern path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8114 ../src/guestfs-actions.pod:13350
|
|
msgid "This calls the external C<zfgrep> program and returns the matching lines."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:8127
|
|
msgid "zfgrepi"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:8129
|
|
#, no-wrap
|
|
msgid ""
|
|
" zfgrepi pattern path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8131 ../src/guestfs-actions.pod:13376
|
|
msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:8144
|
|
msgid "zfile"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:8146
|
|
#, no-wrap
|
|
msgid ""
|
|
" zfile meth path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8148 ../src/guestfs-actions.pod:13402
|
|
msgid "This command runs C<file> after first decompressing C<path> using C<method>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8151 ../src/guestfs-actions.pod:13405
|
|
msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8153
|
|
msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8156
|
|
msgid "I<This function is deprecated.> In new code, use the L</file> call instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:8163
|
|
msgid "zgrep"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:8165
|
|
#, no-wrap
|
|
msgid ""
|
|
" zgrep regex path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8167 ../src/guestfs-actions.pod:13429
|
|
msgid "This calls the external C<zgrep> program and returns the matching lines."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-actions.pod:8180
|
|
msgid "zgrepi"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-actions.pod:8182
|
|
#, no-wrap
|
|
msgid ""
|
|
" zgrepi regex path\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-actions.pod:8184 ../src/guestfs-actions.pod:13455
|
|
msgid "This calls the external C<zgrep -i> program and returns the matching lines."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:1
|
|
msgid "alloc"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:3
|
|
msgid "allocate"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:5
|
|
#, no-wrap
|
|
msgid ""
|
|
" alloc filename size\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:7
|
|
msgid ""
|
|
"This creates an empty (zeroed) file of the given size, and then adds so it "
|
|
"can be further examined."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:243
|
|
msgid "For more advanced image creation, see L</disk-create>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:245
|
|
msgid "Size can be specified using standard suffixes, eg. C<1M>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:14
|
|
msgid ""
|
|
"To create a sparse file, use L</sparse> instead. To create a prepared disk "
|
|
"image, see L</PREPARED DISK IMAGES>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:17
|
|
msgid "copy-in"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:19
|
|
#, no-wrap
|
|
msgid ""
|
|
" copy-in local [local ...] /remotedir\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:21
|
|
msgid ""
|
|
"C<copy-in> copies local files or directories recursively into the disk "
|
|
"image, placing them in the directory called C</remotedir> (which must "
|
|
"exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
|
|
"other commands as necessary."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:26
|
|
msgid ""
|
|
"Multiple local files and directories can be specified, but the last "
|
|
"parameter must always be a remote directory. Wildcards cannot be used."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:30
|
|
msgid "copy-out"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:32
|
|
#, no-wrap
|
|
msgid ""
|
|
" copy-out remote [remote ...] localdir\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:34
|
|
msgid ""
|
|
"C<copy-out> copies remote files or directories recursively out of the disk "
|
|
"image, placing them on the host disk in a local directory called C<localdir> "
|
|
"(which must exist). This guestfish meta-command turns into a sequence of "
|
|
"L</download>, L</tar-out> and other commands as necessary."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:40
|
|
msgid ""
|
|
"Multiple remote files and directories can be specified, but the last "
|
|
"parameter must always be a local directory. To download to the current "
|
|
"directory, use C<.> as in:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:44
|
|
#, no-wrap
|
|
msgid ""
|
|
" copy-out /home .\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:46
|
|
msgid ""
|
|
"Wildcards cannot be used in the ordinary command, but you can use them with "
|
|
"the help of L</glob> like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:49
|
|
#, no-wrap
|
|
msgid ""
|
|
" glob copy-out /home/* .\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:51
|
|
msgid "delete-event"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:53
|
|
#, no-wrap
|
|
msgid ""
|
|
" delete-event name\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:55
|
|
msgid ""
|
|
"Delete the event handler which was previously registered as C<name>. If "
|
|
"multiple event handlers were registered with the same name, they are all "
|
|
"deleted."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:59
|
|
msgid "See also the guestfish commands C<event> and C<list-events>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:61
|
|
msgid "display"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:63
|
|
#, no-wrap
|
|
msgid ""
|
|
" display filename\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:65
|
|
msgid ""
|
|
"Use C<display> (a graphical display program) to display an image file. It "
|
|
"downloads the file, and runs C<display> on it."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:68
|
|
msgid ""
|
|
"To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
|
|
"environment variable. For example to use the GNOME display program:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:71
|
|
#, no-wrap
|
|
msgid ""
|
|
" export GUESTFISH_DISPLAY_IMAGE=eog\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:73
|
|
msgid "See also L<display(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:75
|
|
msgid "echo"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:77
|
|
#, no-wrap
|
|
msgid ""
|
|
" echo [params ...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:79
|
|
msgid "This echos the parameters to the terminal."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:81
|
|
msgid "edit"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:83
|
|
msgid "vi"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:85
|
|
msgid "emacs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:87
|
|
#, no-wrap
|
|
msgid ""
|
|
" edit filename\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:89
|
|
msgid ""
|
|
"This is used to edit a file. It downloads the file, edits it locally using "
|
|
"your editor, then uploads the result."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:92
|
|
msgid ""
|
|
"The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
|
|
"or C<emacs> you will get those corresponding editors."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:96
|
|
msgid "event"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:98
|
|
#, no-wrap
|
|
msgid ""
|
|
" event name eventset \"shell script ...\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:100
|
|
msgid ""
|
|
"Register a shell script fragment which is executed when an event is raised. "
|
|
"See L<guestfs(3)/guestfs_set_event_callback> for a discussion of the event "
|
|
"API in libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:104
|
|
msgid ""
|
|
"The C<name> parameter is a name that you give to this event handler. It can "
|
|
"be any string (even the empty string) and is simply there so you can delete "
|
|
"the handler using the guestfish C<delete-event> command."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:109
|
|
msgid ""
|
|
"The C<eventset> parameter is a comma-separated list of one or more events, "
|
|
"for example C<close> or C<close,trace>. The special value C<*> means all "
|
|
"events."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:113
|
|
msgid ""
|
|
"The third and final parameter is the shell script fragment (or any external "
|
|
"command) that is executed when any of the events in the eventset occurs. It "
|
|
"is executed using C<$SHELL -c>, or if C<$SHELL> is not set then C</bin/sh "
|
|
"-c>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:118
|
|
msgid ""
|
|
"The shell script fragment receives callback parameters as arguments C<$1>, "
|
|
"C<$2> etc. The actual event that was called is available in the environment "
|
|
"variable C<$EVENT>."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:122
|
|
#, no-wrap
|
|
msgid ""
|
|
" event \"\" close \"echo closed\"\n"
|
|
" event messages appliance,library,trace \"echo $@\"\n"
|
|
" event \"\" progress \"echo progress: $3/$4\"\n"
|
|
" event \"\" * \"echo $EVENT $@\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:127
|
|
msgid "See also the guestfish commands C<delete-event> and C<list-events>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:129
|
|
msgid "glob"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:131
|
|
#, no-wrap
|
|
msgid ""
|
|
" glob command args...\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:133
|
|
msgid ""
|
|
"Expand wildcards in any paths in the args list, and run C<command> "
|
|
"repeatedly on each matching path."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:136
|
|
msgid "See L</WILDCARDS AND GLOBBING>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:138
|
|
msgid "hexedit"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:140
|
|
#, no-wrap
|
|
msgid ""
|
|
" hexedit <filename|device>\n"
|
|
" hexedit <filename|device> <max>\n"
|
|
" hexedit <filename|device> <start> <max>\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:144
|
|
msgid ""
|
|
"Use hexedit (a hex editor) to edit all or part of a binary file or block "
|
|
"device."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:147
|
|
msgid ""
|
|
"This command works by downloading potentially the whole file or device, "
|
|
"editing it locally, then uploading it. If the file or device is large, you "
|
|
"have to specify which part you wish to edit by using C<max> and/or C<start> "
|
|
"C<max> parameters. C<start> and C<max> are specified in bytes, with the "
|
|
"usual modifiers allowed such as C<1M> (1 megabyte)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:154
|
|
msgid "For example to edit the first few sectors of a disk you might do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:157
|
|
#, no-wrap
|
|
msgid ""
|
|
" hexedit /dev/sda 1M\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:159
|
|
msgid ""
|
|
"which would allow you to edit anywhere within the first megabyte of the "
|
|
"disk."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:162
|
|
msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:164
|
|
#, no-wrap
|
|
msgid ""
|
|
" hexedit /dev/sda1 0x400 0x400\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:166
|
|
msgid "(assuming the superblock is in the standard location)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:168
|
|
msgid ""
|
|
"This command requires the external L<hexedit(1)> program. You can specify "
|
|
"another program to use by setting the C<HEXEDITOR> environment variable."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:172
|
|
msgid "See also L</hexdump>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:174
|
|
msgid "lcd"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:176
|
|
#, no-wrap
|
|
msgid ""
|
|
" lcd directory\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:178
|
|
msgid "Change the local directory, ie. the current directory of guestfish itself."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:181
|
|
msgid "Note that C<!cd> won't do what you might expect."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:183
|
|
msgid "list-events"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:185
|
|
#, no-wrap
|
|
msgid ""
|
|
" list-events\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:187
|
|
msgid "List the event handlers registered using the guestfish C<event> command."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:190
|
|
msgid "man"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:192
|
|
msgid "manual"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:194
|
|
#, no-wrap
|
|
msgid ""
|
|
" man\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:196
|
|
msgid "Opens the manual page for guestfish."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:198
|
|
msgid "more"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:200
|
|
msgid "less"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:202
|
|
#, no-wrap
|
|
msgid ""
|
|
" more filename\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:204
|
|
#, no-wrap
|
|
msgid ""
|
|
" less filename\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:206
|
|
msgid "This is used to view a file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:208
|
|
msgid ""
|
|
"The default viewer is C<$PAGER>. However if you use the alternate command "
|
|
"C<less> you will get the C<less> command specifically."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:211
|
|
msgid "reopen"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:213
|
|
#, no-wrap
|
|
msgid ""
|
|
" reopen\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:215
|
|
msgid ""
|
|
"Close and reopen the libguestfs handle. It is not necessary to use this "
|
|
"normally, because the handle is closed properly when guestfish exits. "
|
|
"However this is occasionally useful for testing."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:219
|
|
msgid "setenv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:221
|
|
#, no-wrap
|
|
msgid ""
|
|
" setenv VAR value\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:223
|
|
msgid "Set the environment variable C<VAR> to the string C<value>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:225
|
|
msgid "To print the value of an environment variable use a shell command such as:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:228
|
|
#, no-wrap
|
|
msgid ""
|
|
" !echo $VAR\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:230
|
|
msgid "sparse"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:232
|
|
#, no-wrap
|
|
msgid ""
|
|
" sparse filename size\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:234
|
|
msgid ""
|
|
"This creates an empty sparse file of the given size, and then adds so it can "
|
|
"be further examined."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:237
|
|
msgid ""
|
|
"In all respects it works the same as the L</alloc> command, except that the "
|
|
"image file is allocated sparsely, which means that disk blocks are not "
|
|
"assigned to the file until they are needed. Sparse disk files only use "
|
|
"space when written to, but they are slower and there is a danger you could "
|
|
"run out of real disk space during a write operation."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:247
|
|
msgid "See also the guestfish L</scratch> command."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:249
|
|
msgid "supported"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:251
|
|
#, no-wrap
|
|
msgid ""
|
|
" supported\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:253
|
|
msgid ""
|
|
"This command returns a list of the optional groups known to the daemon, and "
|
|
"indicates which ones are supported by this build of the libguestfs "
|
|
"appliance."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:257
|
|
msgid "See also L<guestfs(3)/AVAILABILITY>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:259
|
|
msgid "time"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:261
|
|
#, no-wrap
|
|
msgid ""
|
|
" time command args...\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:263
|
|
msgid ""
|
|
"Run the command as usual, but print the elapsed time afterwards. This can "
|
|
"be useful for benchmarking operations."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-commands.pod:266
|
|
msgid "unsetenv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-commands.pod:268
|
|
#, no-wrap
|
|
msgid ""
|
|
" unsetenv VAR\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-commands.pod:270
|
|
msgid "Remove C<VAR> from the environment."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-prepopts.pod:1
|
|
msgid "B<-N disk> - create a blank disk"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-prepopts.pod:3
|
|
msgid "C<guestfish -N [I<filename>=]disk[:I<size>]>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-prepopts.pod:5
|
|
msgid "Create a blank disk, size 100MB (by default)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-prepopts.pod:7
|
|
msgid "The default size can be changed by supplying an optional parameter."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-prepopts.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" Name Default value\n"
|
|
" size 100M the size of the disk image\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-prepopts.pod:14
|
|
msgid "B<-N part> - create a partitioned disk"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-prepopts.pod:16
|
|
msgid "C<guestfish -N [I<filename>=]part[:I<size>[:I<partition>]]>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-prepopts.pod:18
|
|
msgid ""
|
|
"Create a disk with a single partition. By default the size of the disk is "
|
|
"100MB (the available space in the partition will be a tiny bit smaller) and "
|
|
"the partition table will be MBR (old DOS-style)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-prepopts.pod:22 ../fish/guestfish-prepopts.pod:39
|
|
msgid "These defaults can be changed by supplying optional parameters."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-prepopts.pod:26
|
|
#, no-wrap
|
|
msgid ""
|
|
" Name Default value\n"
|
|
" size 100M the size of the disk image\n"
|
|
" partition mbr partition table type\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-prepopts.pod:30
|
|
msgid "B<-N fs> - create a filesystem"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-prepopts.pod:32
|
|
msgid "C<guestfish -N [I<filename>=]fs[:I<filesystem>[:I<size>[:I<partition>]]]>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-prepopts.pod:34
|
|
msgid ""
|
|
"Create a disk with a single partition, with the partition containing an "
|
|
"empty filesystem. This defaults to creating a 100MB disk (the available "
|
|
"space in the filesystem will be a tiny bit smaller) with an MBR (old "
|
|
"DOS-style) partition table and an ext2 filesystem."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-prepopts.pod:43
|
|
#, no-wrap
|
|
msgid ""
|
|
" Name Default value\n"
|
|
" filesystem ext2 the type of filesystem to use\n"
|
|
" size 100M the size of the disk image\n"
|
|
" partition mbr partition table type\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-prepopts.pod:48
|
|
msgid "B<-N lv> - create a disk with logical volume"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-prepopts.pod:50
|
|
msgid "C<guestfish -N [I<filename>=]lv[:I<name>[:I<size>[:I<partition>]]]>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-prepopts.pod:52
|
|
msgid ""
|
|
"Create a disk with a single partition, set up the partition as an LVM2 "
|
|
"physical volume, and place a volume group and logical volume on there. This "
|
|
"defaults to creating a 100MB disk with the VG and LV called C</dev/VG/LV>. "
|
|
"You can change the name of the VG and LV by supplying an alternate name as "
|
|
"the first optional parameter."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-prepopts.pod:58
|
|
msgid "Note this does not create a filesystem. Use 'lvfs' to do that."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-prepopts.pod:62
|
|
#, no-wrap
|
|
msgid ""
|
|
" Name Default value\n"
|
|
" name /dev/VG/LV the name of the VG and LV to use\n"
|
|
" size 100M the size of the disk image\n"
|
|
" partition mbr partition table type\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-prepopts.pod:67
|
|
msgid "B<-N lvfs> - create a disk with logical volume and filesystem"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-prepopts.pod:69
|
|
msgid ""
|
|
"C<guestfish -N "
|
|
"[I<filename>=]lvfs[:I<name>[:I<filesystem>[:I<size>[:I<partition>]]]]>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-prepopts.pod:71
|
|
msgid ""
|
|
"Create a disk with a single partition, set up the partition as an LVM2 "
|
|
"physical volume, and place a volume group and logical volume on there. Then "
|
|
"format the LV with a filesystem. This defaults to creating a 100MB disk "
|
|
"with the VG and LV called C</dev/VG/LV>, with an ext2 filesystem."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-prepopts.pod:79
|
|
#, no-wrap
|
|
msgid ""
|
|
" Name Default value\n"
|
|
" name /dev/VG/LV the name of the VG and LV to use\n"
|
|
" filesystem ext2 the type of filesystem to use\n"
|
|
" size 100M the size of the disk image\n"
|
|
" partition mbr partition table type\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-prepopts.pod:85
|
|
msgid "B<-N bootroot> - create a boot and root filesystem"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-prepopts.pod:87
|
|
msgid ""
|
|
"C<guestfish -N "
|
|
"[I<filename>=]bootroot[:I<bootfs>[:I<rootfs>[:I<size>[:I<bootsize>[:I<partition>]]]]]>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-prepopts.pod:89
|
|
msgid ""
|
|
"Create a disk with two partitions, for boot and root filesystem. Format the "
|
|
"two filesystems independently. There are several optional parameters which "
|
|
"control the exact layout and filesystem types."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-prepopts.pod:95
|
|
#, no-wrap
|
|
msgid ""
|
|
" Name Default value\n"
|
|
" bootfs ext2 the type of filesystem to use for boot\n"
|
|
" rootfs ext2 the type of filesystem to use for root\n"
|
|
" size 100M the size of the disk image\n"
|
|
" bootsize 32M the size of the boot filesystem\n"
|
|
" partition mbr partition table type\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish-prepopts.pod:102
|
|
msgid "B<-N bootrootlv> - create a boot and root filesystem using LVM"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-prepopts.pod:104
|
|
msgid ""
|
|
"C<guestfish -N "
|
|
"[I<filename>=]bootrootlv[:I<name>[:I<bootfs>[:I<rootfs>[:I<size>[:I<bootsize>[:I<partition>]]]]]]>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish-prepopts.pod:106
|
|
msgid ""
|
|
"This is the same as C<bootroot> but the root filesystem (only) is placed on "
|
|
"a logical volume, named by default C</dev/VG/LV>. There are several "
|
|
"optional parameters which control the exact layout."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish-prepopts.pod:112
|
|
#, no-wrap
|
|
msgid ""
|
|
" Name Default value\n"
|
|
" name /dev/VG/LV the name of the VG and LV for root\n"
|
|
" bootfs ext2 the type of filesystem to use for boot\n"
|
|
" rootfs ext2 the type of filesystem to use for root\n"
|
|
" size 100M the size of the disk image\n"
|
|
" bootsize 32M the size of the boot filesystem\n"
|
|
" partition mbr partition table type\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:5
|
|
msgid "guestfish - the guest filesystem shell"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish [--options] [commands]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:13
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish [--ro|--rw] -a disk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:15
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:17
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -d libvirt-domain\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:19
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish [--ro|--rw] -a disk.img -i\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:21
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -d libvirt-domain -i\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:25
|
|
msgid ""
|
|
"Using guestfish in read/write mode on live virtual machines can be "
|
|
"dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
|
|
"option to use guestfish safely if the disk image or virtual machine might be "
|
|
"live."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:32
|
|
msgid ""
|
|
"Guestfish is a shell and command-line tool for examining and modifying "
|
|
"virtual machine filesystems. It uses libguestfs and exposes all of the "
|
|
"functionality of the guestfs API, see L<guestfs(3)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:36
|
|
msgid ""
|
|
"Guestfish gives you structured access to the libguestfs API, from shell "
|
|
"scripts or the command line or interactively. If you want to rescue a "
|
|
"broken virtual machine image, you should look at the L<virt-rescue(1)> "
|
|
"command."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:43
|
|
msgid "As an interactive shell"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:45
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ guestfish\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:47
|
|
#, no-wrap
|
|
msgid ""
|
|
" Welcome to guestfish, the guest filesystem shell for\n"
|
|
" editing virtual machine filesystems.\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:50
|
|
#, no-wrap
|
|
msgid ""
|
|
" Type: 'help' for a list of commands\n"
|
|
" 'man' to read the manual\n"
|
|
" 'quit' to quit the shell\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:54
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><fs> add-ro disk.img\n"
|
|
" ><fs> run\n"
|
|
" ><fs> list-filesystems\n"
|
|
" /dev/sda1: ext4\n"
|
|
" /dev/vg_guest/lv_root: ext4\n"
|
|
" /dev/vg_guest/lv_swap: swap\n"
|
|
" ><fs> mount /dev/vg_guest/lv_root /\n"
|
|
" ><fs> cat /etc/fstab\n"
|
|
" # /etc/fstab\n"
|
|
" # Created by anaconda\n"
|
|
" [...]\n"
|
|
" ><fs> exit\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:67
|
|
msgid "From shell scripts"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:69
|
|
msgid "Create a new C</etc/motd> file in a guest or disk image:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:71
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish <<_EOF_\n"
|
|
" add disk.img\n"
|
|
" run\n"
|
|
" mount /dev/vg_guest/lv_root /\n"
|
|
" write /etc/motd \"Welcome, new users\"\n"
|
|
" _EOF_\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:78
|
|
msgid "List the LVM logical volumes in a disk image:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:80
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -a disk.img --ro <<_EOF_\n"
|
|
" run\n"
|
|
" lvs\n"
|
|
" _EOF_\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:85
|
|
msgid "List all the filesystems in a disk image:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:87
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -a disk.img --ro <<_EOF_\n"
|
|
" run\n"
|
|
" list-filesystems\n"
|
|
" _EOF_\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:92
|
|
msgid "On one command line"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
|
|
msgid "Update C</etc/resolv.conf> in a guest:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:96
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish \\\n"
|
|
" add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
|
|
" write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:100
|
|
msgid "Edit C</boot/grub/grub.conf> interactively:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:102
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --rw --add disk.img \\\n"
|
|
" --mount /dev/vg_guest/lv_root \\\n"
|
|
" --mount /dev/sda1:/boot \\\n"
|
|
" edit /boot/grub/grub.conf\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:107
|
|
msgid "Mount disks automatically"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:109
|
|
msgid ""
|
|
"Use the I<-i> option to automatically mount the disks from a virtual "
|
|
"machine:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:112
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --ro -a disk.img -i cat /etc/group\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:114
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --ro -d libvirt-domain -i cat /etc/group\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:116
|
|
msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:118
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:120
|
|
msgid "As a script interpreter"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:122
|
|
msgid "Create a 100MB disk containing an ext2-formatted partition:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:124
|
|
#, no-wrap
|
|
msgid ""
|
|
" #!/usr/bin/guestfish -f\n"
|
|
" sparse test1.img 100M\n"
|
|
" run\n"
|
|
" part-disk /dev/sda mbr\n"
|
|
" mkfs ext2 /dev/sda1\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:130
|
|
msgid "Start with a prepared disk"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:132
|
|
msgid ""
|
|
"An alternate way to create a 100MB disk called C<test1.img> containing a "
|
|
"single ext2-formatted partition:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:135 ../src/guestfs.pod:3349
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -N fs\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:137
|
|
msgid "To list what is available do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:139
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -N help | less\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:141
|
|
msgid "Remote drives"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:143
|
|
msgid "Access a remote disk using ssh:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:145 ../guestfs-release-notes.pod:402
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -a ssh://example.com/path/to/disk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:147
|
|
msgid "Remote control"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:149
|
|
#, no-wrap
|
|
msgid ""
|
|
" eval \"`guestfish --listen`\"\n"
|
|
" guestfish --remote add-ro disk.img\n"
|
|
" guestfish --remote run\n"
|
|
" guestfish --remote lvs\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:160
|
|
msgid "Displays general help on options."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:164
|
|
msgid "B<--cmd-help>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:166
|
|
msgid "Lists all available guestfish commands."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:168
|
|
msgid "B<-h cmd>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:170
|
|
msgid "B<--cmd-help cmd>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:172
|
|
msgid "Displays detailed help on a single command C<cmd>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:165
|
|
msgid "B<-a image>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:176 ../fuse/guestmount.pod:167
|
|
msgid "B<--add image>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:178
|
|
msgid "Add a block device or virtual machine image to the shell."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:183
|
|
msgid ""
|
|
"Using this flag is mostly equivalent to using the C<add> command, with "
|
|
"C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
|
|
"the I<--format=...> flag was given."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:191
|
|
msgid "Add a remote disk. See L</ADDING REMOTE STORAGE>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:184
|
|
msgid ""
|
|
"When used in conjunction with the I<-d> option, this specifies the libvirt "
|
|
"URI to use. The default is to use the default libvirt connection."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:201
|
|
msgid "B<--csh>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:203
|
|
msgid ""
|
|
"If using the I<--listen> option and a csh-like shell, use this option. See "
|
|
"section L</REMOTE CONTROL AND CSH> below."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:206 ../fuse/guestmount.pod:188
|
|
msgid "B<-d libvirt-domain>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:208 ../fuse/guestmount.pod:190
|
|
msgid "B<--domain libvirt-domain>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:210 ../fuse/guestmount.pod:192
|
|
msgid ""
|
|
"Add disks from the named libvirt domain. If the I<--ro> option is also "
|
|
"used, then any libvirt domain can be used. However in write mode, only "
|
|
"libvirt domains which are shut down can be named here."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:214 ../fuse/guestmount.pod:196
|
|
msgid "Domain UUIDs can be used instead of names."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:216
|
|
msgid ""
|
|
"Using this flag is mostly equivalent to using the C<add-domain> command, "
|
|
"with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
|
|
"if the I<--format=...> flag was given."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:222 ../fuse/guestmount.pod:212
|
|
msgid ""
|
|
"When prompting for keys and passphrases, guestfish 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
|
|
#: ../fish/guestfish.pod:227
|
|
msgid "B<-f file>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:229
|
|
msgid "B<--file file>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:231
|
|
msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:234
|
|
#, no-wrap
|
|
msgid ""
|
|
" #!/usr/bin/guestfish -f\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:247
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --format=raw -a disk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:251
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --format=raw -a disk.img --format -a another.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:256
|
|
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 "
|
|
"with malicious guests (CVE-2010-3851). See also L</add>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:263 ../fuse/guestmount.pod:241
|
|
msgid "B<--inspector>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:265 ../fuse/guestmount.pod:243
|
|
msgid ""
|
|
"Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
|
|
"system and mount filesystems as they would be mounted on the real virtual "
|
|
"machine."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:269
|
|
msgid "Typical usage is either:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:271
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -d myguest -i\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:273
|
|
msgid "(for an inactive libvirt domain called I<myguest>), or:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:275
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --ro -d myguest -i\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:277
|
|
msgid "(for active domains, readonly), or specify the block device directly:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:279
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --rw -a /dev/Guests/MyGuest -i\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:281
|
|
msgid ""
|
|
"Note that the command line syntax changed slightly over older versions of "
|
|
"guestfish. You can still use the old syntax:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:284
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish [--ro] -i disk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:286
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish [--ro] -i libvirt-domain\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:288
|
|
msgid ""
|
|
"Using this flag is mostly equivalent to using the C<inspect-os> command and "
|
|
"then using other commands to mount the filesystems that were found."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:297
|
|
msgid "B<--listen>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:299
|
|
msgid ""
|
|
"Fork into the background and listen for remote commands. See section "
|
|
"L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:302 ../fuse/guestmount.pod:252
|
|
msgid "B<--live>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:254
|
|
msgid ""
|
|
"Connect to a live virtual machine. (Experimental, see "
|
|
"L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:307
|
|
msgid "B<-m dev[:mountpoint[:options[:fstype]]]>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:309 ../fuse/guestmount.pod:259
|
|
msgid "B<--mount dev[:mountpoint[:options[:fstype]]]>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:311
|
|
msgid "Mount the named partition or logical volume on the given mountpoint."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:313
|
|
msgid "If the mountpoint is omitted, it defaults to C</>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:315
|
|
msgid "You have to mount something on C</> before most commands will work."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:317
|
|
msgid ""
|
|
"If any I<-m> or I<--mount> options are given, the guest is automatically "
|
|
"launched."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:320
|
|
msgid ""
|
|
"If you don't know what filesystems a disk image contains, you can either run "
|
|
"guestfish without this option, then list the partitions, filesystems and LVs "
|
|
"available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
|
|
"commands), or you can use the L<virt-filesystems(1)> program."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:326 ../fuse/guestmount.pod:267
|
|
msgid ""
|
|
"The third (and rarely used) part of the mount parameter is the list of mount "
|
|
"options used to mount the underlying filesystem. If this is not given, then "
|
|
"the mount options are either the empty string or C<ro> (the latter if the "
|
|
"I<--ro> flag is used). By specifying the mount options, you override this "
|
|
"default choice. Probably the only time you would use this is to enable ACLs "
|
|
"and/or extended attributes if the filesystem can support them:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:334 ../fuse/guestmount.pod:275
|
|
#, no-wrap
|
|
msgid ""
|
|
" -m /dev/sda1:/:acl,user_xattr\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:336
|
|
msgid "Using this flag is equivalent to using the C<mount-options> command."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:338 ../fuse/guestmount.pod:277
|
|
msgid ""
|
|
"The fourth part of the parameter is the filesystem driver to use, such as "
|
|
"C<ext3> or C<ntfs>. This is rarely needed, but can be useful if multiple "
|
|
"drivers are valid for a filesystem (eg: C<ext2> and C<ext3>), or if "
|
|
"libguestfs misidentifies a filesystem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:345
|
|
msgid "Enable QEMU user networking in the guest."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:347
|
|
msgid "B<-N [filename=]type>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:349
|
|
msgid "B<--new [filename=]type>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:351
|
|
msgid "B<-N help>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:353
|
|
msgid ""
|
|
"Prepare a fresh disk image formatted as \"type\". This is an alternative to "
|
|
"the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
|
|
"preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
|
|
"IMAGES> below."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:358 ../fuse/guestmount.pod:286 ../resize/virt-resize.pod:449 ../sysprep/virt-sysprep.pod:91
|
|
msgid "B<-n>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:362
|
|
msgid ""
|
|
"Disable autosync. This is enabled by default. See the discussion of "
|
|
"autosync in the L<guestfs(3)> manpage."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:365
|
|
msgid "B<--no-dest-paths>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:367
|
|
msgid ""
|
|
"Don't tab-complete paths on the guest filesystem. It is useful to be able "
|
|
"to hit the tab key to complete paths on the guest filesystem, but this "
|
|
"causes extra \"hidden\" guestfs calls to be made, so this option is here to "
|
|
"allow this feature to be disabled."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:372
|
|
msgid "B<--pipe-error>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:374
|
|
msgid ""
|
|
"If writes fail to pipe commands (see L</PIPES> below), then the command "
|
|
"returns an error."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:377
|
|
msgid "The default (also for historical reasons) is to ignore such errors so that:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:380
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><fs> command_with_lots_of_output | head\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:382
|
|
msgid "doesn't give an error."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:384
|
|
msgid "B<--progress-bars>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:386
|
|
msgid "Enable progress bars, even when guestfish is used non-interactively."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:388
|
|
msgid ""
|
|
"Progress bars are enabled by default when guestfish is used as an "
|
|
"interactive shell."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:391
|
|
msgid "B<--no-progress-bars>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:393
|
|
msgid "Disable progress bars."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:395
|
|
msgid "B<--remote[=pid]>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:397
|
|
msgid ""
|
|
"Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
|
|
"CONTROL GUESTFISH OVER A SOCKET> below."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:402 ../fuse/guestmount.pod:338 ../rescue/virt-rescue.pod:200
|
|
msgid "B<--ro>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:404
|
|
msgid ""
|
|
"This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
|
|
"mounts are done read-only."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:407 ../rescue/virt-rescue.pod:204
|
|
msgid ""
|
|
"The option must always be used if the disk image or virtual machine might be "
|
|
"running, and is generally recommended in cases where you don't need write "
|
|
"access to the disk."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:411
|
|
msgid ""
|
|
"Note that prepared disk images created with I<-N> are not affected by this "
|
|
"option. Also commands like C<add> are not affected - you have to specify "
|
|
"the C<readonly:true> option explicitly if you need it."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:415
|
|
msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:417 ../fuse/guestmount.pod:350 ../rescue/virt-rescue.pod:222
|
|
msgid "B<--selinux>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:419
|
|
msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:425
|
|
msgid ""
|
|
"Enable very verbose messages. This is particularly useful if you find a "
|
|
"bug."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:432
|
|
msgid "Display the guestfish / libguestfs version number and exit."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:434 ../fuse/guestmount.pod:366 ../rescue/virt-rescue.pod:252
|
|
msgid "B<-w>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:436 ../fuse/guestmount.pod:368 ../rescue/virt-rescue.pod:254
|
|
msgid "B<--rw>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:438 ../fuse/guestmount.pod:370
|
|
msgid ""
|
|
"This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
|
|
"mounts are done read-write."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:441
|
|
msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:445
|
|
msgid "Echo each command before executing it."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../fish/guestfish.pod:449
|
|
msgid "COMMANDS ON COMMAND LINE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:451
|
|
msgid "Any additional (non-option) arguments are treated as commands to execute."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:454
|
|
msgid ""
|
|
"Commands to execute should be separated by a colon (C<:>), where the colon "
|
|
"is a separate parameter. Thus:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:457
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:459
|
|
msgid ""
|
|
"If there are no additional arguments, then we enter a shell, either an "
|
|
"interactive shell with a prompt (if the input is a terminal) or a "
|
|
"non-interactive shell."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:463
|
|
msgid ""
|
|
"In either command line mode or non-interactive shell, the first command that "
|
|
"gives an error causes the whole shell to exit. In interactive mode (with a "
|
|
"prompt) if a command fails, you can continue to enter commands."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../fish/guestfish.pod:468
|
|
msgid "USING launch (OR run)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:470
|
|
msgid ""
|
|
"As with L<guestfs(3)>, you must first configure your guest by adding disks, "
|
|
"then launch it, then mount any disks you need, and finally issue "
|
|
"actions/commands. So the general order of the day is:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:478
|
|
msgid "add or -a/--add"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:482
|
|
msgid "launch (aka run)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:486
|
|
msgid "mount or -m/--mount"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:490
|
|
msgid "any other commands"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:494
|
|
msgid ""
|
|
"C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
|
|
"guest before mounting or performing any other commands."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:497
|
|
msgid ""
|
|
"The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
|
|
"I<--new> options were given then C<run> is done automatically, simply "
|
|
"because guestfish can't perform the action you asked for without doing this."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../fish/guestfish.pod:502
|
|
msgid "OPENING DISKS FOR READ AND WRITE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:504
|
|
msgid ""
|
|
"The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
|
|
"I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
|
|
"I<-i> and I<-m> open disk images read-only or for writing."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:509
|
|
msgid ""
|
|
"In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
|
|
"opening disk images supplied on the command line for write. To open a disk "
|
|
"image read-only you have to do I<-a image --ro>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:513
|
|
msgid ""
|
|
"This matters: If you accidentally open a live VM disk image writable then "
|
|
"you will cause irreversible disk corruption."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:516
|
|
msgid ""
|
|
"In a future libguestfs we intend to change the default the other way. Disk "
|
|
"images will be opened read-only. You will have to either specify "
|
|
"I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
|
|
"configuration file in order to get write access for disk images specified by "
|
|
"those other command line options."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:522
|
|
msgid ""
|
|
"This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
|
|
"which does nothing (it is already the default). However it is highly "
|
|
"recommended that you use this option to indicate that you need write access, "
|
|
"and prepare your scripts for the day when this option will be required for "
|
|
"write access."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:528
|
|
msgid ""
|
|
"B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
|
|
"other libguestfs program apart from guestfish and guestmount."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../fish/guestfish.pod:531
|
|
msgid "QUOTING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:533
|
|
msgid ""
|
|
"You can quote ordinary parameters using either single or double quotes. For "
|
|
"example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:536
|
|
#, no-wrap
|
|
msgid ""
|
|
" add \"file with a space.img\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:538
|
|
#, no-wrap
|
|
msgid ""
|
|
" rm '/file name'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:540
|
|
#, no-wrap
|
|
msgid ""
|
|
" rm '/\"'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:542
|
|
msgid ""
|
|
"A few commands require a list of strings to be passed. For these, use a "
|
|
"whitespace-separated list, enclosed in quotes. Strings containing "
|
|
"whitespace to be passed through must be enclosed in single quotes. A "
|
|
"literal single quote must be escaped with a backslash."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:547
|
|
#, no-wrap
|
|
msgid ""
|
|
" vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
|
|
" command \"/bin/echo 'foo bar'\"\n"
|
|
" command \"/bin/echo \\'foo\\'\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:551
|
|
msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:553
|
|
msgid ""
|
|
"In double-quoted arguments (only) use backslash to insert special "
|
|
"characters:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:558
|
|
msgid "C<\\a>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:560
|
|
msgid "Alert (bell) character."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:562
|
|
msgid "C<\\b>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:564
|
|
msgid "Backspace character."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:566
|
|
msgid "C<\\f>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:568
|
|
msgid "Form feed character."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:570
|
|
msgid "C<\\n>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:572
|
|
msgid "Newline character."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:574
|
|
msgid "C<\\r>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:576
|
|
msgid "Carriage return character."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:578
|
|
msgid "C<\\t>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:580
|
|
msgid "Horizontal tab character."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:582
|
|
msgid "C<\\v>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:584
|
|
msgid "Vertical tab character."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:586
|
|
msgid "C<\\\">"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:588
|
|
msgid "A literal double quote character."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:590
|
|
msgid "C<\\ooo>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:592
|
|
msgid ""
|
|
"A character with octal value I<ooo>. There must be precisely 3 octal digits "
|
|
"(unlike C)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:595
|
|
msgid "C<\\xhh>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:597
|
|
msgid "A character with hex value I<hh>. There must be precisely 2 hex digits."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:600
|
|
msgid ""
|
|
"In the current implementation C<\\000> and C<\\x00> cannot be used in "
|
|
"strings."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:603
|
|
msgid "C<\\\\>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:605 ../fish/guestfish.pod:1287
|
|
msgid "A literal backslash character."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../fish/guestfish.pod:609
|
|
msgid "OPTIONAL ARGUMENTS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:611
|
|
msgid ""
|
|
"Some commands take optional arguments. These arguments appear in this "
|
|
"documentation as C<[argname:..]>. You can use them as in these examples:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:615
|
|
#, no-wrap
|
|
msgid ""
|
|
" add filename\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:617
|
|
#, no-wrap
|
|
msgid ""
|
|
" add filename readonly:true\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:619
|
|
#, no-wrap
|
|
msgid ""
|
|
" add filename format:qcow2 readonly:false\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:621
|
|
msgid ""
|
|
"Each optional argument can appear at most once. All optional arguments must "
|
|
"appear after the required ones."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../fish/guestfish.pod:624
|
|
msgid "NUMBERS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:626
|
|
msgid "This section applies to all commands which can take integers as parameters."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:629
|
|
msgid "SIZE SUFFIX"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:631
|
|
msgid ""
|
|
"When the command takes a parameter measured in bytes, you can use one of the "
|
|
"following suffixes to specify kilobytes, megabytes and larger sizes:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:637
|
|
msgid "B<k> or B<K> or B<KiB>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:639
|
|
msgid "The size in kilobytes (multiplied by 1024)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:641
|
|
msgid "B<KB>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:643
|
|
msgid "The size in SI 1000 byte units."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:645
|
|
msgid "B<M> or B<MiB>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:647
|
|
msgid "The size in megabytes (multiplied by 1048576)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:649
|
|
msgid "B<MB>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:651
|
|
msgid "The size in SI 1000000 byte units."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:653
|
|
msgid "B<G> or B<GiB>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:655
|
|
msgid "The size in gigabytes (multiplied by 2**30)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:657
|
|
msgid "B<GB>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:659
|
|
msgid "The size in SI 10**9 byte units."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:661
|
|
msgid "B<T> or B<TiB>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:663
|
|
msgid "The size in terabytes (multiplied by 2**40)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:665
|
|
msgid "B<TB>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:667
|
|
msgid "The size in SI 10**12 byte units."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:669
|
|
msgid "B<P> or B<PiB>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:671
|
|
msgid "The size in petabytes (multiplied by 2**50)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:673
|
|
msgid "B<PB>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:675
|
|
msgid "The size in SI 10**15 byte units."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:677
|
|
msgid "B<E> or B<EiB>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:679
|
|
msgid "The size in exabytes (multiplied by 2**60)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:681
|
|
msgid "B<EB>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:683
|
|
msgid "The size in SI 10**18 byte units."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:685
|
|
msgid "B<Z> or B<ZiB>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:687
|
|
msgid "The size in zettabytes (multiplied by 2**70)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:689
|
|
msgid "B<ZB>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:691
|
|
msgid "The size in SI 10**21 byte units."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:693
|
|
msgid "B<Y> or B<YiB>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:695
|
|
msgid "The size in yottabytes (multiplied by 2**80)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:697
|
|
msgid "B<YB>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:699
|
|
msgid "The size in SI 10**24 byte units."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:705
|
|
#, no-wrap
|
|
msgid ""
|
|
" truncate-size /file 1G\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:707
|
|
msgid "would truncate the file to 1 gigabyte."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:709
|
|
msgid ""
|
|
"Be careful because a few commands take sizes in kilobytes or megabytes "
|
|
"(eg. the parameter to L</memsize> is specified in megabytes already). "
|
|
"Adding a suffix will probably not do what you expect."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:713
|
|
msgid "OCTAL AND HEXADECIMAL NUMBERS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:715
|
|
msgid ""
|
|
"For specifying the radix (base) use the C convention: C<0> to prefix an "
|
|
"octal number or C<0x> to prefix a hexadecimal number. For example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:718
|
|
#, no-wrap
|
|
msgid ""
|
|
" 1234 decimal number 1234\n"
|
|
" 02322 octal number, equivalent to decimal 1234\n"
|
|
" 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:722
|
|
msgid ""
|
|
"When using the C<chmod> command, you almost always want to specify an octal "
|
|
"number for the mode, and you must prefix it with C<0> (unlike the Unix "
|
|
"L<chmod(1)> program):"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:726
|
|
#, no-wrap
|
|
msgid ""
|
|
" chmod 0777 /public # OK\n"
|
|
" chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:729
|
|
msgid ""
|
|
"Commands that return numbers usually print them in decimal, but some "
|
|
"commands print numbers in other radices (eg. C<umask> prints the mode in "
|
|
"octal, preceded by C<0>)."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../fish/guestfish.pod:733
|
|
msgid "WILDCARDS AND GLOBBING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:735
|
|
msgid ""
|
|
"Neither guestfish nor the underlying guestfs API performs wildcard expansion "
|
|
"(globbing) by default. So for example the following will not do what you "
|
|
"expect:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:739
|
|
#, no-wrap
|
|
msgid ""
|
|
" rm-rf /home/*\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:741
|
|
msgid ""
|
|
"Assuming you don't have a directory called literally C</home/*> then the "
|
|
"above command will return an error."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:744
|
|
msgid "To perform wildcard expansion, use the C<glob> command."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:746
|
|
#, no-wrap
|
|
msgid ""
|
|
" glob rm-rf /home/*\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:748
|
|
msgid ""
|
|
"runs C<rm-rf> on each path that matches (ie. potentially running the command "
|
|
"many times), equivalent to:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:751
|
|
#, no-wrap
|
|
msgid ""
|
|
" rm-rf /home/jim\n"
|
|
" rm-rf /home/joe\n"
|
|
" rm-rf /home/mary\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:755
|
|
msgid "C<glob> only works on simple guest paths and not on device names."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:757
|
|
msgid ""
|
|
"If you have several parameters, each containing a wildcard, then glob will "
|
|
"perform a Cartesian product."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../fish/guestfish.pod:760
|
|
msgid "COMMENTS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:762
|
|
msgid ""
|
|
"Any line which starts with a I<#> character is treated as a comment and "
|
|
"ignored. The I<#> can optionally be preceded by whitespace, but B<not> by a "
|
|
"command. For example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:766
|
|
#, no-wrap
|
|
msgid ""
|
|
" # this is a comment\n"
|
|
" # this is a comment\n"
|
|
" foo # NOT a comment\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:770
|
|
msgid "Blank lines are also ignored."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../fish/guestfish.pod:772
|
|
msgid "RUNNING COMMANDS LOCALLY"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:774
|
|
msgid ""
|
|
"Any line which starts with a I<!> character is treated as a command sent to "
|
|
"the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:778
|
|
#, no-wrap
|
|
msgid ""
|
|
" !mkdir local\n"
|
|
" tgz-out /remote local/remote-data.tar.gz\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:781
|
|
msgid ""
|
|
"will create a directory C<local> on the host, and then export the contents "
|
|
"of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
|
|
"(See C<tgz-out>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:785
|
|
msgid ""
|
|
"To change the local directory, use the C<lcd> command. C<!cd> will have no "
|
|
"effect, due to the way that subprocesses work in Unix."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:788
|
|
msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:790
|
|
msgid ""
|
|
"If a line starts with I<E<lt>!> then the shell command is executed (as for "
|
|
"I<!>), but subsequently any output (stdout) of the shell command is parsed "
|
|
"and executed as guestfish commands."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:794
|
|
msgid ""
|
|
"Thus you can use shell script to construct arbitrary guestfish commands "
|
|
"which are then parsed by guestfish."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:797
|
|
msgid ""
|
|
"For example it is tedious to create a sequence of files (eg. C</foo.1> "
|
|
"through C</foo.100>) using guestfish commands alone. However this is simple "
|
|
"if we use a shell script to create the guestfish commands for us:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:802
|
|
#, no-wrap
|
|
msgid ""
|
|
" <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:804
|
|
msgid "or with names like C</foo.001>:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:806
|
|
#, no-wrap
|
|
msgid ""
|
|
" <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:808
|
|
msgid ""
|
|
"When using guestfish interactively it can be helpful to just run the shell "
|
|
"script first (ie. remove the initial C<E<lt>> character so it is just an "
|
|
"ordinary I<!> local command), see what guestfish commands it would run, and "
|
|
"when you are happy with those prepend the C<E<lt>> character to run the "
|
|
"guestfish commands for real."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../fish/guestfish.pod:814
|
|
msgid "PIPES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:816
|
|
msgid ""
|
|
"Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
|
|
"command (a guestfish command) to the second command (any host command). For "
|
|
"example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:820
|
|
#, no-wrap
|
|
msgid ""
|
|
" cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:822
|
|
msgid ""
|
|
"(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
|
|
"program). The above command would list all accounts in the guest filesystem "
|
|
"which have UID 0, ie. root accounts including backdoors. Other examples:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:827
|
|
#, no-wrap
|
|
msgid ""
|
|
" hexdump /bin/ls | head\n"
|
|
" list-devices | tail -1\n"
|
|
" tgz-out / - | tar ztf -\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:831
|
|
msgid ""
|
|
"The space before the pipe symbol is required, any space after the pipe "
|
|
"symbol is optional. Everything after the pipe symbol is just passed "
|
|
"straight to the host shell, so it can contain redirections, globs and "
|
|
"anything else that makes sense on the host side."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:836
|
|
msgid ""
|
|
"To use a literal argument which begins with a pipe symbol, you have to quote "
|
|
"it, eg:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:839
|
|
#, no-wrap
|
|
msgid ""
|
|
" echo \"|\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../fish/guestfish.pod:841
|
|
msgid "HOME DIRECTORIES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:843
|
|
msgid ""
|
|
"If a parameter starts with the character C<~> then the tilde may be expanded "
|
|
"as a home directory path (either C<~> for the current user's home directory, "
|
|
"or C<~user> for another user)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:847
|
|
msgid ""
|
|
"Note that home directory expansion happens for users known I<on the host>, "
|
|
"not in the guest filesystem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:850
|
|
msgid ""
|
|
"To use a literal argument which begins with a tilde, you have to quote it, "
|
|
"eg:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:853
|
|
#, no-wrap
|
|
msgid ""
|
|
" echo \"~\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:855 ../src/guestfs.pod:565
|
|
msgid "ENCRYPTED DISKS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:857
|
|
msgid ""
|
|
"Libguestfs has some support for Linux guests encrypted according to the "
|
|
"Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
|
|
"disk encryption systems used by modern Linux guests. Currently only "
|
|
"LVM-on-LUKS is supported."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:862
|
|
msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:864
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><fs> vfs-type /dev/sda2\n"
|
|
" crypto_LUKS\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:867
|
|
msgid ""
|
|
"Then open those devices using L</luks-open>. This creates a device-mapper "
|
|
"device called C</dev/mapper/luksdev>."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:870
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><fs> luks-open /dev/sda2 luksdev\n"
|
|
" Enter key or passphrase (\"key\"): <enter the passphrase>\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:873
|
|
msgid ""
|
|
"Finally you have to tell LVM to scan for volume groups on the newly created "
|
|
"mapper device:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:876
|
|
#, no-wrap
|
|
msgid ""
|
|
" vgscan\n"
|
|
" vg-activate-all true\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:879
|
|
msgid "The logical volume(s) can now be mounted in the usual way."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:881
|
|
msgid ""
|
|
"Before closing a LUKS device you must unmount any logical volumes on it and "
|
|
"deactivate the volume groups by calling C<vg-activate false VG> on each "
|
|
"one. Then you can close the mapper device:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:885
|
|
#, no-wrap
|
|
msgid ""
|
|
" vg-activate false /dev/VG\n"
|
|
" luks-close /dev/mapper/luksdev\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:890
|
|
msgid ""
|
|
"If a path is prefixed with C<win:> then you can use Windows-style drive "
|
|
"letters and paths (with some limitations). The following commands are "
|
|
"equivalent:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:894
|
|
#, no-wrap
|
|
msgid ""
|
|
" file /WINDOWS/system32/config/system.LOG\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:896
|
|
#, no-wrap
|
|
msgid ""
|
|
" file win:\\windows\\system32\\config\\system.log\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:898
|
|
#, no-wrap
|
|
msgid ""
|
|
" file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:900
|
|
msgid ""
|
|
"The parameter is rewritten \"behind the scenes\" by looking up the position "
|
|
"where the drive is mounted, prepending that to the path, changing all "
|
|
"backslash characters to forward slash, then resolving the result using "
|
|
"L</case-sensitive-path>. For example if the E: drive was mounted on C</e> "
|
|
"then the parameter might be rewritten like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:906
|
|
#, no-wrap
|
|
msgid ""
|
|
" win:e:\\foo\\bar => /e/FOO/bar\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:908
|
|
msgid "This only works in argument positions that expect a path."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../fish/guestfish.pod:910
|
|
msgid "UPLOADING AND DOWNLOADING FILES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:912
|
|
msgid ""
|
|
"For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
|
|
"others which upload from or download to a local file, you can use the "
|
|
"special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:916
|
|
#, no-wrap
|
|
msgid ""
|
|
" upload - /foo\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:918
|
|
msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:921
|
|
#, no-wrap
|
|
msgid ""
|
|
" tar-out /etc - | tar tf -\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:923
|
|
msgid ""
|
|
"writes the tarball to stdout and then pipes that into the external \"tar\" "
|
|
"command (see L</PIPES>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:926
|
|
msgid ""
|
|
"When using C<-> to read from stdin, the input is read up to the end of "
|
|
"stdin. You can also use a special \"heredoc\"-like syntax to read up to "
|
|
"some arbitrary end marker:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:930
|
|
#, no-wrap
|
|
msgid ""
|
|
" upload -<<END /foo\n"
|
|
" input line 1\n"
|
|
" input line 2\n"
|
|
" input line 3\n"
|
|
" END\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:936
|
|
msgid ""
|
|
"Any string of characters can be used instead of C<END>. The end marker must "
|
|
"appear on a line of its own, without any preceding or following characters "
|
|
"(not even spaces)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:940
|
|
msgid ""
|
|
"Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
|
|
"upload local files (so-called \"FileIn\" parameters in the generator)."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../fish/guestfish.pod:943
|
|
msgid "EXIT ON ERROR BEHAVIOUR"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:945
|
|
msgid ""
|
|
"By default, guestfish will ignore any errors when in interactive mode "
|
|
"(ie. taking commands from a human over a tty), and will exit on the first "
|
|
"error in non-interactive mode (scripts, commands given on the command line)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:950
|
|
msgid ""
|
|
"If you prefix a command with a I<-> character, then that command will not "
|
|
"cause guestfish to exit, even if that (one) command returns an error."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../fish/guestfish.pod:954
|
|
msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:956
|
|
msgid ""
|
|
"Guestfish can be remote-controlled over a socket. This is useful "
|
|
"particularly in shell scripts where you want to make several different "
|
|
"changes to a filesystem, but you don't want the overhead of starting up a "
|
|
"guestfish process each time."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:961
|
|
msgid "Start a guestfish server process using:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:963
|
|
#, no-wrap
|
|
msgid ""
|
|
" eval \"`guestfish --listen`\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:965
|
|
msgid "and then send it commands by doing:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:967
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --remote cmd [...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:969
|
|
msgid "To cause the server to exit, send it the exit command:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:973
|
|
msgid ""
|
|
"Note that the server will normally exit if there is an error in a command. "
|
|
"You can change this in the usual way. See section L</EXIT ON ERROR "
|
|
"BEHAVIOUR>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:977
|
|
msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:979
|
|
msgid ""
|
|
"The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
|
|
"is how the I<--remote> option knows where to send the commands. You can "
|
|
"have several guestfish listener processes running using:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:983
|
|
#, no-wrap
|
|
msgid ""
|
|
" eval \"`guestfish --listen`\"\n"
|
|
" pid1=$GUESTFISH_PID\n"
|
|
" eval \"`guestfish --listen`\"\n"
|
|
" pid2=$GUESTFISH_PID\n"
|
|
" ...\n"
|
|
" guestfish --remote=$pid1 cmd\n"
|
|
" guestfish --remote=$pid2 cmd\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:991
|
|
msgid "REMOTE CONTROL AND CSH"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:993
|
|
msgid ""
|
|
"When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
|
|
"option:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:996
|
|
#, no-wrap
|
|
msgid ""
|
|
" eval \"`guestfish --listen --csh`\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:998
|
|
msgid "REMOTE CONTROL DETAILS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1000
|
|
msgid ""
|
|
"Remote control happens over a Unix domain socket called "
|
|
"C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
|
|
"of the process, and C<$PID> is the process ID of the server."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1004
|
|
msgid "Guestfish client and server versions must match exactly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1006
|
|
msgid ""
|
|
"Older versions of guestfish were vulnerable to CVE-2013-4419 (see "
|
|
"L<guestfs(3)/CVE-2013-4419>). This is fixed in the current version."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1009
|
|
msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1011
|
|
msgid ""
|
|
"From Bash, you can use the following code which creates a guestfish "
|
|
"instance, correctly quotes the command line, handles failure to start, and "
|
|
"cleans up guestfish when the script exits:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1019
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish[0]=\"guestfish\"\n"
|
|
" guestfish[1]=\"--listen\"\n"
|
|
" guestfish[2]=\"--ro\"\n"
|
|
" guestfish[3]=\"-a\"\n"
|
|
" guestfish[4]=\"disk.img\"\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1025
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFISH_PID=\n"
|
|
" eval $(\"${guestfish[@]}\")\n"
|
|
" if [ -z \"$GUESTFISH_PID\" ]; then\n"
|
|
" echo \"error: guestfish didn't start up, see error messages above\"\n"
|
|
" exit 1\n"
|
|
" fi\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1032
|
|
#, no-wrap
|
|
msgid ""
|
|
" cleanup_guestfish ()\n"
|
|
" {\n"
|
|
" guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
|
|
" }\n"
|
|
" trap cleanup_guestfish EXIT ERR\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1038
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --remote -- run\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1040
|
|
#, no-wrap
|
|
msgid ""
|
|
" # ...\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1042
|
|
msgid "REMOTE CONTROL DOES NOT WORK WITH I<-a> ETC. OPTIONS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1044
|
|
msgid ""
|
|
"Options such as I<-a>, I<--add>, I<-N>, I<--new> etc don't interact properly "
|
|
"with remote support. They are processed locally, and not sent through to "
|
|
"the remote guestfish. In particular this won't do what you expect:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1049
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --remote --add disk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1051
|
|
msgid "Don't use these options. Use the equivalent commands instead, eg:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1053
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --remote add-drive disk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1057
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --remote\n"
|
|
" ><fs> add disk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1060
|
|
msgid "REMOTE CONTROL RUN COMMAND HANGING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1062
|
|
msgid ""
|
|
"Using the C<run> (or C<launch>) command remotely in a command substitution "
|
|
"context hangs, ie. don't do (note the backquotes):"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1065
|
|
#, no-wrap
|
|
msgid ""
|
|
" a=`guestfish --remote run`\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1067
|
|
msgid ""
|
|
"Since the C<run> command produces no output on stdout, this is not useful "
|
|
"anyway. For further information see "
|
|
"L<https://bugzilla.redhat.com/show_bug.cgi?id=592910>."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../fish/guestfish.pod:1071
|
|
msgid "PREPARED DISK IMAGES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1073
|
|
msgid ""
|
|
"Use the I<-N [filename=]type> or I<--new [filename=]type> parameter to "
|
|
"select one of a set of preformatted disk images that guestfish can make for "
|
|
"you to save typing. This is particularly useful for testing purposes. This "
|
|
"option is used instead of the I<-a> option, and like I<-a> can appear "
|
|
"multiple times (and can be mixed with I<-a>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1079
|
|
msgid ""
|
|
"The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
|
|
"the second and so on. Existing files in the current directory are "
|
|
"I<overwritten>. You can use a different filename by specifying C<filename=> "
|
|
"before the type (see examples below)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1084
|
|
msgid ""
|
|
"The type briefly describes how the disk should be sized, partitioned, how "
|
|
"filesystem(s) should be created, and how content should be added. "
|
|
"Optionally the type can be followed by extra parameters, separated by C<:> "
|
|
"(colon) characters. For example, I<-N fs> creates a default 100MB, "
|
|
"sparsely-allocated disk, containing a single partition, with the partition "
|
|
"formatted as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
|
|
"on a 1GB disk instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1092
|
|
msgid ""
|
|
"Note that the prepared filesystem is not mounted. You would usually have to "
|
|
"use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1096
|
|
msgid ""
|
|
"If any I<-N> or I<--new> options are given, the libguestfs appliance is "
|
|
"automatically launched."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1101
|
|
msgid ""
|
|
"Create a 100MB disk with an ext4-formatted partition, called C<test1.img> in "
|
|
"the current directory:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1104
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -N fs:ext4\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1106
|
|
msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1108
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -N fs:vfat:32M -m /dev/sda1\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1110
|
|
msgid "Create a blank 200MB disk:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1112
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -N disk:200M\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1114
|
|
msgid "Create a blank 200MB disk called C<blankdisk.img> (instead of C<test1.img>):"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1117
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -N blankdisk.img=disk:200M\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1119
|
|
msgid "__PREPOPTS__"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../fish/guestfish.pod:1121
|
|
msgid "ADDING REMOTE STORAGE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1123
|
|
msgid ""
|
|
"I<For API-level documentation on this topic, see "
|
|
"L<guestfs(3)/guestfs_add_drive_opts> and L<guestfs(3)/REMOTE STORAGE>>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1127
|
|
msgid ""
|
|
"On the command line, you can use the I<-a> option to add network block "
|
|
"devices using a URI-style format, for example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1130
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -a ssh://root@example.com/disk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1132
|
|
msgid ""
|
|
"URIs I<cannot> be used with the L</add> command. The equivalent command "
|
|
"using the API directly is:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1135
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><fs> add /disk.img protocol:ssh server:tcp:example.com username:root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1137
|
|
msgid "The possible I<-a URI> formats are described below."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1139
|
|
msgid "B<-a disk.img>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1141
|
|
msgid "B<-a file:///path/to/disk.img>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1143
|
|
msgid "Add the local disk image (or device) called C<disk.img>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1145
|
|
msgid "B<-a ftp://[user@]example.com[:port]/disk.img>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1147
|
|
msgid "B<-a ftps://[user@]example.com[:port]/disk.img>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1149
|
|
msgid "B<-a http://[user@]example.com[:port]/disk.img>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1151
|
|
msgid "B<-a https://[user@]example.com[:port]/disk.img>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1153
|
|
msgid "B<-a tftp://[user@]example.com[:port]/disk.img>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1155
|
|
msgid "Add a disk located on a remote FTP, HTTP or TFTP server."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1157 ../fish/guestfish.pod:1167 ../fish/guestfish.pod:1175 ../fish/guestfish.pod:1209 ../fish/guestfish.pod:1221 ../fish/guestfish.pod:1231
|
|
msgid "The equivalent API command would be:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1159
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><fs> add /disk.img protocol:(ftp|...) server:tcp:example.com\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1161
|
|
msgid "B<-a gluster://example.com[:port]/volname/image>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1163
|
|
msgid "Add a disk image located on GlusterFS storage."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1165
|
|
msgid "The server is the one running C<glusterd>, and may be C<localhost>."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1169
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><fs> add volname/image protocol:gluster server:tcp:example.com\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1171
|
|
msgid "B<-a iscsi://example.com[:port]/target-iqn-name[/lun]>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1173
|
|
msgid "Add a disk located on an iSCSI server."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1177
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><fs> add target-iqn-name/lun protocol:iscsi server:tcp:example.com\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1179
|
|
msgid "B<-a nbd://example.com[:port]>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1181
|
|
msgid "B<-a nbd://example.com[:port]/exportname>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1183
|
|
msgid "B<-a nbd://?socket=/socket>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1185
|
|
msgid "B<-a nbd:///exportname?socket=/socket>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1187
|
|
msgid "Add a disk located on Network Block Device (nbd) storage."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1189
|
|
msgid ""
|
|
"The I</exportname> part of the URI specifies an NBD export name, but is "
|
|
"usually left empty."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1192
|
|
msgid ""
|
|
"The optional I<?socket> parameter can be used to specify a Unix domain "
|
|
"socket that we talk to the NBD server over. Note that you cannot mix server "
|
|
"name (ie. TCP/IP) and socket path."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1196
|
|
msgid "The equivalent API command would be (no export name):"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1198
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><fs> add \"\" protocol:nbd server:[tcp:example.com|unix:/socket]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1200
|
|
msgid "B<-a rbd:///pool/disk>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1202
|
|
msgid "B<-a rbd://example.com[:port]/pool/disk>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1204
|
|
msgid "Add a disk image located on a Ceph (RBD/librbd) storage volume."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1206
|
|
msgid ""
|
|
"Although libguestfs and Ceph supports multiple servers, only a single server "
|
|
"can be specified when using this URI syntax."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1211
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><fs> add pool/disk protocol:rbd server:tcp:example.com:port\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1213
|
|
msgid "B<-a sheepdog://[example.com[:port]]/volume/image>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1215
|
|
msgid "Add a disk image located on a Sheepdog volume."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1217
|
|
msgid ""
|
|
"The server name is optional. Although libguestfs and Sheepdog supports "
|
|
"multiple servers, only at most one server can be specified when using this "
|
|
"URI syntax."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1223
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><fs> add volume protocol:sheepdog [server:tcp:example.com]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1225
|
|
msgid "B<-a ssh://[user@]example.com[:port]/disk.img>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1227
|
|
msgid ""
|
|
"Add a disk image located on a remote server, accessed using the Secure Shell "
|
|
"(ssh) SFTP protocol. SFTP is supported out of the box by all major SSH "
|
|
"servers."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1233
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><fs> add /disk protocol:ssh server:tcp:example.com [username:user]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../fish/guestfish.pod:1235
|
|
msgid "PROGRESS BARS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1237
|
|
msgid ""
|
|
"Some (not all) long-running commands send progress notification messages as "
|
|
"they are running. Guestfish turns these messages into progress bars."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1241
|
|
msgid ""
|
|
"When a command that supports progress bars takes longer than two seconds to "
|
|
"run, and if progress bars are enabled, then you will see one appearing below "
|
|
"the command:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1245
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><fs> copy-size /large-file /another-file 2048M\n"
|
|
" / 10% [#####-----------------------------------------] 00:30\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1248
|
|
msgid ""
|
|
"The spinner on the left hand side moves round once for every progress "
|
|
"notification received from the backend. This is a (reasonably) golden "
|
|
"assurance that the command is \"doing something\" even if the progress bar "
|
|
"is not moving, because the command is able to send the progress "
|
|
"notifications. When the bar reaches 100% and the command finishes, the "
|
|
"spinner disappears."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1255
|
|
msgid ""
|
|
"Progress bars are enabled by default when guestfish is used interactively. "
|
|
"You can enable them even for non-interactive modes using I<--progress-bars>, "
|
|
"and you can disable them completely using I<--no-progress-bars>."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../fish/guestfish.pod:1260
|
|
msgid "PROMPT"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1262
|
|
msgid ""
|
|
"You can change or add colours to the default prompt (C<E<gt>E<lt>fsE<gt>>) "
|
|
"by setting the C<GUESTFISH_PS1> environment variable. A second string "
|
|
"(C<GUESTFISH_OUTPUT>) is printed after the command has been entered and "
|
|
"before the output, allowing you to control the colour of the output. A "
|
|
"third string (C<GUESTFISH_INIT>) is printed before the welcome message, "
|
|
"allowing you to control the colour of that message. A fourth string "
|
|
"(C<GUESTFISH_RESTORE>) is printed before guestfish exits."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1271
|
|
msgid ""
|
|
"A simple prompt can be set by setting C<GUESTFISH_PS1> to an alternate "
|
|
"string:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1274
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ GUESTFISH_PS1='(type a command) '\n"
|
|
" $ export GUESTFISH_PS1\n"
|
|
" $ guestfish\n"
|
|
" [...]\n"
|
|
" (type a command) ▂\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1280
|
|
msgid "You can also use special escape sequences, as described in the table below:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1285
|
|
msgid "\\\\"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1289
|
|
msgid "\\["
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1291
|
|
msgid "\\]"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1293
|
|
msgid "(These should only be used in C<GUESTFISH_PS1>.)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1295
|
|
msgid ""
|
|
"Place non-printing characters (eg. terminal control codes for colours) "
|
|
"between C<\\[...\\]>. What this does it to tell the L<readline(3)> library "
|
|
"that it should treat this subsequence as zero-width, so that command-line "
|
|
"redisplay, editing etc works."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1300
|
|
msgid "\\a"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1302
|
|
msgid "A bell character."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1304
|
|
msgid "\\e"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1306
|
|
msgid "An ASCII ESC (escape) character."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1308
|
|
msgid "\\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1310
|
|
msgid "A newline."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1312
|
|
msgid "\\r"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1314
|
|
msgid "A carriage return."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1316
|
|
msgid "\\NNN"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1318
|
|
msgid "The ASCII character whose code is the octal value NNN."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1320
|
|
msgid "\\xNN"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1322
|
|
msgid "The ASCII character whose code is the hex value NN."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1326
|
|
msgid "EXAMPLES OF PROMPTS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1328
|
|
msgid "Note these these require a terminal that supports ANSI escape codes."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1334
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFISH_PS1='\\[\\e[1;30m\\]><fs>\\[\\e[0;30m\\] '\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1336
|
|
msgid "A bold black version of the ordinary prompt."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1340
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFISH_PS1='\\[\\e[1;32m\\]><fs>\\[\\e[0;31m\\] '\n"
|
|
" GUESTFISH_OUTPUT='\\e[0;30m'\n"
|
|
" GUESTFISH_RESTORE=\"$GUESTFISH_OUTPUT\"\n"
|
|
" GUESTFISH_INIT='\\e[1;34m'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1345
|
|
msgid "Blue welcome text, green prompt, red commands, black command output."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1350 ../resize/virt-resize.pod:700 ../sparsify/virt-sparsify.pod:302 ../sysprep/virt-sysprep.pod:536 ../tools/virt-win-reg:620
|
|
msgid "WINDOWS 8"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1352
|
|
msgid ""
|
|
"Windows 8 \"fast startup\" can prevent guestfish from mounting NTFS "
|
|
"partitions. See L<guestfs(3)/WINDOWS HIBERNATION AND WINDOWS 8 FAST "
|
|
"STARTUP>."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../fish/guestfish.pod:1356
|
|
msgid "GUESTFISH COMMANDS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1358
|
|
msgid ""
|
|
"The commands in this section are guestfish convenience commands, in other "
|
|
"words, they are not part of the L<guestfs(3)> API."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1361
|
|
msgid "help"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1363
|
|
#, no-wrap
|
|
msgid ""
|
|
" help\n"
|
|
" help cmd\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1366
|
|
msgid "Without any parameter, this provides general help."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1368
|
|
msgid "With a C<cmd> parameter, this displays detailed help for that command."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1370
|
|
msgid "exit"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fish/guestfish.pod:1372
|
|
msgid "quit"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1374
|
|
msgid "This exits guestfish. You can also use C<^D> key."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1376
|
|
msgid "__FISH_COMMANDS__"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../fish/guestfish.pod:1378
|
|
msgid "COMMANDS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1380 ../src/guestfs.pod:2472
|
|
msgid "__ACTIONS__"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1384
|
|
msgid ""
|
|
"guestfish returns 0 if the commands completed without error, or 1 if there "
|
|
"was an error."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1391
|
|
msgid "EDITOR"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1393
|
|
msgid ""
|
|
"The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
|
|
"C<vi>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1396 ../src/guestfs.pod:4614
|
|
msgid "FEBOOTSTRAP_KERNEL"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1398 ../src/guestfs.pod:4616
|
|
msgid "FEBOOTSTRAP_MODULES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1400 ../src/guestfs.pod:4618
|
|
msgid ""
|
|
"When using supermin E<ge> 4.1.0, these have been renamed L</SUPERMIN_KERNEL> "
|
|
"and L</SUPERMIN_MODULES>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1403
|
|
msgid "GUESTFISH_DISPLAY_IMAGE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1405
|
|
msgid ""
|
|
"The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
|
|
"If not set, it uses L<display(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1408
|
|
msgid "GUESTFISH_INIT"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1410
|
|
msgid "Printed when guestfish starts. See L</PROMPT>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1412
|
|
msgid "GUESTFISH_OUTPUT"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1414
|
|
msgid "Printed before guestfish output. See L</PROMPT>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1416
|
|
msgid "GUESTFISH_PID"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1418
|
|
msgid ""
|
|
"Used with the I<--remote> option to specify the remote guestfish process to "
|
|
"control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1422
|
|
msgid "GUESTFISH_PS1"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1424
|
|
msgid "Set the command prompt. See L</PROMPT>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1426
|
|
msgid "GUESTFISH_RESTORE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1428
|
|
msgid "Printed before guestfish exits. See L</PROMPT>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1430
|
|
msgid "HEXEDITOR"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1432
|
|
msgid ""
|
|
"The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
|
|
"not specified, the external L<hexedit(1)> program is used."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1436
|
|
msgid "HOME"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1438
|
|
msgid ""
|
|
"If compiled with GNU readline support, various files in the home directory "
|
|
"can be used. See L</FILES>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1441 ../src/guestfs.pod:4621
|
|
msgid "LIBGUESTFS_APPEND"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1443 ../src/guestfs.pod:4623
|
|
msgid "Pass additional options to the guest kernel."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1445 ../src/guestfs.pod:4625
|
|
msgid "LIBGUESTFS_ATTACH_METHOD"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1447 ../src/guestfs.pod:4627
|
|
msgid "This is the old way to set C<LIBGUESTFS_BACKEND>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1449 ../src/guestfs.pod:4629
|
|
msgid "LIBGUESTFS_BACKEND"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1451
|
|
msgid ""
|
|
"Choose the default way to create the appliance. See "
|
|
"L<guestfs(3)/guestfs_set_backend>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1454 ../src/guestfs.pod:4634
|
|
msgid "LIBGUESTFS_BACKEND_SETTINGS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1456
|
|
msgid ""
|
|
"A colon-separated list of backend-specific settings. See "
|
|
"L<guestfs(3)/BACKEND>, L<guestfs(3)/BACKEND SETTINGS>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1459 ../src/guestfs.pod:4639
|
|
msgid "LIBGUESTFS_CACHEDIR"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1461 ../src/guestfs.pod:4641
|
|
msgid ""
|
|
"The location where libguestfs will cache its appliance, when using a "
|
|
"supermin appliance. The appliance is cached and shared between all handles "
|
|
"which have the same effective user ID."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1465 ../src/guestfs.pod:4645
|
|
msgid ""
|
|
"If C<LIBGUESTFS_CACHEDIR> is not set, then C<TMPDIR> is used. If C<TMPDIR> "
|
|
"is not set, then C</var/tmp> is used."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1468
|
|
msgid "See also L</LIBGUESTFS_TMPDIR>, L</set-cachedir>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1470 ../src/guestfs.pod:4650
|
|
msgid "LIBGUESTFS_DEBUG"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1472
|
|
msgid ""
|
|
"Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
|
|
"effect as using the B<-v> option."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1475 ../src/guestfs.pod:4655
|
|
msgid "LIBGUESTFS_HV"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1477 ../src/guestfs.pod:4657
|
|
msgid ""
|
|
"Set the default hypervisor (usually qemu) binary that libguestfs uses. If "
|
|
"not set, then the qemu which was found at compile time by the configure "
|
|
"script is used."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1481 ../src/guestfs.pod:4663
|
|
msgid "LIBGUESTFS_MEMSIZE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1483 ../src/guestfs.pod:4665
|
|
msgid "Set the memory allocated to the qemu process, in megabytes. For example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1486 ../src/guestfs.pod:4668
|
|
#, no-wrap
|
|
msgid ""
|
|
" LIBGUESTFS_MEMSIZE=700\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1488 ../src/guestfs.pod:4670
|
|
msgid "LIBGUESTFS_PATH"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1490
|
|
msgid ""
|
|
"Set the path that guestfish uses to search for kernel and initrd.img. See "
|
|
"the discussion of paths in L<guestfs(3)>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1493 ../src/guestfs.pod:4675
|
|
msgid "LIBGUESTFS_QEMU"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1495 ../src/guestfs.pod:4677
|
|
msgid "This is the old way to set C<LIBGUESTFS_HV>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1497 ../src/guestfs.pod:4679
|
|
msgid "LIBGUESTFS_TMPDIR"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1499 ../src/guestfs.pod:4681
|
|
msgid ""
|
|
"The location where libguestfs will store temporary files used by each "
|
|
"handle."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1502 ../src/guestfs.pod:4684
|
|
msgid ""
|
|
"If C<LIBGUESTFS_TMPDIR> is not set, then C<TMPDIR> is used. If C<TMPDIR> is "
|
|
"not set, then C</tmp> is used."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1505
|
|
msgid "See also L</LIBGUESTFS_CACHEDIR>, L</set-tmpdir>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1507 ../src/guestfs.pod:4689
|
|
msgid "LIBGUESTFS_TRACE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1509
|
|
msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1511
|
|
msgid "PAGER"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1513
|
|
msgid ""
|
|
"The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
|
|
"C<more>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1516 ../src/guestfs.pod:1333 ../src/guestfs.pod:4694
|
|
msgid "PATH"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1518
|
|
msgid ""
|
|
"Libguestfs and guestfish may run some external programs, and rely on "
|
|
"C<$PATH> being set to a reasonable value. If using the libvirt backend, "
|
|
"libvirt will not work at all unless C<$PATH> contains the path of qemu/KVM."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1523 ../src/guestfs.pod:4702
|
|
msgid "SUPERMIN_KERNEL"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1525 ../src/guestfs.pod:4704
|
|
msgid "SUPERMIN_MODULES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1527 ../src/guestfs.pod:4706
|
|
msgid ""
|
|
"These two environment variables allow the kernel that libguestfs uses in the "
|
|
"appliance to be selected. If C<$SUPERMIN_KERNEL> is not set, then the most "
|
|
"recent host kernel is chosen. For more information about kernel selection, "
|
|
"see L<supermin(1)>. This feature is only available in supermin / "
|
|
"febootstrap E<ge> 3.8."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1533 ../sparsify/virt-sparsify.pod:316 ../src/guestfs.pod:4712
|
|
msgid "TMPDIR"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1535 ../src/guestfs.pod:4714
|
|
msgid "See L</LIBGUESTFS_CACHEDIR>, L</LIBGUESTFS_TMPDIR>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1543 ../fuse/guestmount.pod:390 ../rescue/virt-rescue.pod:406
|
|
msgid "$XDG_CONFIG_HOME/libguestfs/libguestfs-tools.conf"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1545 ../fish/libguestfs-tools.conf.pod:69 ../fuse/guestmount.pod:392 ../rescue/virt-rescue.pod:408
|
|
msgid "$HOME/.libguestfs-tools.rc"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1547 ../fuse/guestmount.pod:394 ../rescue/virt-rescue.pod:410
|
|
msgid "$XDG_CONFIG_DIRS/libguestfs/libguestfs-tools.conf"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1549 ../fish/libguestfs-tools.conf.pod:79 ../fuse/guestmount.pod:396 ../rescue/virt-rescue.pod:412
|
|
msgid "/etc/libguestfs-tools.conf"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1551 ../fuse/guestmount.pod:398 ../rescue/virt-rescue.pod:414
|
|
msgid ""
|
|
"This configuration file controls the default read-only or read-write mode "
|
|
"(I<--ro> or I<--rw>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1554 ../fuse/guestmount.pod:401 ../rescue/virt-rescue.pod:417
|
|
msgid "See L<libguestfs-tools.conf(5)>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1556
|
|
msgid "$HOME/.guestfish"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1558
|
|
msgid ""
|
|
"If compiled with GNU readline support, then the command history is saved in "
|
|
"this file."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1561
|
|
msgid "$HOME/.inputrc"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1563
|
|
msgid "/etc/inputrc"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1565
|
|
msgid ""
|
|
"If compiled with GNU readline support, then these files can be used to "
|
|
"configure readline. For further information, please see "
|
|
"L<readline(3)/INITIALIZATION FILE>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1569
|
|
msgid "To write rules which only apply to guestfish, use:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1571
|
|
#, no-wrap
|
|
msgid ""
|
|
" $if guestfish\n"
|
|
" ...\n"
|
|
" $endif\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1575
|
|
msgid ""
|
|
"Variables that you can set in inputrc that change the behaviour of guestfish "
|
|
"in useful ways include:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1580
|
|
msgid "completion-ignore-case (default: on)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1582
|
|
msgid ""
|
|
"By default, guestfish will ignore case when tab-completing paths on the "
|
|
"disk. Use:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/guestfish.pod:1585
|
|
#, no-wrap
|
|
msgid ""
|
|
" set completion-ignore-case off\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1587
|
|
msgid "to make guestfish case sensitive."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1591
|
|
msgid "test1.img"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fish/guestfish.pod:1593
|
|
msgid "test2.img (etc)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1595
|
|
msgid ""
|
|
"When using the I<-N> or I<--new> option, the prepared disk or filesystem "
|
|
"will be created in the file C<test1.img> in the current directory. The "
|
|
"second use of I<-N> will use C<test2.img> and so on. Any existing file with "
|
|
"the same name will be overwritten. You can use a different filename by "
|
|
"using the C<filename=> prefix."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/guestfish.pod:1605
|
|
msgid ""
|
|
"L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, "
|
|
"L<virt-builder(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
|
|
"L<virt-df(1)>, L<virt-diff(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
|
|
"L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
|
|
"L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
|
|
"L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, "
|
|
"L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
|
|
"L<virt-win-reg(1)>, L<libguestfs-tools.conf(5)>, L<display(1)>, "
|
|
"L<hexedit(1)>, L<supermin(1)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/libguestfs-tools.conf.pod:5
|
|
msgid ""
|
|
"libguestfs-tools.conf - configuration file for guestfish, guestmount, "
|
|
"virt-rescue"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/libguestfs-tools.conf.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" /etc/libguestfs-tools.conf\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/libguestfs-tools.conf.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" $XDG_CONFIG_DIRS/libguestfs/libguestfs-tools.conf\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/libguestfs-tools.conf.pod:13
|
|
#, no-wrap
|
|
msgid ""
|
|
" $HOME/.libguestfs-tools.rc\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/libguestfs-tools.conf.pod:15
|
|
#, no-wrap
|
|
msgid ""
|
|
" $XDG_CONFIG_HOME/libguestfs/libguestfs-tools.conf\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/libguestfs-tools.conf.pod:19
|
|
msgid ""
|
|
"C<libguestfs-tools.conf> (or C<$HOME/.libguestfs-tools.rc>) changes the "
|
|
"defaults for the following programs only:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/libguestfs-tools.conf.pod:26
|
|
msgid "L<guestfish(1)>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/libguestfs-tools.conf.pod:30
|
|
msgid "L<guestmount(1)>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/libguestfs-tools.conf.pod:34
|
|
msgid "L<virt-rescue(1)>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/libguestfs-tools.conf.pod:38
|
|
msgid ""
|
|
"There is currently only one setting which is controlled by this file. "
|
|
"Adding (or uncommenting):"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/libguestfs-tools.conf.pod:41
|
|
#, no-wrap
|
|
msgid ""
|
|
" read_only = true;\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/libguestfs-tools.conf.pod:43
|
|
msgid ""
|
|
"changes these programs so they act as if the I<--ro> flag was given on the "
|
|
"command line. You can use this to make the programs safe against accidental "
|
|
"modification of a live guest (users would have to explicitly add the I<--rw> "
|
|
"flag to modify guests). This is not the default because it is not backwards "
|
|
"compatible. See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/libguestfs-tools.conf.pod:50
|
|
msgid "Note that B<the semicolon is required>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/libguestfs-tools.conf.pod:52
|
|
msgid ""
|
|
"This file is parsed by the libconfig library. For more information about "
|
|
"the format, see: "
|
|
"L<http://www.hyperrealm.com/libconfig/libconfig_manual.html>"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../fish/libguestfs-tools.conf.pod:56
|
|
msgid "FILE LOCATION"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/libguestfs-tools.conf.pod:58
|
|
msgid "The order of the configuration files being read is, by importance:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/libguestfs-tools.conf.pod:64
|
|
msgid ""
|
|
"$XDG_CONFIG_HOME/libguestfs/libguestfs-tools.conf (C<$XDG_CONFIG_HOME> is "
|
|
"C<$HOME/.config> if not set)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/libguestfs-tools.conf.pod:73
|
|
msgid ""
|
|
"$XDG_CONFIG_DIRS/libguestfs/libguestfs-tools.conf (where C<$XDG_CONFIG_DIRS> "
|
|
"means any of the directories in that environment variable, or just "
|
|
"C</etc/xdg> if not set)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/libguestfs-tools.conf.pod:83
|
|
msgid ""
|
|
"This means local users can override the system configuration by copying the "
|
|
"configuration file (or creating it anew) into "
|
|
"C<$XDG_CONFIG_HOME/libguestfs/libguestfs-tools.conf>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/libguestfs-tools.conf.pod:87
|
|
msgid ""
|
|
"C</etc/libguestfs-tools.conf> and C<$HOME/.libguestfs-tools.rc> are the old "
|
|
"non-XDG paths which are read for compatibility."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/libguestfs-tools.conf.pod:92
|
|
msgid ""
|
|
"L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>, L<guestmount(1)>, "
|
|
"L<virt-rescue(1)>, L<http://libguestfs.org/>, "
|
|
"L<http://standards.freedesktop.org/basedir-spec/latest/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/libguestfs-tools.conf.pod:104 ../sysprep/virt-sysprep.pod:576
|
|
msgid "Copyright (C) 2011-2014 Red Hat Inc."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-copy-in.pod:5
|
|
msgid "virt-copy-in - Copy files and directories into a virtual machine disk image."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/virt-copy-in.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/virt-copy-in.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-copy-in.pod:15
|
|
msgid ""
|
|
"Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
|
|
"causing disk corruption. The virtual machine must be shut down before you "
|
|
"use this command."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-copy-in.pod:21
|
|
msgid ""
|
|
"C<virt-copy-in> copies files and directories from the local disk into a "
|
|
"virtual machine disk image or named libvirt domain."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-copy-in.pod:24
|
|
msgid ""
|
|
"You can give one of more filenames and directories on the command line. "
|
|
"Directories are copied in recursively. The final parameter must be the "
|
|
"destination directory in the disk image which must be an absolute path "
|
|
"starting with a C</> character."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/virt-copy-in.pod:33
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-copy-in -d MyGuest resolv.conf /etc\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
|
|
msgid "Upload a home directory to a guest:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/virt-copy-in.pod:37
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-copy-in -d MyGuest skel /home\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28 ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
|
|
msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-copy-in.pod:41
|
|
msgid ""
|
|
"This command is just a simple shell script wrapper around the "
|
|
"L<guestfish(1)> C<copy-in> command. For anything more complex than a "
|
|
"trivial copy, you are probably better off using guestfish directly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36 ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
|
|
msgid ""
|
|
"Since the shell script just passes options straight to guestfish, read "
|
|
"L<guestfish(1)> to see the full list of options."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-copy-in.pod:52
|
|
msgid ""
|
|
"L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
|
|
"L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-copy-out.pod:5
|
|
msgid ""
|
|
"virt-copy-out - Copy files and directories out of a virtual machine disk "
|
|
"image."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/virt-copy-out.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/virt-copy-out.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-copy-out.pod:15
|
|
msgid ""
|
|
"C<virt-copy-out> copies files and directories out of a virtual machine disk "
|
|
"image or named libvirt domain."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-copy-out.pod:18
|
|
msgid ""
|
|
"You can give one of more filenames and directories on the command line. "
|
|
"Directories are copied out recursively."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-copy-out.pod:23
|
|
msgid "Download the home directories from a virtual machine:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/virt-copy-out.pod:25
|
|
#, no-wrap
|
|
msgid ""
|
|
" mkdir homes\n"
|
|
" virt-copy-out -d MyGuest /home homes\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-copy-out.pod:30
|
|
msgid ""
|
|
"This command is just a simple shell script wrapper around the "
|
|
"L<guestfish(1)> C<copy-out> command. For anything more complex than a "
|
|
"trivial copy, you are probably better off using guestfish directly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-copy-out.pod:41
|
|
msgid ""
|
|
"L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, "
|
|
"L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-tar-in.pod:5
|
|
msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/virt-tar-in.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-tar-in -a disk.img data.tar /destination\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/virt-tar-in.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-tar-in -d domain data.tar /destination\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/virt-tar-in.pod:13
|
|
#, no-wrap
|
|
msgid ""
|
|
" zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-tar-in.pod:17
|
|
msgid ""
|
|
"Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
|
|
"causing disk corruption. The virtual machine must be shut down before you "
|
|
"use this command."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-tar-in.pod:23
|
|
msgid ""
|
|
"C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
|
|
"image or named libvirt domain."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-tar-in.pod:26
|
|
msgid ""
|
|
"The first parameter is the tar file. Use C<-> to read the tar file from "
|
|
"standard input. The second parameter is the absolute target directory to "
|
|
"unpack into."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/virt-tar-in.pod:34
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-tar-in -d MyGuest homes.tar /home\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-tar-in.pod:38
|
|
msgid ""
|
|
"This command is just a simple shell script wrapper around the "
|
|
"L<guestfish(1)> C<tar-in> command. For anything more complex than a trivial "
|
|
"copy, you are probably better off using guestfish directly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-tar-in.pod:49
|
|
msgid ""
|
|
"L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
|
|
"L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
|
|
"L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-tar-out.pod:5
|
|
msgid "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/virt-tar-out.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-tar-out -a disk.img /dir files.tar\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/virt-tar-out.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-tar-out -d domain /dir files.tar\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/virt-tar-out.pod:13
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-tar-out.pod:17
|
|
msgid "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-tar-out.pod:20
|
|
msgid ""
|
|
"The first parameter is the absolute path of the virtual machine directory. "
|
|
"The second parameter is the tar file to write. Use C<-> to write to "
|
|
"standard output."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-tar-out.pod:26
|
|
msgid "Download the home directories from a guest:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fish/virt-tar-out.pod:28
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-tar-out.pod:32
|
|
msgid ""
|
|
"This command is just a simple shell script wrapper around the "
|
|
"L<guestfish(1)> C<tar-out> command. For anything more complex than a "
|
|
"trivial copy, you are probably better off using guestfish directly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fish/virt-tar-out.pod:43
|
|
msgid ""
|
|
"L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
|
|
"L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:5
|
|
msgid "virt-format - Erase and make a blank disk"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../format/virt-format.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-format [--options] -a disk.img [-a disk.img ...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:13
|
|
msgid ""
|
|
"Virt-format takes an existing disk file (or it can be a host partition, LV "
|
|
"etc), B<erases all data on it>, and formats it as a blank disk. It can "
|
|
"optionally create partition tables, empty filesystems, logical volumes and "
|
|
"more."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:18
|
|
msgid ""
|
|
"To create a disk containing data, you may be better to use "
|
|
"L<virt-make-fs(1)>. If you are creating a blank disk to use in "
|
|
"L<guestfish(1)>, you should instead use the guestfish I<-N> option."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:22
|
|
msgid "Normal usage would be something like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../format/virt-format.pod:24
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-format -a disk.qcow\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:26
|
|
msgid "or this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../format/virt-format.pod:28
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-format -a /dev/VG/LV\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:30
|
|
msgid ""
|
|
"C<disk.qcow> or C</dev/VG/LV> must exist already. B<Any data on these disks "
|
|
"will be erased by these commands>. These commands will create a single "
|
|
"empty partition covering the whole disk, with no filesystem inside it."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:35
|
|
msgid ""
|
|
"Additional parameters can be used to control the creation of partitions, "
|
|
"filesystems, etc. The most commonly used options are:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../format/virt-format.pod:40
|
|
msgid "I<--filesystem=[ext3|ntfs|vfat|...]>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:42
|
|
msgid "Create an empty filesystem (C<ext3>, C<ntfs> etc) inside the partition."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../format/virt-format.pod:44
|
|
msgid "I<--lvm[=/dev/VG/LV]>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:46
|
|
msgid ""
|
|
"Create a Linux LVM2 logical volume on the disk. When used with "
|
|
"I<--filesystem>, the filesystem is created inside the LV."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:51
|
|
msgid "For more information about these and other options, see L</OPTIONS> below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:54
|
|
msgid ""
|
|
"The format of the disk is normally auto-detected, but you can also force it "
|
|
"by using the I<--format> option (q.v.). In situations where you do not "
|
|
"trust the existing content of the disk, then it is advisable to use this "
|
|
"option to avoid possible exploits."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:71
|
|
msgid "Add I<file>, a disk image, host partition, LV, external USB disk, etc."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:76
|
|
msgid "B<Any existing data on the disk is erased.>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../format/virt-format.pod:84
|
|
msgid "B<--filesystem=ext3|ntfs|vfat|...>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:86
|
|
msgid ""
|
|
"Create an empty filesystem of the specified type. Many filesystem types are "
|
|
"supported by libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../format/virt-format.pod:89
|
|
msgid "B<--filesystem=none>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:91
|
|
msgid "Create no filesystem. This is the default."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../format/virt-format.pod:104
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-format --format=raw -a disk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../format/virt-format.pod:108
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-format --format=raw -a disk.img --format -a another.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../format/virt-format.pod:117
|
|
msgid "B<--label=LABEL>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:119 ../make-fs/virt-make-fs.pod:185
|
|
msgid "Set the filesystem label."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../format/virt-format.pod:121
|
|
msgid "B<--lvm=/dev/I<VG>/I<LV>>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:123
|
|
msgid ""
|
|
"Create a Linux LVM2 logical volume called C</dev/I<VG>/I<LV>>. You can "
|
|
"change the name of the volume group and logical volume."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../format/virt-format.pod:126
|
|
msgid "B<--lvm>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:128
|
|
msgid "Create a Linux LVM2 logical volume with the default name (C</dev/VG/LV>)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../format/virt-format.pod:131
|
|
msgid "B<--lvm=none>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:133
|
|
msgid "Create no logical volume. This is the default."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../format/virt-format.pod:135 ../make-fs/virt-make-fs.pod:187
|
|
msgid "B<--partition>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:137
|
|
msgid ""
|
|
"Create either an MBR or GPT partition covering the whole disk. MBR is "
|
|
"chosen if the disk size is E<lt> 2 TB, GPT if E<ge> 2 TB."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../format/virt-format.pod:142
|
|
msgid "B<--partition=gpt>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:144
|
|
msgid "Create a GPT partition."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../format/virt-format.pod:146
|
|
msgid "B<--partition=mbr>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:148
|
|
msgid "Create an MBR partition."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../format/virt-format.pod:150
|
|
msgid "B<--partition=none>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:152
|
|
msgid ""
|
|
"Create no partition table. Note that Windows may not be able to see these "
|
|
"disks."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../format/virt-format.pod:167
|
|
msgid "B<--wipe>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:169
|
|
msgid ""
|
|
"Normally virt-format does not wipe data from the disk (because that takes a "
|
|
"long time). Thus if there is data on the disk, it is only hidden and "
|
|
"partially overwritten by virt-format, and it might be recovered by disk "
|
|
"editing tools."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:174
|
|
msgid ""
|
|
"If you use this option, virt-format writes zeroes over the whole disk so "
|
|
"that previous data is not recoverable."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:185
|
|
msgid "This program returns C<0> on success, or C<1> on failure."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../format/virt-format.pod:189
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-make-fs(1)>, "
|
|
"L<virt-rescue(1)>, L<virt-resize(1)>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:5
|
|
msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestmount.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestmount.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestmount.pod:13
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestmount [--options] -d Guest -i [--ro] mountpoint\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:17
|
|
msgid ""
|
|
"You must I<not> use C<guestmount> in read-write mode on live virtual "
|
|
"machines. If you do this, you risk disk corruption in the VM."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:22
|
|
msgid ""
|
|
"The guestmount program can be used to mount virtual machine filesystems and "
|
|
"other disk images on the host. It uses libguestfs for access to the guest "
|
|
"filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
|
|
"a mountable device."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:27
|
|
msgid ""
|
|
"Along with other options, you have to give at least one device (I<-a> "
|
|
"option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
|
|
"option) or use the I<-i> inspection option or the I<--live> option. How "
|
|
"this works is better explained in the L<guestfish(1)> manual page, or by "
|
|
"looking at the examples below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:33
|
|
msgid ""
|
|
"FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
|
|
"by you, and the filesystem will not be visible to any other users unless you "
|
|
"make certain global configuration changes to C</etc/fuse.conf>. To unmount "
|
|
"the filesystem, use the L<guestunmount(1)> command."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:41
|
|
msgid ""
|
|
"For a typical Windows guest which has its main filesystem on the first "
|
|
"partition:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestmount.pod:44
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:46
|
|
msgid ""
|
|
"For a typical Linux guest which has a /boot filesystem on the first "
|
|
"partition, and the root filesystem on a logical volume:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestmount.pod:49
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:51
|
|
msgid "To get libguestfs to detect guest mountpoints for you:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestmount.pod:53
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestmount -a guest.img -i --ro /mnt\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:55
|
|
msgid "For a libvirt guest called \"Guest\" you could do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestmount.pod:57
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestmount -d Guest -i --ro /mnt\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:59
|
|
msgid ""
|
|
"If you don't know what filesystems are contained in a guest or disk image, "
|
|
"use L<virt-filesystems(1)> first:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestmount.pod:62
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-filesystems -d MyGuest\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:64
|
|
msgid ""
|
|
"If you want to trace the libguestfs calls but without excessive debugging "
|
|
"information, we recommend:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestmount.pod:67
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestmount [...] --trace /mnt\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:69
|
|
msgid "If you want to debug the program, we recommend:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestmount.pod:71
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestmount [...] --trace --verbose /mnt\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:73
|
|
msgid "To unmount the filesystem after using it:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestmount.pod:75
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestunmount /mnt\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../fuse/guestmount.pod:77 ../rescue/virt-rescue.pod:96 ../resize/virt-resize.pod:645
|
|
msgid "NOTES"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fuse/guestmount.pod:79
|
|
msgid "Other users cannot see the filesystem by default"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:81
|
|
msgid ""
|
|
"If you mount a filesystem as one user (eg. root), then other users will not "
|
|
"be able to see it by default. The fix is to add the FUSE C<allow_other> "
|
|
"option when mounting:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestmount.pod:85
|
|
#, no-wrap
|
|
msgid ""
|
|
" sudo guestmount [...] -o allow_other /mnt\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fuse/guestmount.pod:87
|
|
msgid "Enabling FUSE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:89
|
|
msgid ""
|
|
"On some distros, you may need to add yourself to a special group "
|
|
"(eg. C<fuse>) before you can use any FUSE filesystem. This is necessary on "
|
|
"Debian and derivatives."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:93
|
|
msgid ""
|
|
"On other distros, no special group is required. It is not necessary on "
|
|
"Fedora or Red Hat Enterprise Linux."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fuse/guestmount.pod:96
|
|
msgid "fusermount error: \"Device or resource busy\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:98
|
|
msgid ""
|
|
"You can see this error when another process on the system jumps into the "
|
|
"mountpoint you have just created, holding it open and preventing you from "
|
|
"unmounting it. The usual culprits are various GUI \"indexing\" programs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:103
|
|
msgid ""
|
|
"The popular workaround for this problem is to retry the C<fusermount -u> "
|
|
"command a few times until it works (L<guestunmount(1)> does this for you). "
|
|
"Unfortunately this isn't a reliable fix if (for example) the mounted "
|
|
"filesystem is particularly large and the intruding program particularly "
|
|
"persistent."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:109
|
|
msgid ""
|
|
"A proper fix is to use a private mountpoint by creating a new mount "
|
|
"namespace using the Linux-specific L<clone(2)>/L<unshare(2)> flag "
|
|
"C<CLONE_NEWNS>. Unfortunately at the moment this requires root and we would "
|
|
"also probably need to add it as a feature to guestmount."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fuse/guestmount.pod:114
|
|
msgid "Race conditions possible when shutting down the connection"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:116
|
|
msgid ""
|
|
"When L<guestunmount(1)>/L<fusermount(1)> exits, guestmount may still be "
|
|
"running and cleaning up the mountpoint. The disk image will not be fully "
|
|
"finalized."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:120
|
|
msgid "This means that scripts like the following have a nasty race condition:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestmount.pod:123
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestmount -a disk.img -i /mnt\n"
|
|
" # copy things into /mnt\n"
|
|
" guestunmount /mnt\n"
|
|
" # immediately try to use 'disk.img' ** UNSAFE **\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:128
|
|
msgid ""
|
|
"The solution is to use the I<--pid-file> option to write the guestmount PID "
|
|
"to a file, then after guestunmount spin waiting for this PID to exit."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestmount.pod:132
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestmount -a disk.img -i --pid-file guestmount.pid /mnt\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestmount.pod:134
|
|
#, no-wrap
|
|
msgid ""
|
|
" # ...\n"
|
|
" # ...\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestmount.pod:137
|
|
#, no-wrap
|
|
msgid ""
|
|
" # Save the PID of guestmount *before* calling guestunmount.\n"
|
|
" pid=\"$(cat guestmount.pid)\"\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestmount.pod:140
|
|
#, no-wrap
|
|
msgid ""
|
|
" # Unmount the filesystem.\n"
|
|
" guestunmount /mnt\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestmount.pod:143
|
|
#, no-wrap
|
|
msgid ""
|
|
" timeout=10\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestmount.pod:145
|
|
#, no-wrap
|
|
msgid ""
|
|
" count=$timeout\n"
|
|
" while kill -0 \"$pid\" 2>/dev/null && [ $count -gt 0 ]; do\n"
|
|
" sleep 1\n"
|
|
" ((count--))\n"
|
|
" done\n"
|
|
" if [ $count -eq 0 ]; then\n"
|
|
" echo \"$0: wait for guestmount to exit failed after $timeout "
|
|
"seconds\"\n"
|
|
" exit 1\n"
|
|
" fi\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestmount.pod:155
|
|
#, no-wrap
|
|
msgid ""
|
|
" # Now it is safe to use the disk image.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:157
|
|
msgid ""
|
|
"Note that if you use the C<guestfs_mount_local> API directly (see "
|
|
"L<guestfs(3)/MOUNT LOCAL>) then it is much easier to write a safe, race-free "
|
|
"program."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:169
|
|
msgid "Add a block device or virtual machine image."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fuse/guestmount.pod:198
|
|
msgid "B<--dir-cache-timeout N>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:200
|
|
msgid ""
|
|
"Set the readdir cache timeout to I<N> seconds, the default being 60 "
|
|
"seconds. The readdir cache [actually, there are several semi-independent "
|
|
"caches] is populated after a readdir(2) call with the stat and extended "
|
|
"attributes of the files in the directory, in anticipation that they will be "
|
|
"requested soon after."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:206
|
|
msgid ""
|
|
"There is also a different attribute cache implemented by FUSE (see the FUSE "
|
|
"option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
|
|
"requests, only cache existing ones."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:226
|
|
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 "
|
|
"with malicious guests (CVE-2010-3851). See also "
|
|
"L<guestfs(3)/guestfs_add_drive_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fuse/guestmount.pod:231
|
|
msgid "B<--fuse-help>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:233
|
|
msgid "Display help on special FUSE options (see I<-o> below)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:237 ../fuse/guestunmount.pod:83
|
|
msgid "Display brief help and exit."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fuse/guestmount.pod:257
|
|
msgid "B<-m dev[:mountpoint[:options[:fstype]]>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:261
|
|
msgid ""
|
|
"Mount the named partition or logical volume on the given mountpoint B<in the "
|
|
"guest> (this has nothing to do with mountpoints in the host)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:264
|
|
msgid ""
|
|
"If the mountpoint is omitted, it defaults to C</>. You have to mount "
|
|
"something on C</>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fuse/guestmount.pod:282
|
|
msgid "B<--no-fork>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:284
|
|
msgid "Don't daemonize (or fork into the background)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:290
|
|
msgid ""
|
|
"By default, we attempt to sync the guest disk when the FUSE mountpoint is "
|
|
"unmounted. If you specify this option, then we don't attempt to sync the "
|
|
"disk. See the discussion of autosync in the L<guestfs(3)> manpage."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fuse/guestmount.pod:295
|
|
msgid "B<-o option>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fuse/guestmount.pod:297
|
|
msgid "B<--option option>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:299
|
|
msgid "Pass extra options to FUSE."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:301
|
|
msgid ""
|
|
"To get a list of all the extra options supported by FUSE, use the command "
|
|
"below. Note that only the FUSE I<-o> options can be passed, and only some "
|
|
"of them are a good idea."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestmount.pod:305
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestmount --fuse-help\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:307
|
|
msgid "Some potentially useful FUSE options:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fuse/guestmount.pod:311
|
|
msgid "B<-o allow_other>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:313
|
|
msgid "Allow other users to see the filesystem."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fuse/guestmount.pod:315
|
|
msgid "B<-o attr_timeout=N>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:317
|
|
msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fuse/guestmount.pod:319
|
|
msgid "B<-o kernel_cache>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:321
|
|
msgid ""
|
|
"Allow the kernel to cache files (reduces the number of reads that have to go "
|
|
"through the L<guestfs(3)> API). This is generally a good idea if you can "
|
|
"afford the extra memory usage."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fuse/guestmount.pod:325
|
|
msgid "B<-o uid=N> B<-o gid=N>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:327
|
|
msgid ""
|
|
"Use these options to map all UIDs and GIDs inside the guest filesystem to "
|
|
"the chosen values."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fuse/guestmount.pod:332
|
|
msgid "B<--pid-file filename>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:334
|
|
msgid "Write the PID of the guestmount worker process to C<filename>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:340
|
|
msgid ""
|
|
"Add devices and mount everything read-only. Also disallow writes and make "
|
|
"the disk appear read-only to FUSE."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:343
|
|
msgid ""
|
|
"This is highly recommended if you are not going to edit the guest disk. If "
|
|
"the guest is running and this option is I<not> supplied, then there is a "
|
|
"strong risk of disk corruption in the guest. We try to prevent this from "
|
|
"happening, but it is not always possible."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:348 ../rescue/virt-rescue.pod:208
|
|
msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:352
|
|
msgid "Enable SELinux support for the guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:358
|
|
msgid "Enable verbose messages from underlying libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:364 ../fuse/guestunmount.pod:111
|
|
msgid "Display the program version and exit."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:373 ../rescue/virt-rescue.pod:259
|
|
msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fuse/guestmount.pod:377
|
|
msgid "B<--trace>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:379
|
|
msgid "Trace libguestfs calls and entry into each FUSE function."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:381
|
|
msgid ""
|
|
"This also stops the daemon from forking into the background (see "
|
|
"I<--no-fork>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestmount.pod:412
|
|
msgid ""
|
|
"L<guestunmount(1)>, L<fusermount(1)>, L<guestfish(1)>, L<virt-inspector(1)>, "
|
|
"L<virt-cat(1)>, L<virt-edit(1)>, L<virt-tar(1)>, "
|
|
"L<libguestfs-tools.conf(5)>, L<guestfs(3)/MOUNT LOCAL>, "
|
|
"L<http://libguestfs.org/>, L<http://fuse.sf.net/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:5
|
|
msgid "guestunmount - Unmount a guestmounted filesystem"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestunmount.pod:9 ../fuse/guestunmount.pod:25
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestunmount mountpoint\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestunmount.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestunmount --fd=<FD> mountpoint\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:15
|
|
msgid ""
|
|
"guestunmount is a utility to clean up mounted filesystems automatically. "
|
|
"L<guestmount(1)> mounts filesystems using libguestfs. This program unmounts "
|
|
"the filesystem when a program or script has finished with it."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:20
|
|
msgid ""
|
|
"guestunmount is a wrapper around the FUSE L<fusermount(1)> program, which "
|
|
"must exist on the current C<PATH>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:23
|
|
msgid "There are two ways to use guestunmount. When called as:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:27
|
|
msgid "it unmounts C<mountpoint> immediately."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:29
|
|
msgid "When called as:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestunmount.pod:31 ../fuse/guestunmount.pod:51
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestunmount --fd=FD mountpoint\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:33
|
|
msgid ""
|
|
"it waits until the pipe C<FD> is closed. This can be used to monitor "
|
|
"another process and clean up its mountpoint when that process exits, as "
|
|
"described below."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fuse/guestunmount.pod:37
|
|
msgid "FROM PROGRAMS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:39
|
|
msgid ""
|
|
"You can just call C<guestunmount mountpoint> from the program, but a more "
|
|
"sophisticated way to use guestunmount is to have it monitor your program so "
|
|
"it can clean up the mount point if your program exits unexpectedly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:44
|
|
msgid ""
|
|
"In the program, create a pipe (eg. by calling L<pipe(2)>). Let C<FD> be the "
|
|
"file descriptor number of the read side of the pipe (ie. C<pipefd[0]>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:48
|
|
msgid ""
|
|
"After mounting the filesystem with L<guestmount(1)> (on C<mountpoint>), fork "
|
|
"and run guestunmount like this:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:53
|
|
msgid "Close the read side of the pipe in the parent process."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:55
|
|
msgid ""
|
|
"Now, when the write side of the pipe (ie. C<pipefd[1]>) is closed for any "
|
|
"reason, either explicitly or because the parent process exits, guestunmount "
|
|
"notices and unmounts the mountpoint."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:59
|
|
msgid ""
|
|
"If your operating system supports it, you should set the C<FD_CLOEXEC> flag "
|
|
"on the write side of the pipe. This is so that other child processes don't "
|
|
"inherit the file descriptor and keep it open."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:63
|
|
msgid "Guestunmount never daemonizes itself."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../fuse/guestunmount.pod:65
|
|
msgid "FROM SHELL SCRIPTS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:67
|
|
msgid ""
|
|
"Since bash doesn't provide a way to create an unnamed pipe, use a trap to "
|
|
"call guestunmount on exit like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../fuse/guestunmount.pod:70
|
|
#, no-wrap
|
|
msgid ""
|
|
" trap \"guestunmount mountpoint\" EXIT INT QUIT TERM\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fuse/guestunmount.pod:76
|
|
msgid "B<--fd=FD>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:78
|
|
msgid ""
|
|
"Specify the pipe file descriptor to monitor, and delay cleanup until that "
|
|
"pipe is closed."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:89
|
|
msgid ""
|
|
"Don't display error messages from fusermount. The return status is still "
|
|
"set (see L</EXIT STATUS> below)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fuse/guestunmount.pod:92
|
|
msgid "B<--no-retry>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fuse/guestunmount.pod:94
|
|
msgid "B<--retry=N>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:96
|
|
msgid ""
|
|
"By default, guestunmount will retry the fusermount operation up to S<5 "
|
|
"times> (that is, it will run it up to S<6 times> = S<1 try> + S<5 retries>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:100
|
|
msgid "Use I<--no-retry> to make guestunmount run fusermount only once."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:102
|
|
msgid "Use I<--retry=N> to make guestunmount retry C<N> times instead of 5."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:104
|
|
msgid ""
|
|
"guestunmount performs an exponential back-off between retries, waiting S<1 "
|
|
"second>, S<2 seconds>, S<4 seconds>, etc before each retry."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fuse/guestunmount.pod:119
|
|
msgid "C<PATH>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:121
|
|
msgid ""
|
|
"The L<fusermount(1)> program (supplied by FUSE) must be available on the "
|
|
"current C<PATH>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:128
|
|
msgid "This program returns 0 if successful, or one of the following error codes:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fuse/guestunmount.pod:133
|
|
msgid "C<1>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:135
|
|
msgid ""
|
|
"Program error, eg. could not allocate memory, could not run fusermount. See "
|
|
"the error message printed for more information."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fuse/guestunmount.pod:138
|
|
msgid "C<2>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:140
|
|
msgid ""
|
|
"The mount point could not be unmounted even after retrying. See the error "
|
|
"message printed for the underlying fusermount error."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../fuse/guestunmount.pod:143
|
|
msgid "C<3>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:145
|
|
msgid "The mount point is not mounted."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../fuse/guestunmount.pod:151
|
|
msgid ""
|
|
"L<guestmount(1)>, L<fusermount(1)>, L<pipe(2)>, L<guestfs(3)/MOUNT LOCAL>, "
|
|
"L<http://libguestfs.org/>, L<http://fuse.sf.net/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../golang/examples/guestfs-golang.pod:5
|
|
msgid "guestfs-golang - How to use libguestfs from Go"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../golang/examples/guestfs-golang.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" import \"libguestfs.org/guestfs\"\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../golang/examples/guestfs-golang.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" g, errno := guestfs.Create ()\n"
|
|
" if errno != nil {\n"
|
|
" panic (fmt.Sprintf (\"could not create handle: %s\", errno))\n"
|
|
" }\n"
|
|
" defer g.Close ()\n"
|
|
" if err := g.Add_drive (\"test.img\"); err != nil {\n"
|
|
" panic (err)\n"
|
|
" }\n"
|
|
" if err := g.Launch (); err != nil {\n"
|
|
" panic (err)\n"
|
|
" }\n"
|
|
" if err := g.Shutdown (); err != nil {\n"
|
|
" panic (err)\n"
|
|
" }\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../golang/examples/guestfs-golang.pod:28
|
|
msgid ""
|
|
"This manual page documents how to call libguestfs from the Go 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<guestfs(3)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../golang/examples/guestfs-golang.pod:33
|
|
msgid "IMPORTING THE MODULE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../golang/examples/guestfs-golang.pod:35
|
|
msgid ""
|
|
"The module is called C<guestfs>. The full package name to import is "
|
|
"C<libguestfs.org/guestfs>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../golang/examples/guestfs-golang.pod:38
|
|
msgid "CREATING AND CLOSING THE HANDLE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../golang/examples/guestfs-golang.pod:40
|
|
msgid ""
|
|
"Use either C<guestfs.Create> or C<guestfs.Create_flags> to create the "
|
|
"handle. The handle is closed implicitly if it is garbage collected. "
|
|
"However it is probably a good idea to close it explicitly, either by calling "
|
|
"S<C<g.Close ()>> or by deferring the same."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../golang/examples/guestfs-golang.pod:45 ../lua/examples/guestfs-lua.pod:76 ../perl/examples/guestfs-perl.pod:27
|
|
msgid "ERRORS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../golang/examples/guestfs-golang.pod:47
|
|
msgid ""
|
|
"C<guestfs.Create> and C<guestfs.Create_flags> return a simple C<*error>, "
|
|
"which is really just a C C<errno> wrapped up in the appropriate golang "
|
|
"struct."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../golang/examples/guestfs-golang.pod:51
|
|
msgid ""
|
|
"All other calls return a C<*GuestfsError> which (if non-nil) is a richer "
|
|
"struct that contains the error string from libguestfs, the errno (if "
|
|
"available) and the operation which failed. This can also be converted to a "
|
|
"string for display."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../golang/examples/guestfs-golang.pod:56
|
|
msgid "LIMITATIONS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../golang/examples/guestfs-golang.pod:62
|
|
msgid "No support for events (see L<guestfs(3)/EVENTS>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../golang/examples/guestfs-golang.pod:66
|
|
msgid "UUIDs are not returned in structures."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../golang/examples/guestfs-golang.pod:80
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
|
|
"L<guestfs-java(3)>, L<guestfs-lua(3)>, L<guestfs-ocaml(3)>, "
|
|
"L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
|
|
"L<guestfs-ruby(3)>, L<http://www.golang.org/>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:5
|
|
msgid "guestfs-release-notes - libguestfs Release Notes"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:9
|
|
msgid ""
|
|
"<script> document.body.style.backgroundImage = \"url('draft.png')\"; "
|
|
"document.body.style.backgroundRepeat = \"no-repeat\"; </script>"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../guestfs-release-notes.pod:16
|
|
msgid "RELEASE NOTES FOR LIBGUESTFS 1.24"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:18
|
|
msgid ""
|
|
"These release notes only cover the differences from the previous stable/dev "
|
|
"branch split (1.22.0). For detailed changelogs, please see the git "
|
|
"repository, or the ChangeLog file distributed in the tarball."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../guestfs-release-notes.pod:22 ../guestfs-release-notes.pod:334 ../guestfs-release-notes.pod:691 ../guestfs-release-notes.pod:1283 ../guestfs-release-notes.pod:1521 ../guestfs-release-notes.pod:1661 ../guestfs-release-notes.pod:1830 ../guestfs-release-notes.pod:1963 ../guestfs-release-notes.pod:2105 ../guestfs-release-notes.pod:2247 ../guestfs-release-notes.pod:2414
|
|
msgid "New features"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:24
|
|
msgid ""
|
|
"User-Mode Linux (UML) can be used as an alternative backend (ie. instead of "
|
|
"KVM). This improves performance especially when using libguestfs inside a "
|
|
"VM (eg. in the cloud). UML is supported as a first-class backend. See "
|
|
"L<guestfs(3)/USER-MODE LINUX BACKEND> for how to use this."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:30
|
|
msgid "ARM (32 bit) and PPC64 are now fully supported."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:32 ../guestfs-release-notes.pod:392
|
|
msgid "Tools"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:34
|
|
msgid ""
|
|
"L<virt-builder(1)> is a new tool for building virtual machine images. It "
|
|
"lets you rapidly and securely create guests and customize them."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:37
|
|
msgid ""
|
|
"New L<virt-sysprep(1)> operations: Remove files in C</tmp> and C</var/tmp>. "
|
|
"Remove RPM database files. Change root and user passwords. More log files "
|
|
"are removed. New operations which are not enabled by default: Create random "
|
|
"UUIDs for filesystems. Reset firewall rules. (Wanlong Gao)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:47
|
|
msgid ""
|
|
"L<virt-resize(1)> and virt-sysprep can now use URIs to specify a remote "
|
|
"disk."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:50
|
|
msgid ""
|
|
"Use C<guestfish -N filename=type> to create a named disk image (instead of "
|
|
"the default C<test1.img> etc)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:53
|
|
msgid ""
|
|
"L<virt-sparsify(1)> now tests if there is enough disk space to complete the "
|
|
"operation, instead of possibly running out of space half way through."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:57
|
|
msgid ""
|
|
"L<virt-format(1)> and L<virt-make-fs(1)>: new I<--label> option for setting "
|
|
"filesystem label."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:60
|
|
msgid ""
|
|
"virt-resize I<--no-sparse> flag can be used to resize on to partitions and "
|
|
"other targets that are not zeroed."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:63 ../guestfs-release-notes.pod:424
|
|
msgid "Language bindings"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:65
|
|
msgid "New bindings for the Go programming language."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:67 ../guestfs-release-notes.pod:336 ../guestfs-release-notes.pod:1341
|
|
msgid "API"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:69
|
|
msgid "Support for the systemd journal."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:71
|
|
msgid ""
|
|
"C<guestfs_add_drive_opts> can now control the qemu caching mode through a "
|
|
"new C<cachemode> parameter. You can select improved performance for "
|
|
"temporary drives, or safety."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:75
|
|
msgid "C<guestfs_set_label> now works for XFS and btrfs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:77
|
|
msgid "New GUESTFS_EVENT_WARNING event for warning messages."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:79
|
|
msgid "Inspection"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:81
|
|
msgid "Better inspection of SUSE guests (Olaf Hering)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:83
|
|
msgid "Better support for non-standard Windows %systemroot% (Matthew Booth)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:85
|
|
msgid "Enhanced error reporting for Augeas errors."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../guestfs-release-notes.pod:87 ../guestfs-release-notes.pod:459 ../guestfs-release-notes.pod:872 ../guestfs-release-notes.pod:1368 ../guestfs-release-notes.pod:1595 ../guestfs-release-notes.pod:1762 ../guestfs-release-notes.pod:1911 ../guestfs-release-notes.pod:2048 ../guestfs-release-notes.pod:2171 ../guestfs-release-notes.pod:2332 ../guestfs-release-notes.pod:2487
|
|
msgid "Security"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../guestfs-release-notes.pod:91 ../src/guestfs.pod:2115
|
|
msgid "CVE-2013-2124"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:93
|
|
msgid "L<https://bugzilla.redhat.com/show_bug.cgi?id=968306>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:95
|
|
msgid ""
|
|
"A denial of service was possible when inspecting certain guests. The fix "
|
|
"has been backported to 1.20 and 1.22 branches."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../guestfs-release-notes.pod:98 ../src/guestfs.pod:2126
|
|
msgid "CVE-2013-4419"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:100
|
|
msgid "L<https://www.redhat.com/archives/libguestfs/2013-October/msg00031.html>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:102
|
|
msgid ""
|
|
"Fix insecure temporary directory handling for remote guestfish. The fix has "
|
|
"been backported to 1.20 and 1.22 branches."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../guestfs-release-notes.pod:107 ../guestfs-release-notes.pod:463 ../guestfs-release-notes.pod:893 ../guestfs-release-notes.pod:1372 ../guestfs-release-notes.pod:1601 ../guestfs-release-notes.pod:1766 ../guestfs-release-notes.pod:1917 ../guestfs-release-notes.pod:2052 ../guestfs-release-notes.pod:2182 ../guestfs-release-notes.pod:2342 ../guestfs-release-notes.pod:2493
|
|
msgid "New APIs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:109
|
|
#, no-wrap
|
|
msgid ""
|
|
" add-drive-scratch: Add a temporary scratch drive\n"
|
|
" aug-label\n"
|
|
" aug-setm\n"
|
|
" journal-open: Systemd journal support\n"
|
|
" journal-close\n"
|
|
" journal-next\n"
|
|
" journal-skip\n"
|
|
" journal-get\n"
|
|
" journal-get-data-threshold\n"
|
|
" journal-set-data-threshold\n"
|
|
" remount: Allow rw flag to be adjusted on mounted filesystems\n"
|
|
" set-uuid: Set UUID of filesystem\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:122
|
|
msgid ""
|
|
"C<is-file>, C<is-dir>, C<is-blockdev>, C<is-chardev>, C<is-fifo>, "
|
|
"C<is-socket> APIs now have an extra C<followsymlinks> flag."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:125
|
|
msgid "C<add-drive> has a new C<cachemode> parameter."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../guestfs-release-notes.pod:127
|
|
msgid "Build changes"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:129
|
|
msgid "The following packages are required to build libguestfs 1.24:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:133
|
|
msgid "Augeas E<ge> 1.0.0"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:137
|
|
msgid ""
|
|
"The following optional packages may be added to enhance functionality but "
|
|
"are not required:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:142
|
|
msgid "sd-journal"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:144
|
|
msgid "To read journal files from guests which use that."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:146
|
|
msgid "url_mkcow"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:148
|
|
msgid "For UML backend."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:150
|
|
msgid "curl"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:152
|
|
msgid "gpg"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:154
|
|
msgid "xz"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:156
|
|
msgid "For virt-builder."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:158
|
|
msgid "golang E<ge> 1.1.1"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:160
|
|
msgid "For Go language bindings."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../guestfs-release-notes.pod:164 ../guestfs-release-notes.pod:480 ../guestfs-release-notes.pod:977 ../guestfs-release-notes.pod:1402 ../guestfs-release-notes.pod:1611 ../guestfs-release-notes.pod:1777 ../guestfs-release-notes.pod:1923 ../guestfs-release-notes.pod:2059 ../guestfs-release-notes.pod:2195 ../guestfs-release-notes.pod:2355 ../guestfs-release-notes.pod:2523
|
|
msgid "Internals"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:166
|
|
msgid ""
|
|
"New C<make check-*> rules replace C<make extra-tests>. See C<make help> and "
|
|
"L<guestfs(3)> for details."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:169
|
|
msgid "Perl code can now be valgrinded."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:171
|
|
msgid "Inspection code is now fuzz-tested."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:173
|
|
msgid ""
|
|
"C<make> no longer recurses into the generator directory in every other "
|
|
"directory. This reduces the overhead of builds considerably."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:176
|
|
msgid "Additional tests for Augeas, hivex."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:178
|
|
msgid "Add a launch timeout of 20 minutes waiting for the appliance to start up."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:181
|
|
msgid ""
|
|
"Add a timeout (4 hours) to all tests so we can catch the case where qemu or "
|
|
"other components hang."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:184
|
|
msgid ""
|
|
"Use kvmclock and C<-cpu host>. This improves clock stability and overall "
|
|
"performance."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:187
|
|
msgid "C<./configure --enable-packet-dump> mode is fixed."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:189
|
|
msgid ""
|
|
"C<./configure --enable-valgrind-daemon> mode has been rewritten. It is now "
|
|
"feasible for developers to keep this flag enabled at all times."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:192
|
|
msgid ""
|
|
"Backends have been refactored to be modular (although they are not actually "
|
|
"loadable modules)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:195
|
|
msgid ""
|
|
"When enabled, the network now uses resolver configuration "
|
|
"(ie. /etc/resolv.conf) from the host."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../guestfs-release-notes.pod:198 ../guestfs-release-notes.pod:547 ../guestfs-release-notes.pod:1103 ../guestfs-release-notes.pod:1475 ../guestfs-release-notes.pod:1641 ../guestfs-release-notes.pod:1801 ../guestfs-release-notes.pod:1945 ../guestfs-release-notes.pod:2075 ../guestfs-release-notes.pod:2230 ../guestfs-release-notes.pod:2371 ../guestfs-release-notes.pod:2535
|
|
msgid "Bugs fixed"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:202
|
|
msgid "./bugs-in-changelog.sh 1.22.0.."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:208
|
|
msgid "L<https://bugzilla.redhat.com/1019889>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:210
|
|
msgid "libguestfs-tools.conf should have a man page"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:212
|
|
msgid "L<https://bugzilla.redhat.com/1018149>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:214
|
|
msgid "valgrind errors in btrfs_subvolume_list"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:216
|
|
msgid "L<https://bugzilla.redhat.com/1002032>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:218
|
|
msgid ""
|
|
"mke2fs can't return the correct filesystem type when blockscount is less "
|
|
"than 2048 for ext3"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:220
|
|
msgid "L<https://bugzilla.redhat.com/1001876>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:222
|
|
msgid "Update \"rsync-out\" helpout for using wildcard"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:224
|
|
msgid "L<https://bugzilla.redhat.com/1001875>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:226
|
|
msgid "Argument 'excludes' of tar-out does not work"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:228
|
|
msgid "L<https://bugzilla.redhat.com/1000428>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:230
|
|
msgid "virt-format uses wrong partition type for vfat filesystems"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:232
|
|
msgid "L<https://bugzilla.redhat.com/1000121>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:234
|
|
msgid "'sh' command before mount causes daemon to segfault"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:236
|
|
msgid "L<https://bugzilla.redhat.com/998513>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:238
|
|
msgid "guestfish does not work when you mix --remote and --add options"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:240
|
|
msgid "L<https://bugzilla.redhat.com/998482>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:242
|
|
msgid ""
|
|
"guestfish remote prints \"libguestfs: error: waitpid (qemu): No child "
|
|
"processes\""
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:244
|
|
msgid "L<https://bugzilla.redhat.com/995711>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:246
|
|
msgid "list-filesystems command fails if there are no block devices"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:248
|
|
msgid "L<https://bugzilla.redhat.com/994517>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:250
|
|
msgid "cache=none/O_DIRECT workaround doesn't work for images with backing files"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:252
|
|
msgid "L<https://bugzilla.redhat.com/989356>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:254
|
|
msgid "cap-get-file will return error if the file has not be set capabilities"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:256
|
|
msgid "L<https://bugzilla.redhat.com/986877>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:258
|
|
msgid "RFE: Implement set-uuid command"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:260
|
|
msgid "L<https://bugzilla.redhat.com/986875>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:262
|
|
msgid "RFE: Implement set-label for xfs"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:264
|
|
msgid "L<https://bugzilla.redhat.com/985269>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:266
|
|
msgid "Can't set acl value for a specified user with 'acl-set-file'"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:268
|
|
msgid "L<https://bugzilla.redhat.com/983218>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:270
|
|
msgid "libguestfs double free when kernel link fails during launch"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:272
|
|
msgid "L<https://bugzilla.redhat.com/981715>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:274
|
|
msgid ""
|
|
"Make xfs filesystem failed with specified blocksize, gives \"unknown option "
|
|
"-b\" error"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:276
|
|
msgid "L<https://bugzilla.redhat.com/981683>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:278
|
|
msgid "\"hivex-commit\" should fail with a relative path"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:280
|
|
msgid "L<https://bugzilla.redhat.com/981663>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:282
|
|
msgid ""
|
|
"disk-format \"qemu-img info: JSON parse error\" when target file does not "
|
|
"exist"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:284
|
|
msgid "L<https://bugzilla.redhat.com/978302>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:286
|
|
msgid ""
|
|
"mke2fs-J should give a meaningful error when specified type is anything "
|
|
"except 'ext{2,3,4}'"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:288
|
|
msgid "L<https://bugzilla.redhat.com/975797>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:290
|
|
msgid ""
|
|
"Specifying virtio interface ('iface' parameter) breaks the direct backend - "
|
|
"libguestfs hangs"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:292
|
|
msgid "L<https://bugzilla.redhat.com/975753>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:294
|
|
msgid ""
|
|
"\"virt-resize --expand\" and \"virt-resize --resize\" outputs error message "
|
|
"for Win2008 32bit OS"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:296
|
|
msgid "L<https://bugzilla.redhat.com/975412>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:298
|
|
msgid "inspection: Augeas expressions are broken with augeas >= 0.10"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:300
|
|
msgid "L<https://bugzilla.redhat.com/974904>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:302
|
|
msgid "virt-resize --expand fails on Ubuntu Cloud Image"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:304
|
|
msgid "L<https://bugzilla.redhat.com/974489>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:306
|
|
msgid ""
|
|
"Regression: Fedora inspection broken by change from guestfs_exists to "
|
|
"guestfs_is_file"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:308
|
|
msgid "L<https://bugzilla.redhat.com/972775>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:310
|
|
msgid "txz-out command produces a bzip2-compressed file (should be xz-compressed)"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:312
|
|
msgid "L<https://bugzilla.redhat.com/969845>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:314
|
|
msgid "upload to a directory occasionally hangs instead of failing"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:316
|
|
msgid "L<https://bugzilla.redhat.com/968875>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:318
|
|
msgid "virt-sysprep should support URL-type arguments"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:320
|
|
msgid "L<https://bugzilla.redhat.com/624334>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:322
|
|
msgid "blockdev-setbsz succeeds, but does not affect blockdev-getbsz"
|
|
msgstr ""
|
|
|
|
#. type: =for
|
|
#: ../guestfs-release-notes.pod:326 ../guestfs-release-notes.pod:683 ../guestfs-release-notes.pod:1275 ../guestfs-release-notes.pod:1513 ../guestfs-release-notes.pod:1653 ../guestfs-release-notes.pod:1822 ../guestfs-release-notes.pod:1955 ../guestfs-release-notes.pod:2097 ../guestfs-release-notes.pod:2239 ../guestfs-release-notes.pod:2406 ../guestfs-release-notes.pod:2602
|
|
msgid "comment ################################################################"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../guestfs-release-notes.pod:328
|
|
msgid "RELEASE NOTES FOR LIBGUESTFS 1.22"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:330
|
|
msgid ""
|
|
"These release notes only cover the differences from the previous stable/dev "
|
|
"branch split (1.20.0). For detailed changelogs, please see the git "
|
|
"repository, or the ChangeLog file distributed in the tarball."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:338
|
|
msgid "Remote access to disks:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:344
|
|
msgid "Network Block Device (nbd)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:348
|
|
msgid "Secure Shell (ssh)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:352
|
|
msgid "HTTP and HTTPS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:356
|
|
msgid "FTP and FTPS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:360
|
|
msgid "iSCSI"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:364
|
|
msgid "Gluster"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:368
|
|
msgid "Ceph/rbd (Mike Kelly)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:373
|
|
msgid "Sheepdog"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:377
|
|
msgid "TFTP"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:381
|
|
msgid ""
|
|
"The SYSLINUX and EXTLINUX bootloaders can now be installed in disk images "
|
|
"using the API."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:384
|
|
msgid ""
|
|
"Inspection can now handle filesystems such as btrfs where subvolumes are "
|
|
"separately mountable (Matthew Booth)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:387
|
|
msgid ""
|
|
"\"Attach methods\" are now known as \"backends\". Compatibility with "
|
|
"existing code is preserved."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:390
|
|
msgid "Filenames can contain ':', as long as newer QEMU is being used."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:394
|
|
msgid "Virt-alignment-scan and virt-df scan multiple guests in parallel."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:396
|
|
msgid ""
|
|
"Guestmount now passes errno accurately back to userspace in almost all "
|
|
"cases."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:399
|
|
msgid ""
|
|
"Guestfish and other tools can now use a URI-like syntax to access remote "
|
|
"disks, eg:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:404
|
|
msgid ""
|
|
"Guestfish and guestmount now allow you to specify the filesystem type when "
|
|
"mounting, which is more secure (Dave Vasilevsky)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:407
|
|
msgid "Guestfish is now the \"guest filesystem shell\"."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:409
|
|
msgid ""
|
|
"Guestfish allows only C<1> C<true> C<t> C<yes> C<y> C<on> C<0> C<false> C<f> "
|
|
"C<no> C<n> C<off> for boolean values (case insensitive), and gives an error "
|
|
"for all other strings."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:413
|
|
msgid "New tool C<guestunmount> for unmounting FUSE filesystems safely."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:415
|
|
msgid "C<guestmount --no-fork> flag prevents guestmount from daemonizing."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:417
|
|
msgid ""
|
|
"Virt-resize now uses sparse copies by default, saving considerable space for "
|
|
"guests which are mostly empty."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:420
|
|
msgid ""
|
|
"Bash tab completion has been rewritten and can now handle most tools, and "
|
|
"correctly tab-complete C<--long> options. In addition, bash completion "
|
|
"scripts are loaded on demand."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:426
|
|
msgid "The Java API now supports events."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:428
|
|
msgid "The Python object now inherits from the C<object> base class."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:430
|
|
msgid ""
|
|
"Python methods which previously returned lists of tuples can now be made to "
|
|
"return a Python dict. For backwards compatibility, you have to enable this "
|
|
"by using the constructor option S<C<guestfs.GuestFS "
|
|
"(python_return_dict=True)>>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:435
|
|
msgid "The PHP bindings are now tested properly, and have had multiple fixes."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:437
|
|
msgid ""
|
|
"The long-deprecated Perl C<Sys::Guestfs::Lib> library has been removed. "
|
|
"L<https://www.redhat.com/archives/libguestfs/2013-April/msg00001.html>"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:441
|
|
msgid "Examples"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:443
|
|
msgid ""
|
|
"New example program showing how to enable debugging and capture log "
|
|
"messages."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:446
|
|
msgid "Other"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:448
|
|
msgid "Distributors can add arbitrary extra packages to the appliance by doing:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:451
|
|
#, no-wrap
|
|
msgid ""
|
|
" ./configure --with-extra-packages=\"list of package names\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:453
|
|
msgid "Distributors can use:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:455
|
|
#, no-wrap
|
|
msgid ""
|
|
" ./configure --with-supermin-extra-options=\"...\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:457
|
|
msgid "to add arbitrary extra options to supermin."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:461
|
|
msgid "No security issues were found in this release."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:465
|
|
#, no-wrap
|
|
msgid ""
|
|
" cp-r\n"
|
|
" extlinux\n"
|
|
" feature-available\n"
|
|
" get-program\n"
|
|
" is-whole-device\n"
|
|
" part-get-gpt-type\n"
|
|
" part-set-gpt-type\n"
|
|
" rename\n"
|
|
" set-program\n"
|
|
" syslinux\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:476
|
|
msgid "C only:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:478
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_event_to_string\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:482
|
|
msgid ""
|
|
"The febootstrap tool has now been renamed to \"supermin\". Libguestfs can "
|
|
"use either, but now prefers \"supermin\". "
|
|
"L<http://people.redhat.com/~rjones/supermin/>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:486
|
|
msgid "libxml2 is required to build libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:488
|
|
msgid "The hivexregedit program (from hivex) is required to build from git."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:490
|
|
msgid ""
|
|
"Internal functions can no longer be used unless the caller defines "
|
|
"C<-DGUESTFS_PRIVATE=1>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:493
|
|
msgid "Enable C compiler warnings in Python, Ruby bindings."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:495
|
|
msgid ""
|
|
"Fail early and clearly if libvirt does not support qemu/KVM (eg. if default "
|
|
"libvirt connection is to Xen)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:498
|
|
msgid "C<make print-subdirs> rule, useful for selectively running tests."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:500
|
|
msgid "Multiple fixes to allow separated (sourcedir != builddir) builds."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:502
|
|
msgid "Multiple fixes to Haskell bindings."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:504
|
|
msgid "C<ln> and C<ln-f> APIs now capture C<errno> correctly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:506
|
|
msgid ""
|
|
"Language binding tests use (mostly) a standard numbering scheme and aim to "
|
|
"test the same range of features in each language. Also the number of "
|
|
"launches required has been reduced so these tests should run much more "
|
|
"quickly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:511
|
|
msgid ""
|
|
"Library code internally uses GCC C<__attribute__((cleanup))> (if available) "
|
|
"to simplify memory allocation."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:514
|
|
msgid ""
|
|
"Internal header files have been reorganized. See the comments in "
|
|
"C<src/guestfs-internal*.h>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:517
|
|
msgid ""
|
|
"Internal code shared between the library and certain tools is now located in "
|
|
"a static C<libutils> library."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:520
|
|
msgid ""
|
|
"Almost all subdirectories can now use parallel builds, although note that "
|
|
"the top-level directories still build in series."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:523
|
|
msgid "Use of C<PATH_MAX> and C<NAME_MAX> has been eliminated from the code."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:525
|
|
msgid "The Java API now requires JVM E<ge> 1.6."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:527
|
|
msgid "Force use of C<serial-tests> with automake E<ge> 1.12."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:529
|
|
msgid ""
|
|
"Use of sockets in the library protocol layer is abstracted, allowing other "
|
|
"non-POSIX layers to be added in future (see C<src/conn-socket.c>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:533
|
|
msgid ""
|
|
"C<qemu-img info --output json> is used if available, for more secure parsing "
|
|
"of the output of this command."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:536
|
|
msgid ""
|
|
"Distros can now use C<make INSTALLDIRS=vendor install> to place Ruby "
|
|
"bindings in vendordir. This eliminates a non-upstream patch carried by both "
|
|
"Fedora and Debian."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:540
|
|
msgid "Valgrind log files are now written to C<tmp/valgrind-I<DATE>-I<PID>.log>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:542
|
|
msgid "C<make clean> cleans the local C<tmp/> directory."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:544
|
|
msgid ""
|
|
"The C API tests have been rewritten using a more flexible generator language "
|
|
"that allows arbitrary C code to be executing during tests."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:551
|
|
msgid "./bugs-in-changelog.sh 1.20.0.."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:557
|
|
msgid "L<https://bugzilla.redhat.com/961812>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:559
|
|
msgid "Segfault in inspect-fs.c in mountable code"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:561
|
|
msgid "L<https://bugzilla.redhat.com/957772>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:563
|
|
msgid "tar-out and base64-out quoting error"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:565
|
|
msgid "L<https://bugzilla.redhat.com/957380>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:567
|
|
msgid ""
|
|
"libguestfs: error: btrfsvol:/dev/sda2/root: root device not found: only call "
|
|
"this function with a root device previously returned by guestfs_inspect_os"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:569
|
|
msgid "L<https://bugzilla.redhat.com/948324>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:571
|
|
msgid "inspection fails if libosinfo is not installed"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:573
|
|
msgid "L<https://bugzilla.redhat.com/928995>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:575
|
|
msgid "file on zero-sized file now produces \"empty \" instead of \"empty\""
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:577
|
|
msgid "L<https://bugzilla.redhat.com/921292>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:579
|
|
msgid "qemu: could not open disk image /tmp/.../snapshot1: Permission denied"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:581
|
|
msgid "L<https://bugzilla.redhat.com/921040>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:583
|
|
msgid ""
|
|
"\"error: external command failed, see earlier error messages\" message needs "
|
|
"to change"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:585
|
|
msgid "L<https://bugzilla.redhat.com/920225>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:587
|
|
msgid ""
|
|
"libguestfs should use --output json (if supported) to safely parse the "
|
|
"output of qemu-img command"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:589
|
|
msgid "L<https://bugzilla.redhat.com/916780>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:591
|
|
msgid "feature request: guestmount --with-cleanup-pipefd"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:593
|
|
msgid "L<https://bugzilla.redhat.com/914934>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:595
|
|
msgid "oom-killer kills guestfsd when tar-in a lot of data"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:597
|
|
msgid "L<https://bugzilla.redhat.com/914931>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:599
|
|
msgid "FileIn commands cause segfault if appliance dies during the file copy in"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:601
|
|
msgid "L<https://bugzilla.redhat.com/913145>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:603
|
|
msgid "Misc leaks in virNetClientProgramCall in libvirt 1.0.2"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:605
|
|
msgid "L<https://bugzilla.redhat.com/912499>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:607
|
|
msgid "Security context on image file gets reset"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:609
|
|
msgid "L<https://bugzilla.redhat.com/909836>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:611
|
|
msgid "libguestfs-test-tool --qemu segfaults"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:613
|
|
msgid "L<https://bugzilla.redhat.com/909624>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:615
|
|
msgid ""
|
|
"Unexpected non-tail recursion in recv_from_daemon results in stack overflow "
|
|
"in very long-running API calls that send progress messages"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:617
|
|
msgid "L<https://bugzilla.redhat.com/908322>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:619
|
|
msgid ""
|
|
"virt-tar fails on non-existent directory names \"error in chunked encoding "
|
|
"at /home/rjones/d/libguestfs/tools/virt-tar line 272.\""
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:621
|
|
msgid "L<https://bugzilla.redhat.com/908321>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:623
|
|
msgid "virt-cat fails on directory names \"/dev/stdout: error in chunked encoding\""
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:625
|
|
msgid "L<https://bugzilla.redhat.com/907554>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:627
|
|
msgid "btrfs causes subsequent ntfs-3g filesystem to fail"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:629
|
|
msgid "L<https://bugzilla.redhat.com/905341>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:631
|
|
msgid "\"No such file or directory\" when execute \"hivex-commit\""
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:633
|
|
msgid "L<https://bugzilla.redhat.com/903620>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:635
|
|
msgid "btrfs_subvolume_list broken due to change in subvolume list output"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:637
|
|
msgid "L<https://bugzilla.redhat.com/895910>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:639
|
|
msgid "guestmount: rename() incorrectly follows symbolic links"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:641
|
|
msgid "L<https://bugzilla.redhat.com/895905>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:643
|
|
msgid "guestmount: link() incorrectly returns ENOENT, when it should be EXDEV"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:645
|
|
msgid "L<https://bugzilla.redhat.com/895904>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:647
|
|
msgid ""
|
|
"checksums-out fail to compute the checksums of all regular files in "
|
|
"directory"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:649
|
|
msgid "L<https://bugzilla.redhat.com/894545>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:651
|
|
msgid "libguestfs FTBFS on Fedora 19 because of new ruby"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:653
|
|
msgid "L<https://bugzilla.redhat.com/890027>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:655
|
|
msgid ""
|
|
"virt-sysprep: Setting hostname, domain name and pretty name on Fedora 18 "
|
|
"correctly"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:657
|
|
msgid "L<https://bugzilla.redhat.com/887971>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:659
|
|
msgid "pvcreate fails if partition contains a swap signature"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:661
|
|
msgid "L<https://bugzilla.redhat.com/887520>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:663
|
|
msgid "zero_free_space: open: /sysroot//ujqqq135.rd3: Cannot allocate memory"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:665
|
|
msgid "L<https://bugzilla.redhat.com/886915>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:667
|
|
msgid ""
|
|
"libguestfs with libvirt attach-method fails with odd error if default "
|
|
"hypervisor is Xen"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:669
|
|
msgid "L<https://bugzilla.redhat.com/847549>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:671
|
|
msgid ""
|
|
"Addng a zero-length virtio-scsi disk causes: qemu-kvm: hw/scsi-bus.c:1568: "
|
|
"scsi_req_complete: Assertion `req->status == -1' failed."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:673
|
|
msgid "L<https://bugzilla.redhat.com/811649>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:675
|
|
msgid ""
|
|
"libguestfs cannot open disk images which are symlinks to files that contain "
|
|
"':' (colon) character"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:677
|
|
msgid "L<https://bugzilla.redhat.com/664558>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:679
|
|
msgid "RFE: Allow to set log callback in Ruby bindings"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../guestfs-release-notes.pod:685
|
|
msgid "RELEASE NOTES FOR LIBGUESTFS 1.20"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:687
|
|
msgid ""
|
|
"These release notes only cover the differences from the previous stable/dev "
|
|
"branch split (1.18.0). For detailed changelogs, please see the git "
|
|
"repository, or the ChangeLog file distributed in the tarball."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:693
|
|
msgid "libvirt and sVirt (SELinux confinement)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:695
|
|
msgid ""
|
|
"You can I<optionally> use libvirt to launch and manage the backend appliance "
|
|
"by:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:702
|
|
msgid "setting C<LIBGUESTFS_ATTACH_METHOD=libvirt[:URI]>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:706
|
|
msgid "using C<./configure --with-default-attach-method=libvirt[:URI]>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:710
|
|
msgid "or calling the API method C<guestfs_set_attach_method>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:714
|
|
msgid ""
|
|
"SVirt (SELinux confinement) is used to secure the libguestfs appliance, if "
|
|
"the libvirt backend is selected."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:717
|
|
msgid "virtio-scsi, larger number of drives, hotplugging"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:719
|
|
msgid ""
|
|
"Virtio-scsi is now used by default, if it is available. This greatly "
|
|
"increases the number of drives that can be added to a single libguestfs "
|
|
"handle (up to 255)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:723
|
|
msgid "You can now hotplug drives (add and remove drives after launch)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:725
|
|
msgid "Libguestfs can now handle E<gt> 25 disks, in all APIs, tools and tests."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:727
|
|
msgid ""
|
|
"You can label drives when adding them, then refer to them by label "
|
|
"(C</dev/disk/guestfs/LABEL>) instead of having to use device names "
|
|
"(C</dev/sda>)."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:731
|
|
msgid "new library features"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:733
|
|
msgid ""
|
|
"POSIX Access Control Lists (ACLs) and Linux filesystem capabilities can now "
|
|
"be read and written through the API."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:736
|
|
msgid ""
|
|
"Windows Dynamic Disks are now supported. The metadata can only be read "
|
|
"(volumes cannot be modified or created). However the data/filesystems in "
|
|
"the volumes themselves can be mounted, read and written (Matthew Booth)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:741
|
|
msgid ""
|
|
"Hivex (Windows Registry editing) is now directly supported through the API, "
|
|
"making reading or editing the Windows Registry much more efficient."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:745
|
|
msgid ""
|
|
"Several libguestfs APIs were reimplemented so they no longer have any limits "
|
|
"on output. The reimplemented APIs are: C<guestfs_cat>, C<guestfs_find>, "
|
|
"C<guestfs_read_file>, C<guestfs_read_lines>, C<guestfs_write>, "
|
|
"C<guestfs_write_append>, C<guestfs_lstatlist>, C<guestfs_lxattrlist>, "
|
|
"C<guestfs_readlinklist>, C<guestfs_ls>."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:751 ../guestfs-release-notes.pod:1285 ../guestfs-release-notes.pod:1572
|
|
msgid "virt tools"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:753
|
|
msgid "C<guestfish touch 'win:c:\\new_file'> now works as expected."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:755
|
|
msgid ""
|
|
"C<guestfish> has a new I<--network> option, which enables the user network "
|
|
"in libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:758
|
|
msgid "You can set C<GUESTFISH_PS1> to use fancy prompts in C<guestfish>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:760
|
|
msgid ""
|
|
"C<rsync>, C<ssh>, C<less> and C<lrzip> commands are now available in "
|
|
"virt-rescue. In addition, C<rsync> can be used through the API for doing "
|
|
"incremental copies."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:764
|
|
msgid "C<virt-sparsify> uses qcow2 v3 for increased efficiency."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:766
|
|
msgid "C<virt-sysprep> enhancements:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:772
|
|
msgid "generate new UUIDs for PVs and VGs"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:776
|
|
msgid "remove the local machine ID (Wanlong Gao)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:780
|
|
msgid "remove ABRT data (Wanlong Gao)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:784
|
|
msgid "remove puppet keys and log files (Wanlong Gao)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:788
|
|
msgid "remove process accounting files (Wanlong Gao)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:792
|
|
msgid ""
|
|
"new I<--firstboot> parameter allowing firstboot scripts for customizing "
|
|
"guests"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:797
|
|
msgid "remove HOSTNAME field from C<ifcfg-eth*> files (Wanlong Gao)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:801
|
|
msgid "miscellaneous improvements for SuSE (Olaf Hering)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:805
|
|
msgid "remove man pages cache (Wanlong Gao)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:809
|
|
msgid "remove crash data generated by kexec-tools (Wanlong Gao)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:813
|
|
msgid "C<virt-make-fs> can now create virtual floppy disks (VFDs)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:815
|
|
msgid ""
|
|
"C<guestmount> has a I<--pid-file> option, which can be used to avoid a race "
|
|
"condition between unmounting the filesystem and using the underlying disk "
|
|
"image."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:819 ../guestfs-release-notes.pod:1541
|
|
msgid "language bindings"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:821
|
|
msgid ""
|
|
"Full-featured Lua bindings have been added in this release (thanks to Jerome "
|
|
"Vuarand for many suggestions)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:824
|
|
msgid "In Ruby, optional arguments hash is optional."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:826
|
|
msgid ""
|
|
"In Python, optional arguments now don't use special \"sentinel\" values, so "
|
|
"any integer can be passed as an optional argument."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:829
|
|
msgid "Erlang bindings now come with examples and tests."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:831
|
|
msgid "Erlang bindings now handle 64 bit integer parameters correctly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:833
|
|
msgid ""
|
|
"The automated 'bindtests' now test for 64 bit cleanliness in parameter "
|
|
"passing. Several bugs in the bindings were found and fixed as a result."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:837
|
|
msgid ""
|
|
"Better handling of blocking and non-blocking functions should make "
|
|
"libguestfs calls more efficient."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:840 ../guestfs-release-notes.pod:1330 ../guestfs-release-notes.pod:1559 ../guestfs-release-notes.pod:1733
|
|
msgid "inspection"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:842
|
|
msgid ""
|
|
"Windows guests with unlimited-sized Registries are now supported. By adding "
|
|
"the hivex API to the libguestfs API, it is much more efficient and easier to "
|
|
"inspect and modify the Windows Registry in guests."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:847
|
|
msgid "Better support for SuSE guests (Olaf Hering)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:849
|
|
msgid "Return the architecture of installed applications (John Eckersberg)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:851
|
|
msgid "Windows 8 is now supported."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:853
|
|
msgid "Fedora 18 is now supported."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:855
|
|
msgid "Inspection of ISOs/CDs/DVDs can now use the libosinfo database."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:857
|
|
msgid "ports"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:859
|
|
msgid ""
|
|
"Libguestfs without the appliance can be compiled on Mac OS X (Masami "
|
|
"HIRATA)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:862
|
|
msgid ""
|
|
"RHEL 5 is now explicitly supported through the 'oldlinux' branch in upstream "
|
|
"git."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:865
|
|
msgid ""
|
|
"PowerPC 64 bit is now supported. Also libguestfs has been examined for "
|
|
"endianness bugs and these have been fixed."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:868
|
|
msgid "daemon"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:870
|
|
msgid "A man page for the daemon (L<guestfsd(8)>) is included."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:874
|
|
msgid "guestfish history file"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:876
|
|
msgid ""
|
|
"The C<$HOME/.guestfish> history file is now created with 0600 permissions "
|
|
"(instead of 0644 before) so it is no longer world readable."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../guestfs-release-notes.pod:880 ../src/guestfs.pod:2103
|
|
msgid "CVE-2012-2690"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:882
|
|
msgid ""
|
|
"Old versions of both C<virt-edit> and the C<guestfish> C<edit> command "
|
|
"created a new file containing the changes but did not set the permissions, "
|
|
"etc of the new file to match the old one. The result of this was that if "
|
|
"you edited a security sensitive file such as C</etc/shadow> then it would be "
|
|
"left world-readable after the edit."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:888
|
|
msgid ""
|
|
"This issue was assigned CVE-2012-2690, and is fixed in libguestfs E<ge> "
|
|
"1.16."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:890
|
|
msgid ""
|
|
"For further information, see "
|
|
"L<https://bugzilla.redhat.com/show_bug.cgi?id=788642>"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:895
|
|
#, no-wrap
|
|
msgid ""
|
|
" acl-delete-def-file\n"
|
|
" acl-get-file\n"
|
|
" acl-set-file\n"
|
|
" canonical-device-name\n"
|
|
" cap-get-file\n"
|
|
" cap-set-file\n"
|
|
" create-flags\n"
|
|
" device-index\n"
|
|
" disk-has-backing-file\n"
|
|
" disk-format\n"
|
|
" disk-virtual-size\n"
|
|
" filesystem-available\n"
|
|
" fill-dir\n"
|
|
" fstrim\n"
|
|
" get-cachedir\n"
|
|
" get-libvirt-requested-credentials\n"
|
|
" get-libvirt-requested-credential-prompt\n"
|
|
" get-libvirt-requested-credential-challenge\n"
|
|
" get-libvirt-requested-credential-defresult\n"
|
|
" get-tmpdir\n"
|
|
" hivex-close\n"
|
|
" hivex-commit\n"
|
|
" hivex-node-add-child\n"
|
|
" hivex-node-children\n"
|
|
" hivex-node-delete-child\n"
|
|
" hivex-node-get-child\n"
|
|
" hivex-node-get-value\n"
|
|
" hivex-node-name\n"
|
|
" hivex-node-parent\n"
|
|
" hivex-node-set-value\n"
|
|
" hivex-node-values\n"
|
|
" hivex-open\n"
|
|
" hivex-root\n"
|
|
" hivex-value-key\n"
|
|
" hivex-value-type\n"
|
|
" hivex-value-utf8\n"
|
|
" hivex-value-value\n"
|
|
" inspect-list-applications2 (John Eckersberg)\n"
|
|
" list-ldm-volumes\n"
|
|
" list-ldm-partitions\n"
|
|
" ldmtool-create-all\n"
|
|
" ldmtool-diskgroup-disks\n"
|
|
" ldmtool-diskgroup-name\n"
|
|
" ldmtool-diskgroup-volumes\n"
|
|
" ldmtool-remove-all\n"
|
|
" ldmtool-scan\n"
|
|
" ldmtool-scan-devices\n"
|
|
" ldmtool-volume-hint\n"
|
|
" ldmtool-volume-partitions\n"
|
|
" ldmtool-volume-type\n"
|
|
" ls0\n"
|
|
" max-disks\n"
|
|
" mke2fs (Wanlong Gao)\n"
|
|
" mklost-and-found\n"
|
|
" mkswap [added label and uuid optional arguments]\n"
|
|
" mktemp (Wanlong Gao)\n"
|
|
" nr-devices\n"
|
|
" parse-environment\n"
|
|
" parse-environment-list\n"
|
|
" rm-f\n"
|
|
" rsync\n"
|
|
" rsync-in\n"
|
|
" rsync-out\n"
|
|
" set-cachedir\n"
|
|
" set-libvirt-supported-credentials\n"
|
|
" set-libvirt-requested-credential\n"
|
|
" set-tmpdir\n"
|
|
" shutdown [backported to 1.16 and 1.18]\n"
|
|
" tar-in [added compress flag]\n"
|
|
" tar-out [added compress, numericowner, excludes flags]\n"
|
|
" umount [added force and lazy optional arguments]\n"
|
|
" utsname\n"
|
|
" xfs-admin (Wanlong Gao)\n"
|
|
" xfs-growfs (Wanlong Gao)\n"
|
|
" xfs-info (Wanlong Gao)\n"
|
|
" xfs-repair (Wanlong Gao)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:972
|
|
msgid "In the C API only:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:974
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_push_error_handler\n"
|
|
" guestfs_pop_error_handler\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:979
|
|
msgid "qemu E<ge> 1.1 is required (E<ge> 1.2 preferred)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:981
|
|
msgid "febootstrap E<ge> 3.20 is required."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:983
|
|
msgid ""
|
|
"libvirt is optional, but if you want to use the new libvirt backend for "
|
|
"launching the appliance then libvirt E<ge> 0.10.2 would be required."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:987
|
|
msgid ""
|
|
"Coverity has been run over the complete codebase, and many issues fixed "
|
|
"(thanks Ondrej Vasik, Kamil Dudka)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:990
|
|
msgid ""
|
|
"Functions which previously had no optargs can now be converted to ones with "
|
|
"optargs, making extending the API much more flexible. Source and binary "
|
|
"backwards compatibility is preserved for users of the API."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:994
|
|
msgid ""
|
|
"The way that libguestfs APIs and structures are represented in the generator "
|
|
"has changed to use an OCaml struct instead of a tuple. This makes generator "
|
|
"descriptions more flexible and easier to understand. For details see "
|
|
"commits 39d1a7db and eb185eef."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:999
|
|
msgid "Separation of the library code into more files:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1005
|
|
msgid ""
|
|
"Launch backends are now located in separate files "
|
|
"eg. C<src/launch-appliance.c>, C<src/launch-libvirt.c>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1010
|
|
msgid ""
|
|
"Generated action code is now split over several C<src/action*.c> files, for "
|
|
"faster compilation."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1015
|
|
msgid "The huge C<src/guestfs.c> file is now split into smaller logical units."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1020
|
|
msgid ""
|
|
"POD (documentation) is now generated using a rewritten Perl program instead "
|
|
"of pod2* + shell scripts."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1023
|
|
msgid "Man pages now contain stable dates (Hilko Bengen)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1025
|
|
msgid ""
|
|
"Skipped tests now exit with code 77, so they appear as C<SKIP:> in C<make "
|
|
"check> output."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1028
|
|
msgid "The parallel mount-local test has been rewritten in C (RHBZ#838081)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1030
|
|
msgid "Ruby 1.8.5 is now supported (though Ruby E<ge> 1.9 is preferred)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1032
|
|
msgid ""
|
|
"Perl bindings can be disabled via C<./configure --disable-perl> (Wulf "
|
|
"C. Krueger). Note that Perl is still required in order to build libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1036
|
|
msgid ""
|
|
"Java bindings are now enabled/disabled using C<./configure --with-java> or "
|
|
"C<./configure --without-java> (Wulf C. Krueger)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1039
|
|
msgid ""
|
|
"New configure options C<./configure --enable-code-profiling> and "
|
|
"C<./configure --enable-code-coverage>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1042
|
|
msgid "Multiple fixes to use of 64 bit integers in language bindings."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1044
|
|
msgid "The appliance backend now uses sgabios instead of vgabios (Dan Berrange)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1047
|
|
msgid ""
|
|
"The C<./run> script now sets enough environment variables that you can run "
|
|
"OCaml, Python, Ruby, Java, GJS, Erlang, Lua programs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1050
|
|
msgid ""
|
|
"C<./run --test> flag for running tests with minimal output. It also prints "
|
|
"the time taken to run each test."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1053
|
|
msgid ""
|
|
"The C<./run> script now builds up paths cumulatively, meaning that you can "
|
|
"use C<./run> twice, or use the libguestfs and libvirt C<./run> scripts "
|
|
"together."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1057
|
|
msgid ""
|
|
"You can extract a list of external commands required by the daemon, making "
|
|
"building the appliance on certain distros easier (Olaf Hering)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1061
|
|
msgid "The C<virt-rescue> command is now tested during C<make check>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1063
|
|
msgid ""
|
|
"The generator now removes unused generated files. This helps when going "
|
|
"back and forth with git rebase, git bisect, etc."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1066
|
|
msgid ""
|
|
"Tests now run in a separate toplevel C<tmp/> directory in the source. This "
|
|
"allows the directory to be labelled for SELinux (sVirt), and also makes it "
|
|
"easier to clean up."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1070
|
|
msgid ""
|
|
"C<make syntax-check> now works to a greater extent, and many problems in the "
|
|
"main code that were found by syntax-check have been fixed (thanks Jim "
|
|
"Meyering)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1074
|
|
msgid "Emacs mode (-*- foo -*-) has been added to generated files."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1076
|
|
msgid ""
|
|
"Progress bar output is now sent to C</dev/tty> so it doesn't end up in the "
|
|
"regular output of the program. virt-resize and virt-sparsify now suppress "
|
|
"progress bars if stdout is not a tty."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1080
|
|
msgid ""
|
|
"There is now a C<./configure --without-libvirt> option. This is useful for "
|
|
"testing that the code still compiles without libvirt."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1083
|
|
msgid ""
|
|
"There is now an internal mini-library for running commands. This allows us "
|
|
"to redirect errors from external commands into events."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1086
|
|
msgid ""
|
|
"Code for handling temporary directories and the appliance cache was "
|
|
"completely overhauled."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1089
|
|
msgid "Code for temporarily ignoring/disabling errors now looks like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1091 ../src/guestfs.pod:2437
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_push_error_handler (g, NULL, NULL);\n"
|
|
" guestfs_mkdir (g, \"/foo\"); /* We don't care if this fails. */\n"
|
|
" guestfs_pop_error_handler (g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1095
|
|
msgid ""
|
|
"The C<tests/extra> directory has gone. The \"extra tests\" are now split "
|
|
"into separately runnable targets, such as C<make check-valgrind>. Use "
|
|
"C<make help> to get a summary of the targets."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1099
|
|
msgid ""
|
|
"The C<lpj> option is passed to the appliance kernel when using TCG. This "
|
|
"should improve clock stability (thanks Marcelo Tosatti, Olaf Hering)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1107
|
|
msgid "./bugs-in-changelog.sh 1.18.0.."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1113
|
|
msgid "L<https://bugzilla.redhat.com/882417>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1115
|
|
msgid ""
|
|
"libguestfs tools fail with odd error messages if TMPDIR is not an absolute "
|
|
"path"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1117
|
|
msgid "L<https://bugzilla.redhat.com/882299>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1119
|
|
msgid ""
|
|
"Windows 8 guest disks can't be mounted: \"The NTFS partition is in an unsafe "
|
|
"state. Please resume and shutdown Windows fully (no hibernation or fast "
|
|
"restarting), or mount the volume read-only with the 'ro' mount option.\""
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1121
|
|
msgid "L<https://bugzilla.redhat.com/881953>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1123
|
|
msgid "libguestfs: migration to /etc/hostname, /etc/vconsole.conf, /etc/locale.conf"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1125
|
|
msgid "L<https://bugzilla.redhat.com/880801>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1127
|
|
msgid "virt-df with two -a options displays incorrect disk image name"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1129
|
|
msgid "L<https://bugzilla.redhat.com/879416>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1131
|
|
msgid "libguestfs-test-tool pauses when you use --help option"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1133
|
|
msgid "L<https://bugzilla.redhat.com/876579>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1135
|
|
msgid ""
|
|
"mke2fs API does not apply block device naming translation to journaldevice "
|
|
"optarg"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1137
|
|
msgid "L<https://bugzilla.redhat.com/860235>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1139
|
|
msgid ""
|
|
"SELinux policy ought to allow qemu to write to "
|
|
"unconfined_u:object_r:user_tmp_t:s0"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1141
|
|
msgid "L<https://bugzilla.redhat.com/859949>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1143
|
|
msgid ""
|
|
"RFE: inspect-list-applications does not return the architecture of RPM "
|
|
"packages"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1145
|
|
msgid "L<https://bugzilla.redhat.com/859885>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1147
|
|
msgid ""
|
|
"inspect-list-applications does not list all installed RPM packages with same "
|
|
"name and different versions"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1149
|
|
msgid "L<https://bugzilla.redhat.com/859876>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1151
|
|
msgid "guestfish printed paths are not canonicalized"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1153
|
|
msgid "L<https://bugzilla.redhat.com/859875>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1155
|
|
msgid "Progress bar output should go to tty(?) stderr(?)"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1157
|
|
msgid "L<https://bugzilla.redhat.com/858696>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1159
|
|
msgid ""
|
|
"virt-sysprep reports Guestfs.Error(\"read_lines: fopen: "
|
|
"/etc/sysconfig/network: No such file or directory\") on some Fedora guests"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1161
|
|
msgid "L<https://bugzilla.redhat.com/858128>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1163
|
|
msgid "libguestfs fail to list devices added by add-drive-ro-with-if twice"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1165
|
|
msgid "L<https://bugzilla.redhat.com/858126>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1167
|
|
msgid "virt-inspector fail to work with some windows guests"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1169
|
|
msgid "L<https://bugzilla.redhat.com/853762>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1171
|
|
msgid "virt-sparsify should use a more robust method to detect the input format"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1173
|
|
msgid "L<https://bugzilla.redhat.com/853393>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1175
|
|
msgid "libvirt doesn't label console, serial sockets"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1177
|
|
msgid "L<https://bugzilla.redhat.com/853159>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1179
|
|
msgid "virt-rescue in Fedora 18 is completely broken"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1181
|
|
msgid "L<https://bugzilla.redhat.com/852394>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1183
|
|
msgid "libguestfs inspection limits registries to 100 MiB"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1185
|
|
msgid "L<https://bugzilla.redhat.com/852194>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1187
|
|
msgid "virt-sparsify --compress fails if output is raw format"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1189
|
|
msgid "L<https://bugzilla.redhat.com/847881>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1191
|
|
msgid "RFE: allow extra arguments (like --exclude) to tar-out"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1193
|
|
msgid "L<https://bugzilla.redhat.com/847880>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1195
|
|
msgid "tar-out should allow (or force) --numeric-owner"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1197
|
|
msgid "L<https://bugzilla.redhat.com/845522>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1199
|
|
msgid ""
|
|
"guestfish \"copy-out / localdir\" command fails with \"No such file or "
|
|
"directory\""
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1201
|
|
msgid "L<https://bugzilla.redhat.com/845488>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1203
|
|
msgid ""
|
|
"Long filenames on NTFS cause tar-out, copy-out etc to fail with error "
|
|
"\"Cannot open: File name too long\""
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1205
|
|
msgid "L<https://bugzilla.redhat.com/842307>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1207
|
|
msgid ""
|
|
"RFE: Need help designing and implementing selinux policy for "
|
|
"libguestfs/sVirt"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1209
|
|
msgid "L<https://bugzilla.redhat.com/840572>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1211
|
|
msgid "virt-make-fs / tar-in should support vfat properly"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1213
|
|
msgid "L<https://bugzilla.redhat.com/840115>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1215
|
|
msgid "guestfish touch problem - case_sensitive_path API expects the file to exist"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1217
|
|
msgid "L<https://bugzilla.redhat.com/836710>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1219
|
|
msgid "Data loss when writing to qcow2-format disk files"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1221
|
|
msgid "L<https://bugzilla.redhat.com/834712>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1223
|
|
msgid ""
|
|
"lvresize, lvresize-free fail unnecessarily if you don't change the size of "
|
|
"the LV: \"New size (nn extents) matches existing size (nn extents)\""
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1225
|
|
msgid "L<https://bugzilla.redhat.com/824716>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1227
|
|
msgid "compress-device-out didn't support bzip2"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1229
|
|
msgid "L<https://bugzilla.redhat.com/824043>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1231
|
|
msgid "guestfish unrecognized mount option gives confusing error message"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1233
|
|
msgid "L<https://bugzilla.redhat.com/823887>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1235
|
|
msgid "Filenames containing Chinese characters can't be created on vfat filesystems"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1237
|
|
msgid "L<https://bugzilla.redhat.com/823885>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1239
|
|
msgid ""
|
|
"virt-make-fs cannot create vfat filesystem containing filesystems with "
|
|
"chinese characters"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1241
|
|
msgid "L<https://bugzilla.redhat.com/823883>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1243
|
|
msgid "virt-make-fs -t fat fails with an obscure error message"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1245
|
|
msgid "L<https://bugzilla.redhat.com/823821>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1247
|
|
msgid "Inspection fails when /etc/HOSTNAME is empty"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1249
|
|
msgid "L<https://bugzilla.redhat.com/801117>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1251
|
|
msgid "libguestfs cannot get icon for Windows 8"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1253
|
|
msgid "L<https://bugzilla.redhat.com/798979>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1255
|
|
msgid ""
|
|
"Ubuntu install CDs from oneiric onwards are not recognized: \"multi-boot "
|
|
"operating systems are not supported\""
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1257
|
|
msgid "L<https://bugzilla.redhat.com/782167>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1259
|
|
msgid ""
|
|
"libguestfs doesn't recognize Windows Dynamic disks in some configurations, "
|
|
"eg. spanned"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1261
|
|
msgid "L<https://bugzilla.redhat.com/713678>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1263
|
|
msgid "Not all febootstrap messages are redirected to log callbacks"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1265
|
|
msgid "L<https://bugzilla.redhat.com/627675>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1267
|
|
msgid "libguestfs inspector code cannot handle /dev/disk/by-id/* paths"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:1269
|
|
msgid "L<https://bugzilla.redhat.com/602997>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1271
|
|
msgid "part-get-bootable gives wrong result with an unordered part layout"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../guestfs-release-notes.pod:1277
|
|
msgid "RELEASE NOTES FOR LIBGUESTFS 1.18"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1279
|
|
msgid ""
|
|
"These release notes only cover the differences from the previous stable/dev "
|
|
"branch split (1.16.0). For detailed changelogs, please see the git "
|
|
"repository, or the ChangeLog file distributed in the tarball."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1287
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-sysprep has been rewritten and expanded (thanks Wanlong Gao)\n"
|
|
" http://libguestfs.org/virt-sysprep.1.html\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1290
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-sparsify --zero is a new option that zeroes the named\n"
|
|
" partition or filesystem\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1293
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-sparsify can now safely sparsify Linux swap partitions\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1295
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-sparsify fixed so it cleans up after ^C\n"
|
|
" http://libguestfs.org/virt-sparsify.1.html\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1298
|
|
#, no-wrap
|
|
msgid ""
|
|
" - a new tool 'libguestfs-make-fixed-appliance' is provided to build\n"
|
|
" fixed appliances that can be copied to other machines that don't\n"
|
|
" have febootstrap support\n"
|
|
" http://libguestfs.org/libguestfs-make-fixed-appliance.1.html\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1303
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-filesystems now displays the parents (containers) of MD\n"
|
|
" devices and volume groups\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1306
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-alignment-scan, run with no args, displays alignment information\n"
|
|
" for all libvirt domains\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1309
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-df and virt-alignment-scan will display information from all\n"
|
|
" guests even when a disk is inaccessible\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1312
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-rescue new --scratch option to make scratch disks\n"
|
|
" https://rwmj.wordpress.com/2012/04/26/virt-rescue-scratch/#content\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1315
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-make-fs can now be used to create btrfs\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1317
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-edit preserves permissions, UID, GID and SELinux context\n"
|
|
" when editing files\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1320
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish passes the close event over stdout and remote correctly\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1322
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish new '--pipe-error' option lets you detect errors in pipe\n"
|
|
" commands\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1325
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish globs now expand device names\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1327
|
|
#, no-wrap
|
|
msgid ""
|
|
" - comma and colon characters in filenames now handled correctly by\n"
|
|
" all virt tools\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1332
|
|
#, no-wrap
|
|
msgid ""
|
|
" - added support for Fedora 17+\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1334
|
|
#, no-wrap
|
|
msgid ""
|
|
" - added support for FreeDOS\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1336
|
|
#, no-wrap
|
|
msgid ""
|
|
" - added support for Buildroot and Cirros\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1338
|
|
#, no-wrap
|
|
msgid ""
|
|
" - inspection is now compatible with Windows guests that have been\n"
|
|
" sysprepped (thanks Grant Williamson).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1343
|
|
#, no-wrap
|
|
msgid ""
|
|
" - broad support for btrfs added, including adding multiple devices,\n"
|
|
" fsck, snapshots (thanks Wanlong Gao)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1346
|
|
#, no-wrap
|
|
msgid ""
|
|
" - the new 'mount-local' API brings FUSE support directly into the\n"
|
|
" core libguestfs API\n"
|
|
" "
|
|
"https://rwmj.wordpress.com/2012/05/14/tip-using-mount-local-api-from-c/#content\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1350
|
|
#, no-wrap
|
|
msgid ""
|
|
" - new man page: guestfs-performance(1), which contains performance\n"
|
|
" tuning tips\n"
|
|
" http://libguestfs.org/guestfs-performance.1.html\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1354
|
|
#, no-wrap
|
|
msgid ""
|
|
" - new man page: guestfs-faq(1), Frequently Asked Questions\n"
|
|
" http://libguestfs.org/guestfs-faq.1.html\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1357
|
|
#, no-wrap
|
|
msgid ""
|
|
" - ENOTSUP (from guestfs_last_errno) is now returned for APIs that\n"
|
|
" are not supported\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:1360
|
|
msgid "examples"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1362
|
|
#, no-wrap
|
|
msgid ""
|
|
" - 'copy_over' example showing how to copy between two handles\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1364
|
|
#, no-wrap
|
|
msgid ""
|
|
" - 'display_icon' program displays the icon associated with a guest\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1366
|
|
#, no-wrap
|
|
msgid ""
|
|
" - 'mount_local.c' example shows how to use the mount-local API\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1370 ../guestfs-release-notes.pod:1764
|
|
#, no-wrap
|
|
msgid ""
|
|
" (no security problems were found or fixed in this release)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1374
|
|
#, no-wrap
|
|
msgid ""
|
|
" btrfs-device-add: Add devices to a btrfs filesystem.\n"
|
|
" btrfs-device-delete: Remove devices from a btrfs filesystem.\n"
|
|
" btrfs-filesystem-sync: Sync a btrfs filesystem.\n"
|
|
" btrfs-filesystem-balance: Balance a btrfs filesystem.\n"
|
|
" btrfs-fsck: Check btrfs filesystem.\n"
|
|
" btrfs-set-seeding: Enable or disable seeding.\n"
|
|
" btrfs-subvolume-create: Create a btrfs snapshot.\n"
|
|
" btrfs-subvolume-delete: Delete a btrfs snapshot.\n"
|
|
" btrfs-subvolume-list: List btrfs snapshots and subvolumes.\n"
|
|
" btrfs-subvolume-set-default: Set default btrfs subvolume.\n"
|
|
" btrfs-subvolume-snapshot: Create a writable btrfs snapshot.\n"
|
|
" get-e2attrs: List ext2 file attributes of a file.\n"
|
|
" get-e2generation: Get ext2 file generation of a file.\n"
|
|
" isoinfo, isoinfo-device: Get information from the header of ISO files.\n"
|
|
" llz: List files with SELinux information.\n"
|
|
" lvcreate-free: Create an LVM logical volume in % remaining free space.\n"
|
|
" md-stat: Return underlying devices from an MD device.\n"
|
|
" mkfs-brtfs: Make btrfs filesystem, with all tunables.\n"
|
|
" mount-local, mount-local-run, umount-local: FUSE support in the API.\n"
|
|
" ntfsclone-in, ntfsclone-out: Save, restore NTFS from backup.\n"
|
|
" ntfsfix: Fix common errors and force Windows to check NTFS.\n"
|
|
" set-e2attrs: Set or clear ext2 file attributes of a file.\n"
|
|
" set-e2generation: Set ext2 file generation of a file.\n"
|
|
" set-label: Unified interface for setting filesystem label.\n"
|
|
" vgmeta: Get volume group metadata.\n"
|
|
" wipefs: Wipe filesystem signatures from a device.\n"
|
|
" zero-free-space: Zero free space in a filesystem.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1404
|
|
#, no-wrap
|
|
msgid ""
|
|
" - The debian/ subdirectory has been removed. We recommend you use\n"
|
|
" the official Debian packages made by Hilko Bengen.\n"
|
|
" http://people.debian.org/~bengen/libguestfs/\n"
|
|
" http://packages.debian.org/search?keywords=libguestfs\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1409
|
|
#, no-wrap
|
|
msgid ""
|
|
" - O_CLOEXEC / SOCK_CLOEXEC is now used for almost all file\n"
|
|
" descriptors that the library opens.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1412
|
|
#, no-wrap
|
|
msgid ""
|
|
" - posix_fadvise is called when sequentially reading or writing large\n"
|
|
" files.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1415
|
|
#, no-wrap
|
|
msgid ""
|
|
" - close all file descriptors and remove all signal handlers in the\n"
|
|
" recovery process\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1418
|
|
#, no-wrap
|
|
msgid ""
|
|
" - multiple gcc warnings and Coverity bugs have been fixed; many\n"
|
|
" strict-overflow bugs have also been fixed\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1421
|
|
#, no-wrap
|
|
msgid ""
|
|
" - use ./configure --enable-valgrind-daemon to use valgrind on the\n"
|
|
" daemon; many errors have been fixed\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1424
|
|
#, no-wrap
|
|
msgid ""
|
|
" - use ./configure --with-qemu-options to pass extra options to qemu\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1426
|
|
#, no-wrap
|
|
msgid ""
|
|
" - the daemon now has a growable strings buffer type (DECLARE_STRINGSBUF)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1428
|
|
#, no-wrap
|
|
msgid ""
|
|
" - the <guestfs.h> header file works with C++ and we have a regression\n"
|
|
" test for this\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1431
|
|
#, no-wrap
|
|
msgid ""
|
|
" - multiple APIs which should only be called in the CONFIG state now\n"
|
|
" give an error if they are not\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1434
|
|
#, no-wrap
|
|
msgid ""
|
|
" - .gitignore fixed to use absolute paths\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1436
|
|
#, no-wrap
|
|
msgid ""
|
|
" - gobject bindings have been expanded, including mapping libguestfs\n"
|
|
" events to gobject signals (thanks Matt Booth)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1439
|
|
#, no-wrap
|
|
msgid ""
|
|
" - gobject documentation is generated properly (thanks Matt Booth)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1441
|
|
#, no-wrap
|
|
msgid ""
|
|
" - gobject header files now live in a subdirectory\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1443
|
|
#, no-wrap
|
|
msgid ""
|
|
" - CompareWithString test in the generator now works\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1445
|
|
#, no-wrap
|
|
msgid ""
|
|
" - FUInt32, FUInt64 struct field types now use the correct XDR type\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1447
|
|
#, no-wrap
|
|
msgid ""
|
|
" - OCaml tests are now run on bytecode and native code.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1449
|
|
#, no-wrap
|
|
msgid ""
|
|
" - java -Xlint:all is used, and all warnings have been fixed\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1451
|
|
#, no-wrap
|
|
msgid ""
|
|
" - bmptopng, wrestool (etc) missing or failure no longer prints\n"
|
|
" warning messages\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1454
|
|
#, no-wrap
|
|
msgid ""
|
|
" - ruby: Use RbConfig instead of Config.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1456
|
|
#, no-wrap
|
|
msgid ""
|
|
" - PYTHONPATH is set by the ./run script.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1458
|
|
#, no-wrap
|
|
msgid ""
|
|
" - appliance building is now thread-safe.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1460
|
|
#, no-wrap
|
|
msgid ""
|
|
" - appliance now uses 'ip' instead of 'ifconfig' and 'netstat'\n"
|
|
" commands\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1463
|
|
#, no-wrap
|
|
msgid ""
|
|
" - several fixes to make parallel builds work properly\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1465
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish --listen now cleans up properly\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1467
|
|
#, no-wrap
|
|
msgid ""
|
|
" - the BUSY state has been removed\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1469
|
|
#, no-wrap
|
|
msgid ""
|
|
" - gettextize has been removed, replaced by a simple Makefile.am\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1471
|
|
#, no-wrap
|
|
msgid ""
|
|
" - gettext support now covers virt-resize, virt-sparsify and virt-sysprep\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1473
|
|
#, no-wrap
|
|
msgid ""
|
|
" - better support for the arm architecture\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1477
|
|
#, no-wrap
|
|
msgid ""
|
|
" - 822490 virt-ls error: \"libguestfs: error: checksum: path: parameter "
|
|
"cannot be NULL\"\n"
|
|
" - 816839 data overflow error when debug progress -1\n"
|
|
" - 816098 virt-make-fs fails to make a btrfs filesystem because it doesn't "
|
|
"allocate enough space\n"
|
|
" - 811872 inspection fails on ubuntu 10.04 guest with encrypted swap\n"
|
|
" - 811650 guestfs_last_error not set when qemu fails early during launch\n"
|
|
" - 811649 libguestfs cannot open disk images which are symlinks to files "
|
|
"that contain ':' (colon) character\n"
|
|
" - 811117 [RFE][virt-sysprep] net-hwaddr not removed from \"ifcfg-*\" files "
|
|
"on rhel\n"
|
|
" - 811112 [RFE][virt-sysprep] hostname can not be changed on rhel system\n"
|
|
" - 809361 inspection doesn't recognize Fedora 18 (grub2 + GPT)\n"
|
|
" - 807905 mkfs blocksize option breaks when creating btrfs\n"
|
|
" - 805070 virt-filesystems should show 'parents' of LV and RAID devices\n"
|
|
" - 804464 libguestfs cannot be built when LINGUAS is different then ja or "
|
|
"uk\n"
|
|
" - 803664 libguestfs inspection fails on Windows XP: libguestfs: error: "
|
|
"hivex: could not locate HKLM\\SYSTEM\\MountedDevices\n"
|
|
" - 803533 guestfish: write error\n"
|
|
" - 802389 event handlers for 'close' event doesn't work in remote mode\n"
|
|
" - 802109 libguestfs uses putc on stderr, results in many individual 1 byte "
|
|
"writes of debug messages\n"
|
|
" - 801640 [RFE] the error reported by resize2fs-M need to be more clear\n"
|
|
" - 801298 Possible null dereference and resource leaks\n"
|
|
" - 801273 Document for set-pgroup need to be updated\n"
|
|
" - 798196 virt-resize confuses format and output_format variables; using "
|
|
"--output-format sets the input format\n"
|
|
" - 797986 virt-resize on Windows XP in sysprep state causes "
|
|
"\"UNMOUNTABLE_BOOT_VOLUME\" BSOD\n"
|
|
" - 796520 [RFE] Prevent user from running some appliance configure commands "
|
|
"after appliance boot up\n"
|
|
" - 790721 multiprovider build error: RuntimeError: link: "
|
|
"/tmp/.guestfs-0/kernel /tmp/.guestfs-0/kernel.10139: File exists\n"
|
|
" - 789960 guestfsd crash when try to mount non-exist disk\n"
|
|
" - 789504 virt-df (other tools?) should not give up if a guest disk is "
|
|
"missing\n"
|
|
" - 788641 virt-edit doesn't preserve file permissions\n"
|
|
" - 786215 libguestfs inspection does not recognize FreeDOS operating "
|
|
"system\n"
|
|
" - 786188 libguestfs inspection does not recognize FreeDOS install CD\n"
|
|
" - 785668 aug-defnode: daemon crash\n"
|
|
" - 784647 Libguestfs uses deprecated net-tools\n"
|
|
" - 769304 virt-resize on RHEL 6 kernel fails to re-read the partition "
|
|
"table\n"
|
|
" - 755729 Error message for resize2fs-M needs tweaking\n"
|
|
" - 701814 virt-win-reg fails on a libvirt guest that has no defined disk "
|
|
"format: \"format parameter is empty or contains disallowed characters\"\n"
|
|
" - 679737 libguestfs: improve error message when zerofree is not available "
|
|
"in the appliance\n"
|
|
" - 635971 glob mkfs ext2 /dev/vd[b-t]1 does not expand\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../guestfs-release-notes.pod:1515
|
|
msgid "RELEASE NOTES FOR LIBGUESTFS 1.16"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1517
|
|
msgid ""
|
|
"These release notes only cover the differences from the previous stable/dev "
|
|
"branch split (1.14.0). For detailed changelogs, please see the git "
|
|
"repository, or the ChangeLog file distributed in the tarball."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:1523
|
|
msgid "libguestfs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1525
|
|
#, no-wrap
|
|
msgid ""
|
|
" - allow XFS filesystems to be created over an existing filesystem\n"
|
|
" (Wanlong Gao)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1528
|
|
#, no-wrap
|
|
msgid ""
|
|
" - the (unspecified) default alignment for part-disk has been\n"
|
|
" changed to 64K for better support of high-end network-attached\n"
|
|
" storage\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1532
|
|
#, no-wrap
|
|
msgid ""
|
|
" - new guestfs-testing(1) man page\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1534
|
|
#, no-wrap
|
|
msgid ""
|
|
" - list-filesystems returns MD devices containing filesystems\n"
|
|
" (Matthew Booth)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1537
|
|
#, no-wrap
|
|
msgid ""
|
|
" - support for GCC >= 4.7 (Jim Meyering)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1539
|
|
#, no-wrap
|
|
msgid ""
|
|
" - check user does not add the same drive twice (Wanlong Gao).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1543
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Experimental GObject bindings, with support for GObject\n"
|
|
" Introspection. You can now use libguestfs from Javascript.\n"
|
|
" Please note these are not stable and final in this release.\n"
|
|
" (Matthew Booth).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1548
|
|
#, no-wrap
|
|
msgid ""
|
|
" - support for Ruby >= 1.9\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1550
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Ruby bindings can be disabled individually (Hilko Bengen)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1552
|
|
#, no-wrap
|
|
msgid ""
|
|
" - support for Python 2.6, 3.x (Richard Jones, Hilko Bengen)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1554
|
|
#, no-wrap
|
|
msgid ""
|
|
" - support for PHP >= 5.4\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1556
|
|
#, no-wrap
|
|
msgid ""
|
|
" - new %guestfs_introspection hash is available in Perl bindings so\n"
|
|
" you can query which optional arguments are available\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1561
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guests with MD devices can be inspected (Matthew Booth)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1563
|
|
#, no-wrap
|
|
msgid ""
|
|
" - support for GNU/Hurd guests\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:1565 ../guestfs-release-notes.pod:1674 ../guestfs-release-notes.pod:1832
|
|
msgid "guestfish"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1567
|
|
#, no-wrap
|
|
msgid ""
|
|
" - libguestfs events (such as progress bar events and log messages) can\n"
|
|
" be trapped and processed by user-defined shell scripts.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1570
|
|
#, no-wrap
|
|
msgid ""
|
|
" - MD devices are tab-completed (Matthew Booth)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1574
|
|
#, no-wrap
|
|
msgid ""
|
|
" - New tool virt-format for erasing and making blank disks\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1576
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-sparsify new --compress and -o options to allow for compressed\n"
|
|
" and different format output\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1579
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-sparsify can now detect and sparsify .vdi files\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1581
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-sysprep no longer requires xmlstarlet; a new virt-inspector "
|
|
"--xpath\n"
|
|
" option has been added to replace this functionality\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1584
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-rescue has a new --suggest option which suggests mount commands\n"
|
|
" for the guest\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1587
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-resize no longer requires OCaml pcre library\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:1589
|
|
msgid "libguestfs live"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1591
|
|
#, no-wrap
|
|
msgid ""
|
|
" - daemon will no longer try to edit your live /etc/lvm configuration\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1593
|
|
#, no-wrap
|
|
msgid ""
|
|
" - fix a potential security problem with predictable /tmp names (Steve "
|
|
"Kemp)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1597
|
|
#, no-wrap
|
|
msgid ""
|
|
" CVE-2011-4127, RHBZ#757071\n"
|
|
" Mitigate possible privilege escalation via SG_IO ioctl\n"
|
|
" For more information, see: "
|
|
"https://github.com/libguestfs/libguestfs/commit/9a5f784d511a8f00a8386f316eab41fe660430db\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1603
|
|
#, no-wrap
|
|
msgid ""
|
|
" blkid: print all attributes of a device known to blkid (Wanlong Gao)\n"
|
|
" e2fsck: access to more features of e2fsck (Wanlong Gao)\n"
|
|
" list-md-devices: list of Linux MD devices (Matthew Booth)\n"
|
|
" md-create: create an MD device\n"
|
|
" md-detail: returns metadata for an MD device (Matthew Booth)\n"
|
|
" md-stop: stop an MD device (Wanlong Gao)\n"
|
|
" tune2fs: allow ext2/3/4 filesystems to be tuned\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1613
|
|
#, no-wrap
|
|
msgid ""
|
|
" Git hosting has moved to http://github.com/libguestfs\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1615
|
|
#, no-wrap
|
|
msgid ""
|
|
" The various test directories have been rearranged logically, and now\n"
|
|
" all appear under 'tests/'.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1618
|
|
#, no-wrap
|
|
msgid ""
|
|
" There is a 'make extra-tests' rule which runs ordinary tests and\n"
|
|
" additional tests, using valgrind to check for memory problems.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1621
|
|
#, no-wrap
|
|
msgid ""
|
|
" Multiple memory leaks and other problems found by valgrind and fixed.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1623
|
|
#, no-wrap
|
|
msgid ""
|
|
" Support for optional arguments in the generator has been rewritten\n"
|
|
" to provide more features and safety (Matthew Booth).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1626
|
|
#, no-wrap
|
|
msgid ""
|
|
" With gcc -fvisibility=hidden is used for internal symbols, avoiding\n"
|
|
" call indirection via the PLT.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1629
|
|
#, no-wrap
|
|
msgid ""
|
|
" RHashtable functions can be tested in the generator.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1631
|
|
#, no-wrap
|
|
msgid ""
|
|
" ADD_ARG macro in daemon allows arg lists to be constructed without\n"
|
|
" risk of stack smashing.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1634
|
|
#, no-wrap
|
|
msgid ""
|
|
" Fix generation of OCaml functions that have more than 10 arguments.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1636
|
|
#, no-wrap
|
|
msgid ""
|
|
" psmisc has been added to the appliance, allowing use of 'fuser',\n"
|
|
" 'killall' and 'pstree' for debugging.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1639
|
|
#, no-wrap
|
|
msgid ""
|
|
" bindtests now cover RBufferOut and optional arguments (Matthew Booth).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1643
|
|
#, no-wrap
|
|
msgid ""
|
|
" - 769680 temporary directories created during appliance builds are not "
|
|
"cleaned up on error\n"
|
|
" - 761460 guestfs_utimens hangs on named pipes\n"
|
|
" - 761451 guestfs_utimens cannot set times on a directory\n"
|
|
" - 760775 \"guestfish: multi-boot operating systems are not supported by the "
|
|
"-i option\" should be more explanatory\n"
|
|
" - 760669 guestfish copy-in and <! (inline execution) don't mix well: "
|
|
"pclose: No child processes\n"
|
|
" - 760000 libguestfs fails to compile with Ruby >= 1.9\n"
|
|
" - 755729 Error message for resize2fs-M needs tweaking\n"
|
|
" - 750889 Python code incompatible with Python v3.\n"
|
|
" - 596761 Ctrl-\\ causes guestfish to abort\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../guestfs-release-notes.pod:1655
|
|
msgid "RELEASE NOTES FOR LIBGUESTFS 1.14"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1657
|
|
msgid ""
|
|
"These release notes only cover the differences from the previous stable/dev "
|
|
"branch split (1.12.0). For detailed changelogs, please see the git "
|
|
"repository, or the ChangeLog file distributed in the tarball."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1663
|
|
#, no-wrap
|
|
msgid ""
|
|
" Erlang bindings.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1665
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-alignment-scan is a new tool to check the alignment of\n"
|
|
" partitions within virtual machines or disk images.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1668
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-sparsify is a new tool to make virtual machine disk images\n"
|
|
" sparse.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1671
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-sysprep is a new tool to make cloning guests from a template\n"
|
|
" simpler.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1676
|
|
#, no-wrap
|
|
msgid ""
|
|
" - New commands setenv, unsetenv, to set environment variables.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1678
|
|
#, no-wrap
|
|
msgid ""
|
|
" - The input file and line number is printed in error messages.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1680
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish progress bars are now a \"mini-library\" used by other\n"
|
|
" tools too.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:1683
|
|
msgid "guestmount"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1685
|
|
#, no-wrap
|
|
msgid ""
|
|
" - the --live option (for access to live VMs) now works.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:1687
|
|
msgid "virt-cat"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1689
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-cat can now handle Windows paths and drive letters "
|
|
"(RHBZ#693359).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:1691
|
|
msgid "virt-filesystems"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1693
|
|
#, no-wrap
|
|
msgid ""
|
|
" - the MBR partition type byte is displayed in --long output.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:1695
|
|
msgid "virt-make-fs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1697
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-make-fs now sets the MBR partition type byte correctly,\n"
|
|
" improving compatibility with Windows (RHBZ#746295).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:1700 ../guestfs-release-notes.pod:1859
|
|
msgid "virt-resize"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1702
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-resize can now work with guests using extended and logical\n"
|
|
" partitions, in particular Ubuntu guests.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1705
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-resize can now align the first partition of Windows guests,\n"
|
|
" improving performance. The new virt-resize --align-first option\n"
|
|
" controls this behaviour.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1709
|
|
#, no-wrap
|
|
msgid ""
|
|
" - The virt-resize --machine-readable flag makes it possible to use\n"
|
|
" virt-resize from other programs.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1712
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Partitions are now aligned to 128 sectors (usually 64K) by\n"
|
|
" default. This improves efficiency on high-end storage. The new\n"
|
|
" virt-resize --alignment option allows the alignment to be\n"
|
|
" adjusted.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:1717
|
|
msgid "virt-win-reg"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1719
|
|
#, no-wrap
|
|
msgid ""
|
|
" - The syntax for deleting registry keys and values is documented\n"
|
|
" in the man page (RHBZ#737944).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:1722
|
|
msgid "library"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1724
|
|
#, no-wrap
|
|
msgid ""
|
|
" - non-printing characters are escaped correctly in debug output.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1726
|
|
#, no-wrap
|
|
msgid ""
|
|
" - GUESTFS_EVENT_ENTER is a new event type generated whenever a\n"
|
|
" libguestfs function is called.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1729
|
|
#, no-wrap
|
|
msgid ""
|
|
" - the library contains systemtap/DTrace probes.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1731
|
|
#, no-wrap
|
|
msgid ""
|
|
" - the library can now be compiled without hivex (RHBZ#723474).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1735
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Improve detection of Windows disks.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1737
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Adds support for:\n"
|
|
" ttylinux - a minimal Linux\n"
|
|
" Mageia (thanks Michael Scherer)\n"
|
|
" OpenSUSE and zypper (thanks Michael Scherer, Vincent Untz)\n"
|
|
" Ubuntu logos (thanks Michael Scherer)\n"
|
|
" NetBSD and pkgsrc (thanks Michael Scherer)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1744
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Handle some guest types that use /dev/root in /etc/fstab.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1746
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Fix handling of guests with > 26 disks (thanks Matthew Booth)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1748
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Add support for guests with HP Smart Array disks (thanks Matthew "
|
|
"Booth)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:1750
|
|
msgid "febootstrap"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1752
|
|
#, no-wrap
|
|
msgid ""
|
|
" - FEBOOTSTRAP_KERNEL, FEBOOTSTRAP_MODULES environment variables can\n"
|
|
" be set in order to choose which kernel to use for the appliance.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:1755
|
|
msgid "misc"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1757
|
|
#, no-wrap
|
|
msgid ""
|
|
" - ArchLinux support now working with Linux 3.0 (thanks Erik Nolte)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1759
|
|
#, no-wrap
|
|
msgid ""
|
|
" - libvirt disks marked <readonly/> are now added readonly when\n"
|
|
" using the virt-tools '-d' option.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1768
|
|
#, no-wrap
|
|
msgid ""
|
|
" compress-out, compress-device-out, copy-device-to-device,\n"
|
|
" copy-device-to-file, copy-file-to-device, copy-file-to-file,\n"
|
|
" get-smp, part-to-partnum, set-smp.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1772
|
|
#, no-wrap
|
|
msgid ""
|
|
" The mount API no longer implicitly adds -o sync,noatime options.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1774
|
|
#, no-wrap
|
|
msgid ""
|
|
" add-domain has a new 'readonlydisk' optional parameter to control\n"
|
|
" how <readonly/> disks are handled.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1779
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Coverity was run on the source and more bugs were identified and\n"
|
|
" fixed.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1782
|
|
#, no-wrap
|
|
msgid ""
|
|
" - PCRE library is now required to build libguestfs.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1784
|
|
#, no-wrap
|
|
msgid ""
|
|
" - APIC is now the default for the appliance. You can also enable\n"
|
|
" SMP support in the appliance.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1787
|
|
#, no-wrap
|
|
msgid ""
|
|
" - OCaml bindings now correctly acquire GC lock during callbacks.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1789
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Out of tree builds should now work correctly (thanks Hilko Bengen).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1791
|
|
#, no-wrap
|
|
msgid ""
|
|
" - ./configure --with-extra=\"...\" can be used by packagers to set\n"
|
|
" the extra version string.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1794
|
|
#, no-wrap
|
|
msgid ""
|
|
" - zero, zero-device APIs: if the blocks already contain zeroes,\n"
|
|
" don't write zeroes, so that we don't unnecessarily make the\n"
|
|
" underlying storage non-sparse.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1798
|
|
#, no-wrap
|
|
msgid ""
|
|
" - is-zero, is-zero-device APIs: optimize these so zero detection is\n"
|
|
" faster.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1803
|
|
#, no-wrap
|
|
msgid ""
|
|
" - 748266 libguestfs should detect versions of qemu which require -machine "
|
|
"pc option\n"
|
|
" - 747290 libguestfs ignores <readonly/> in libvirt XML\n"
|
|
" - 747287 Misleading error message when permission denied opening a disk "
|
|
"image\n"
|
|
" - 746295 virt-make-fs doesn't set partition ID\n"
|
|
" - 744795 guestmount --live is not usable\n"
|
|
" - 737944 virt-win-reg hyphen (delete key) syntax may be wrong, and is not "
|
|
"documented\n"
|
|
" - 733297 ruby event handlers fail with \"exception in callback: wrong "
|
|
"argument type Proc (expected Data)\"\n"
|
|
" - 731744 libguestfs should escape special/non-printing characters in debug "
|
|
"output\n"
|
|
" - 729887 appliance crashes running aug_init with flags=4\n"
|
|
" - 729075 libguestfs confuses Hp_recovery partition with Windows root "
|
|
"filesystem\n"
|
|
" - 727178 error: luks_open: cryptsetup: error while loading shared "
|
|
"libraries: libfipscheck.so.1: cannot open shared object file: No such file "
|
|
"or directory\n"
|
|
" - 726739 libguestfs: error: aug_get: no matching node, trying to find "
|
|
"hostname\n"
|
|
" - 723474 If hivex and/or pcre not installed, libguestfs fails to compile\n"
|
|
" - 693359 virt-cat and virt-edit don't handle case sensitive NTFS paths "
|
|
"properly\n"
|
|
" - 678231 virt-inspector reports unknown filesystem UUID\n"
|
|
" - 671082 libguestfs does not work with kernel-rt\n"
|
|
" - 666578 libguestfs: unknown filesystem label SWAP-sda2\n"
|
|
" - 642821 virt-resize falls over on a disk image with a logical swap "
|
|
"partition\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../guestfs-release-notes.pod:1824
|
|
msgid "RELEASE NOTES FOR LIBGUESTFS 1.12"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1826
|
|
msgid ""
|
|
"These release notes only cover the differences from the previous stable/dev "
|
|
"branch split (1.10.0). For detailed changelogs, please see the git "
|
|
"repository, or the ChangeLog file distributed in the tarball."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1834
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish strings can use escapes,\n"
|
|
" eg. ><fs> write /foo \"line 1\\nline 2\\n\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1837
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish write-append command can be used to append to files.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1839
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Long-running file uploads and downloads can be cancelled through the\n"
|
|
" API or by hitting ^C in guestfish.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1842
|
|
#, no-wrap
|
|
msgid ""
|
|
" - New guestfish \"display\" command for displaying graphical files\n"
|
|
" inside guests.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1845
|
|
#, no-wrap
|
|
msgid ""
|
|
" - In guestfish, tab completion now works on /dev/mapper devices.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:1847
|
|
msgid "virt-inspector"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1849
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Inspection API can get an icon or logo for certain guests.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1851
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-inspector includes the logo and hostname for certain guests.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1853
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-inspector can now get the version and release numbers for RPM\n"
|
|
" packages.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1856
|
|
#, no-wrap
|
|
msgid ""
|
|
" - CentOS and Scientific Linux are now treated as separate distros by\n"
|
|
" the inspection API.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1861
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-resize can now handle btrfs.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1863
|
|
#, no-wrap
|
|
msgid ""
|
|
" - New virt-resize --ntfsresize-force option allows Windows VMs to be\n"
|
|
" resized multiple times.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:1866
|
|
msgid "other virt tools"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1868
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish, guestmount, virt-cat, virt-df, virt-edit, "
|
|
"virt-filesystems,\n"
|
|
" virt-inspector, virt-ls and virt-rescue now allow you to use\n"
|
|
" \"-d UUID\" option to specify a guest by UUID. This makes them more\n"
|
|
" robust to use from other programs.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1873
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-ls -lR option allows complex file iteration and guest analysis.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1875
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-win-reg supports HKEY_USERS\\<SID> and HKEY_USERS\\<username>.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1877
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-win-reg new option --unsafe-printable-strings allows printable\n"
|
|
" strings to be displayed in the output (unsafely: read the "
|
|
"documentation\n"
|
|
" before using).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1881
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-edit has been rewritten in C.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../guestfs-release-notes.pod:1883
|
|
msgid "API and language bindings"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1885
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Java is now completely supported.\n"
|
|
" See http://libguestfs.org/guestfs-java.3.html\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1888
|
|
#, no-wrap
|
|
msgid ""
|
|
" - JRuby is supported via the Java bindings.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1890
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfs_close now appears in trace messages.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1892
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Python binding adds explicit g.close() method.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1894
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Python programs can now use the new event API.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1896
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Python GIL is released during libguestfs calls, allowing "
|
|
"multithreaded\n"
|
|
" Python programs to work properly.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1899
|
|
#, no-wrap
|
|
msgid ""
|
|
" - 9pfs (Plan 9 filesystems exported from the host) are now supported.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1901
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Add -DGUESTFS_WARN_DEPRECATED=1 to warn about use of deprecated API\n"
|
|
" functions in C programs.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1904
|
|
#, no-wrap
|
|
msgid ""
|
|
" - New manual page guestfs-recipes(1) with recipes.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1906
|
|
#, no-wrap
|
|
msgid ""
|
|
" - mkfs-opts can now set inode size and sector size on created "
|
|
"filesystems\n"
|
|
" (thanks Nikita Menkovich).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1909
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfs_last_errno is now accessible from OCaml (as g#last_errno ()).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1913
|
|
#, no-wrap
|
|
msgid ""
|
|
" - optargs_bitmask is checked even for calls that have no optional\n"
|
|
" arguments. This closes a possible exploit in the daemon from\n"
|
|
" untrusted callers.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1919
|
|
#, no-wrap
|
|
msgid ""
|
|
" btrfs-filesystem-resize, get-pgroup, inspect-get-icon, is-zero,\n"
|
|
" is-zero-device, list-9p, list-dm-devices, mount-9p, ntfsresize-opts,\n"
|
|
" set-pgroup, write-append\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1925
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Coverity (a static analysis tool) was run across the codebase and\n"
|
|
" many fixes were made.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1928
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Generator can handle functions that return RBufferOut and have\n"
|
|
" optional arguments.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1931
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Compatible with Perl 5.14.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1933
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Compatible with gcc 4.6.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1935
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Perform safety checks on QEMU.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1937
|
|
#, no-wrap
|
|
msgid ""
|
|
" - C API tests can now fully test calls that have optional arguments.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1939
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Use ./configure --enable-install-daemon to install /usr/sbin/guestfsd.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1941
|
|
#, no-wrap
|
|
msgid ""
|
|
" - po-docs directory now covers all man pages.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1943
|
|
#, no-wrap
|
|
msgid ""
|
|
" - stderr from qemu process is now captured by the event subsystem.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1947
|
|
#, no-wrap
|
|
msgid ""
|
|
" - 602997 part-get-bootable gives wrong result with an unordered part "
|
|
"layout\n"
|
|
" - 661280 virt-rescue: panic when shutting down: \"/sbin/reboot: No such "
|
|
"file or directory\"\n"
|
|
" - 700369 qemu-system-x86_64 says 'KVM not supported for this target'\n"
|
|
" - 705200 guestmount attempt results in access denied\n"
|
|
" - 714981 'list-filesystems' does not know about virtio 9p filesystems or "
|
|
"detect existing mounts\n"
|
|
" - 717786 libguestfs python bindings should have an explicit close call\n"
|
|
" - 721275 virt-resize in F16 should support btrfs\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../guestfs-release-notes.pod:1957
|
|
msgid "Release notes for libguestfs 1.10.0"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:1959
|
|
msgid ""
|
|
"These release notes only cover the differences from the previous stable/dev "
|
|
"branch split (1.8.0). For detailed changelogs, please see the git "
|
|
"repository, or the ChangeLog file distributed in the tarball."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1965
|
|
#, no-wrap
|
|
msgid ""
|
|
" - libguestfs and tools can be used against live virtual machines.\n"
|
|
" See the 'guestfish --live' and 'guestmount --live' options, and (for\n"
|
|
" the low-level interface) the new APIs set-attach-method and\n"
|
|
" get-attach-method.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1970
|
|
#, no-wrap
|
|
msgid ""
|
|
" - New virt tools:\n"
|
|
" virt-copy-in, virt-copy-out, virt-tar-in, virt-tar-out.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1973
|
|
#, no-wrap
|
|
msgid ""
|
|
" - libguestfs can get the drive letter mappings for Windows guests.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1975
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-inspector displays drive letter mappings for Windows guests.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1977
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Drive letters can now be used in virt-edit and guestfish programs\n"
|
|
" when operating on Windows guests.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1980
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-resize now works on 32 bit hosts.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1982
|
|
#, no-wrap
|
|
msgid ""
|
|
" - You can now inspect the install disks and live CDs of many different\n"
|
|
" operating systems.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1985
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish <! cmd which executes a shell cmd and inlines the result.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1987
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish, guestmount, virt-rescue now all support --ro and --rw\n"
|
|
" options, and the default for this can be chosen via a configuration\n"
|
|
" file (/etc/libguestfs-tools.conf).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1991
|
|
#, no-wrap
|
|
msgid ""
|
|
" - New event API allows more than one callback to be registered for\n"
|
|
" each event, makes it possible to call the API from other languages,\n"
|
|
" and allows nearly all log, debug and trace messages to be rerouted\n"
|
|
" from stderr.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1996
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Greater FHS compliance for temporary files, including using /var/tmp\n"
|
|
" for large cached files that should survive reboot (instead of /tmp).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:1999
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish, guestmount -m option allows mount options to be passed\n"
|
|
" through to the underlying filesystem.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2002
|
|
#, no-wrap
|
|
msgid ""
|
|
" - mkfs-opts allows filesystem features to be specified.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2004
|
|
#, no-wrap
|
|
msgid ""
|
|
" - More intelligent handling of mountpoints, allowing mkmountpoint, mount\n"
|
|
" and umount-all commands to work together properly.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2007
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Trace messages are prefixed with a distinct string, allowing them to\n"
|
|
" be easily 'grepped' out from debug output.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2010
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfs_launch (guestfish 'run' command) now produces progress\n"
|
|
" messages (a guestfish progress bar) if it takes longer than 5\n"
|
|
" seconds to run.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2014
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Several long-running commands where we are unable to estimate time\n"
|
|
" to completion generate \"pulse mode\" progress events. Progress bar\n"
|
|
" in guestfish has been updated to display these.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2018
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Publish new example code in: C, Perl, Python, OCaml, Ruby.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2020
|
|
#, no-wrap
|
|
msgid ""
|
|
" - New virt-dhcp-address example program.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2022
|
|
#, no-wrap
|
|
msgid ""
|
|
" - The Java and Ruby bindings have been improved greatly.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2024
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Perl includes a way to get the errno of the last error.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2026
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Python bindings now compatible with rpyc (thanks Erez Shinan).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2028
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Transifex is now being used to manage translations.\n"
|
|
" http://www.transifex.net/projects/p/libguestfs/\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2031
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Inspection now supports Red Hat Desktop, Slackware distributions.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2033
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Inspection no longer fails for Windows guests that have two or\n"
|
|
" more disks.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2036
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Inspection can now tell the difference between Windows 2008 Server\n"
|
|
" and Windows 7.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2039
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Inspection can detect 32 bit applications installed in 64 bit\n"
|
|
" Windows, running on the WOW64 emulator.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2042
|
|
#, no-wrap
|
|
msgid ""
|
|
" - A series of protocol fixes has fixed the old bug RHBZ#576879\n"
|
|
" which used to cause errors during the upload command to lose\n"
|
|
" protocol synchronization.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2046
|
|
#, no-wrap
|
|
msgid ""
|
|
" - New logo!\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2050
|
|
#, no-wrap
|
|
msgid ""
|
|
" [none]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2054
|
|
#, no-wrap
|
|
msgid ""
|
|
" first-private, get-attach-method, inspect-get-drive-mappings,\n"
|
|
" inspect-get-product-variant,\n"
|
|
" inspect-get-windows-current-control-set, next-private, resize2fs-M,\n"
|
|
" set-attach-method.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2061
|
|
#, no-wrap
|
|
msgid ""
|
|
" - The 'HACKING' file is obsolete. The contents have been moved into\n"
|
|
" a section of the guestfs(3) manual page.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2064
|
|
#, no-wrap
|
|
msgid ""
|
|
" - libguestfs-test-tool simplified. It no longer needs the static\n"
|
|
" binary or tries to construct an ISO.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2067
|
|
#, no-wrap
|
|
msgid ""
|
|
" - rpcgen-generated files are compiled with -fno-strict-aliasing\n"
|
|
" which should be safer (thanks Matt Booth).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2070
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-resize was rewritten in OCaml.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2072
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish and other tools tested with valgrind; some memory leaks\n"
|
|
" were fixed.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2077
|
|
#, no-wrap
|
|
msgid ""
|
|
" - 502533 Updated Polish translation of libguestfs\n"
|
|
" - 576879 libguestfs protocol loses synchronization if you 'upload' before "
|
|
"mounting disks\n"
|
|
" - 599503 document that mkmountpoint and umount-all cannot be mixed\n"
|
|
" - 617440 guestfish: fails to tilde expand '~' when the $HOME env is unset\n"
|
|
" - 664558 RFE: Allow to set log callback in Ruby bindings\n"
|
|
" - 665358 Punjabi Translation Completed (pa_IN)\n"
|
|
" - 666577 libguestfs: unknown filesystem /dev/fd0\n"
|
|
" - 667610 Multiple bugs, memory leaks in libguestfs ruby bindings\n"
|
|
" - 668112 virt-filesystems command fails on guest with corrupt filesystem "
|
|
"label\n"
|
|
" - 668574 guestfish -i is trying to mount all mounts from /etc/fstab and "
|
|
"fails with an error when device doesn't exists\n"
|
|
" - 673479 Add a grep-friendly string to LIBGUESTFS_TRACE output\n"
|
|
" - 674130 Inspection code fails for Windows guest with two disks\n"
|
|
" - 682756 libguestfs trace segfaults when list-filesystems returns error\n"
|
|
" - 682979 libguestfs incorrectly detects Red Hat desktop as 'redhat-based' "
|
|
"instead of 'redhat'\n"
|
|
" - 690819 mkfs fails creating a filesytem on a disk device when using a disk "
|
|
"with 'ide' interface\n"
|
|
" - 691389 Extended attributes don't work over guestmount (FUSE)\n"
|
|
" - 691724 virt-inspector reports unknown filesystem /dev/vda1\n"
|
|
" - 692545 inspect-list-applications fails to detect 32 bit apps installed "
|
|
"under WOW64 emulator on 64 bit Windows\n"
|
|
" - 693324 sfdisk's python interface only accepts lists of type 'list' for "
|
|
"the lines parameter\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../guestfs-release-notes.pod:2099
|
|
msgid "Release notes for libguestfs 1.8"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:2101
|
|
msgid ""
|
|
"These release notes only cover the differences from the previous stable/dev "
|
|
"branch split (1.6.0). For detailed changelogs, please see the git "
|
|
"repository, or the ChangeLog file distributed in the tarball."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2107
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Support and packages for Debian and Ubuntu.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2109
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Daily builds from git repository on Debian and Ubuntu to reduce risk\n"
|
|
" of regressions.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2112
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Port to ArchLinux 'pacman' (thanks Thomas S Hatch).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2114
|
|
#, no-wrap
|
|
msgid ""
|
|
" - The following tools have been rewritten in C (originally in Perl):\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2116
|
|
#, no-wrap
|
|
msgid ""
|
|
" . virt-cat\n"
|
|
" . virt-df\n"
|
|
" . virt-inspector\n"
|
|
" . virt-ls\n"
|
|
" . virt-rescue\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2122
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Some C tools support encrypted guests automatically. This is\n"
|
|
" supported in: guestfish, guestmount, virt-cat, virt-inspector,\n"
|
|
" virt-ls.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2126
|
|
#, no-wrap
|
|
msgid ""
|
|
" - New tool virt-filesystems (in C) which is a replacement for\n"
|
|
" virt-list-filesystems and virt-list-partitions, and has a superset\n"
|
|
" of the functionality of those tools.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2130
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish, guestmount and the C tools use unified command line option\n"
|
|
" parsing, so they support many common options such as '-a disk.img',\n"
|
|
" '-d libvirt-domain', '-x', '-v'. The old command line option\n"
|
|
" parsing is preserved for compatibility in scripts etc.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2135
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish no longer has any dependencies on Perl\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2137
|
|
#, no-wrap
|
|
msgid ""
|
|
" - New man pages containing programming examples: guestfs-examples(3) "
|
|
"(C/C++),\n"
|
|
" guestfs-ocaml(3), guestfs-python(3), guestfs-ruby(3).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2140
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Trace mode prints return values from API functions.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2142
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-inspector can list applications installed in Windows guests, along\n"
|
|
" with a great deal of information about those applications.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2145
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Add support for inspecting: Linux Mint, Mandriva, FreeBSD.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2147
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish --rw option (with no effect currently) to make potentially\n"
|
|
" dangerous write access explicit.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2150
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish --listen --csh for compatibility with csh, tcsh (thanks\n"
|
|
" Eric Blake).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2153
|
|
#, no-wrap
|
|
msgid ""
|
|
" - The first upstream version that introduced each API function is now\n"
|
|
" documented in guestfs(3).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2156
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfs_last_errno allows you to retrieve the errno from the\n"
|
|
" daemon, correctly translated to the local operating system.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2159
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Functions can now have optional parameters.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2161
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Progress bars and progress notifications can now happen for upload\n"
|
|
" commands.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2164
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Appliance builder more careful about not leaving temporary files\n"
|
|
" around in /tmp.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2167
|
|
#, no-wrap
|
|
msgid ""
|
|
" - getfattr/setfattr commands added to virt-rescue.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2169
|
|
#, no-wrap
|
|
msgid ""
|
|
" - ROADMAP file covers roadmap and goals for future releases.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2173
|
|
#, no-wrap
|
|
msgid ""
|
|
" - New SECURITY section in guestfs(3) API documentation.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2175
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-inspector no longer runs any guest commands.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2177
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Inspection code is more careful about avoiding very large files\n"
|
|
" from guests which might previously have caused a denial of service.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2180
|
|
#, no-wrap
|
|
msgid ""
|
|
" - FUSE calls into guestmount are now traced when using guestmount -x.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2184
|
|
#, no-wrap
|
|
msgid ""
|
|
" - add-domain\n"
|
|
" - add-drive-opts\n"
|
|
" - getxattr\n"
|
|
" - inspect-get-hostname\n"
|
|
" - inspect-get-package-format\n"
|
|
" - inspect-get-package-management\n"
|
|
" - inspect-get-roots\n"
|
|
" - inspect-list-applications\n"
|
|
" - lgetxattr\n"
|
|
" - mkfs-opts\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2197
|
|
#, no-wrap
|
|
msgid ""
|
|
" - C programs now only link precisely with the libraries that they use.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2199
|
|
#, no-wrap
|
|
msgid ""
|
|
" - PCRE, libmagic, hivex and libvirt libraries are now completely\n"
|
|
" optional for building.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2202
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Multiple memory leaks and file descriptor leaks fixed.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2204
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Add a POD wrapper to unify generation of man pages and HTML files\n"
|
|
" across all programs.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2207
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Source includes phony images of Fedora, Debian, Ubuntu and\n"
|
|
" Windows guests.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2210
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Ruby bindings have 'make install' rule.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2212
|
|
#, no-wrap
|
|
msgid ""
|
|
" - <guestfs.h> is now a single file.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2214
|
|
#, no-wrap
|
|
msgid ""
|
|
" - <guestfs.h> does not require XDR headers.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2216
|
|
#, no-wrap
|
|
msgid ""
|
|
" - ocaml xml-light library is no longer required to build (thanks\n"
|
|
" Maxim Koltsov).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2219
|
|
#, no-wrap
|
|
msgid ""
|
|
" - ./configure --disable-[...] for each language binding (thanks\n"
|
|
" Maxim Koltsov).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2222
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Old ocaml-viewer program removed (use guestfs-browser instead).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2224
|
|
#, no-wrap
|
|
msgid ""
|
|
" - New C API test type 'InitScratchFS' makes the tests run a little\n"
|
|
" more quickly.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2227
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Excluded packages in the appliance are now listed in a separate\n"
|
|
" file appliance/excludelist.in, and can be customized per-distro.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2232
|
|
#, no-wrap
|
|
msgid ""
|
|
" - 663407 readlink and readlinklist returns /sysroot/ in some paths\n"
|
|
" - 661280 virt-rescue: panic when shutting down: \"/sbin/reboot: No such "
|
|
"file or directory\"\n"
|
|
" - 657499 checksum: wrong check sum type causes umount to fail\n"
|
|
" - 655554 Whole disk paths are not made canonical by virt-inspector\n"
|
|
" - 654638 openssl updated to 1.0.0b libguestfs depends on exact file names\n"
|
|
" - 652796 ruby bindings not installed by 'make install', hence omitted from "
|
|
"the binary distribution\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../guestfs-release-notes.pod:2241
|
|
msgid "RELEASE NOTES FOR LIBGUESTFS 1.6"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:2243
|
|
msgid ""
|
|
"These release notes only cover the differences from the previous stable/dev "
|
|
"branch split (1.4.0). For detailed changelogs, please see the git "
|
|
"repository, or the ChangeLog file distributed in the tarball."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2249
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Use a new method for creating and caching the appliance. This\n"
|
|
" greatly improves the performance of libguestfs, often by a factor\n"
|
|
" of x 4 to x 5.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2253
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Support for guest inspection (like virt-inspector) via the ordinary\n"
|
|
" API and all language bindings. 'guestfish -i' option is as a side-\n"
|
|
" effect much quicker.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2257
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-inspector and core inspection API can now detect guests running:\n"
|
|
" Fedora, Debian, Ubuntu, Windows, Red Hat Enterprise Linux, CentOS,\n"
|
|
" Scientific Linux, Gentoo, Pardus, Arch Linux, MeeGo.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2261
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Support for LUKS whole-disk encryption in guests.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2263
|
|
#, no-wrap
|
|
msgid ""
|
|
" - PHP bindings.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2265
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Progress messages (and progress bars in guestfish and virt-resize)\n"
|
|
" for certain long-running operations.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2268
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-df is now much more efficient. Use '--one-per-guest' to restore\n"
|
|
" the old per-guest isolation behaviour.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2271
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish 'copy-in' and 'copy-out' commands for copying files and\n"
|
|
" directories recursively in and out of the guest.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2274
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish 'hexedit' command for doing binary edits to devices and\n"
|
|
" files.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2277
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Change guestfish -i syntax to allow commands to be specified on the\n"
|
|
" command line (retaining backwards compatibility).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2280
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish '-d <domain>' for adding disks from libvirt domains.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2282
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish '-N' option supports several new prepared disk image types:\n"
|
|
" lvfs : disk with LV formatted with filesystem\n"
|
|
" lv : disk with LV\n"
|
|
" bootroot : boot+root\n"
|
|
" bootrootlv : boot and root on LV\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2288
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish 'more' and 'edit' commands now work with arbitrary files.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2290
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish '--echo-keys' option allows you to echo keys/passphrases\n"
|
|
" while typing them.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2293
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestmount now supports -a / -d / -i options, like guestfish.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2295
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Use virtio-serial for communications with the appliance. This\n"
|
|
" also has a major performance benefit.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2298
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-edit '-b' option to create a backup of edited files.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2300
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-edit '-e' option for non-interactive edits to files.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2302
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Ability to capture core dumps from the appliance (thanks Matthew "
|
|
"Booth).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2304
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-rescue now shuts down cleanly (thanks Matthew Booth).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2306
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-rescue now has a --network option to enable network access.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2308
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-resize can now handle guests which use GPT partition table format.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2310
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-resize has better support for shrinking guests.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2312
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-resize supports qcow2-format guests.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2314
|
|
#, no-wrap
|
|
msgid ""
|
|
" - $TMPDIR can be used to override almost all temporary directory usage.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2316
|
|
#, no-wrap
|
|
msgid ""
|
|
" - OCaml users can use an alternate OO-style of coding, eg. g#launch ()\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2318
|
|
#, no-wrap
|
|
msgid ""
|
|
" - The API supports calls which take optional parameters, eg.\n"
|
|
" $g->add_drive_opts (\"disk\", readonly => 1);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2321
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Trace output now escapes and shortens large strings (thanks\n"
|
|
" Matthew Booth).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2324
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Autosync is now on by default, resulting in more reliable behaviour\n"
|
|
" when the handle is closed.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2327
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-df --uuid option allows you to follow a domain across migration\n"
|
|
" and renaming.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2330
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Translations of manual pages.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2334
|
|
#, no-wrap
|
|
msgid ""
|
|
" - CVE-2010-3851 libguestfs: missing disk format specifier when adding a "
|
|
"disk\n"
|
|
" https://www.redhat.com/archives/libguestfs/2010-October/msg00036.html\n"
|
|
" This is comprehensively fixed in this release, and the fix will be\n"
|
|
" backported to the other stable branches after more testing.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2339
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-inspector no longer relies on untrusted guest code to list\n"
|
|
" applications in some guests.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2344
|
|
#, no-wrap
|
|
msgid ""
|
|
" download-offset, file-architecture, findfs-label, findfs-uuid,\n"
|
|
" inspect-os, inspect-get-arch, inspect-get-distro,\n"
|
|
" inspect-get-filesystems, inspect-get-major-version,\n"
|
|
" inspect-get-minor-version, inspect-get-mountpoints,\n"
|
|
" inspect-get-product-name, inspect-get-type, is-blockdev, is-chardev,\n"
|
|
" is-fifo, is-lv, is-socket, is-symlink, list-filesystems, luks-add-key,\n"
|
|
" luks-close, luks-format, luks-format-cipher, luks-kill-slot,\n"
|
|
" luks-open, luks-open-ro, lvm-clear-filter, lvm-canonical-lv-name,\n"
|
|
" lvm-set-filter, part-to-dev, pread-device, pwrite-device,\n"
|
|
" upload-offset\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2357
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Use size_t for loop iterators.\n"
|
|
" - Refactor the library code into separate files.\n"
|
|
" - Refactor the generator code into separate files.\n"
|
|
" - Generate guestfish commands.\n"
|
|
" - guestfish & guestmount options processing is unified.\n"
|
|
" - Protocol changes:\n"
|
|
" error message size increased to 64K\n"
|
|
" send errno to library\n"
|
|
" - Add 'make bindist' to make a binary distribution.\n"
|
|
" - Cleaner behaviour under valgrind.\n"
|
|
" - More testing of the guestfish command line options and libvirt\n"
|
|
" integration.\n"
|
|
" - The Perl inspection code is no longer used by any of the tools.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2373
|
|
#, no-wrap
|
|
msgid ""
|
|
" - 646822 libguestfs trace mode should not print long binary strings\n"
|
|
" - 646821 virt-df should have --uuid option\n"
|
|
" - 646432 /dev/mapper paths should not be returned from "
|
|
"guestfs_mountpoints\n"
|
|
" - 643624 libguestfs tools documentation should describe how to quote guest "
|
|
"domain names from shell\n"
|
|
" - 642934 No way to specify disk format when adding a disk to libguestfs\n"
|
|
" - 642933 guestfs_list_filesystems should be used in all possible places\n"
|
|
" - 642932 guestmount options should match guestfish options\n"
|
|
" - 642930 virt-inspector (Sys::Guestfs::Lib) should use C inspection APIs\n"
|
|
" - 642929 C inspection code should ignore /dev/fd* in /etc/fstab\n"
|
|
" - 642826 virt-resize converts any other image format to raw without "
|
|
"notifying user, instructions do not account for this\n"
|
|
" - 640961 Document that grub-install might be needed for old Linux guests "
|
|
"after virt-resize\n"
|
|
" - 639986 virt-df --csv does not properly quote \" in libvirt domain names\n"
|
|
" - 639405 Interrupted cached appliance creation leaves libguestfs unusable\n"
|
|
" - 638901 Appliance filename should not contain repository name\n"
|
|
" - 638899 /dev/mapper paths should not be returned from C inspection APIs\n"
|
|
" - 636918 Updates to Spanish translation\n"
|
|
" - 636061 [abrt] guestfish-1.2.11-1.fc12: malloc_consolidate: Process "
|
|
"/usr/bin/guestfish was killed by signal 11 (SIGSEGV)\n"
|
|
" - 635969 glob echo mkfs ext2 /dev/vd[b-t]1 prints garbage\n"
|
|
" - 634246 guestfs_part_get_parttype returns \"loop\" when run against a "
|
|
"partition, LV or filesystem\n"
|
|
" - 633766 virt-resize --shrink fails\n"
|
|
" - 633357 Updates to Spanish translation\n"
|
|
" - 633096 virt-resize calculates block device size incorrectly, doesn't work "
|
|
"with qcow2 target\n"
|
|
" - 629593 Dutch translation added\n"
|
|
" - 627556 Updates to Spanish translations of libguestfs\n"
|
|
" - 626843 Updates to Spanish translations\n"
|
|
" - 619793 [RFE] Need a way to determine if a particular block device is a "
|
|
"logical volume\n"
|
|
" - 618556 virt-rescue return none zero value when exit\n"
|
|
" - 617200 mount operation failed and hung on some images which running in "
|
|
"read-only mode\n"
|
|
" - 610880 libguestfs should set broader read perms on tmpdir, so works in "
|
|
"some situations when executed with umask 077\n"
|
|
" - 599503 document that mkmountpoint and umount-all cannot be mixed\n"
|
|
" - 571714 Running virt-df on disk image relabels it, so qemu can no longer "
|
|
"write to it.\n"
|
|
" - 502533 Updated Polish translation of libguestfs\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../guestfs-release-notes.pod:2408
|
|
msgid "RELEASE NOTES FOR LIBGUESTFS 1.4"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:2410
|
|
msgid ""
|
|
"These release notes only cover the differences from the previous stable/dev "
|
|
"branch split (1.2.0). For detailed changelogs, please see the git "
|
|
"repository, or the ChangeLog file distributed in the tarball."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2416
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish lets you choose a prepared disk image, eg:\n"
|
|
" guestfish -N fs:ext4\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2419
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Add write support to guestmount (FUSE) module.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2421
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-resize can now resize the content of partitions and logical\n"
|
|
" volumes in the guest, and we have better support for shrinking guests.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2424
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Bash tab-completion script for guestfish.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2426
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Add ZFS support to virt-rescue.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2428
|
|
#, no-wrap
|
|
msgid ""
|
|
" - New tool 'virt-make-fs' for creating filesystems with content.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2430
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Allow suffixes on any guestfish number parameter, eg. \"1M\".\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2432
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish 'man' command opens the manual page.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2434
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish supports a \"heredoc\" syntax for uploading files:\n"
|
|
" upload -<<_end_ /foo\n"
|
|
" content\n"
|
|
" _end_\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2439
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Some guestfish commands now print their output in octal or hex\n"
|
|
" where appropriate (RHBZ#583242).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2442
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Allow dash prefix on guestfish command line. This ignores any\n"
|
|
" error from the second command: (RHBZ#578407)\n"
|
|
" guestfish -- cmd1 : -cmd2 : cmd3\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2446
|
|
#, no-wrap
|
|
msgid ""
|
|
" - guestfish -h / help command now returns an error for non-existent\n"
|
|
" commands (RHBZ#597145).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2449
|
|
#, no-wrap
|
|
msgid ""
|
|
" - New 'supported' command in guestfish to list optional groups of\n"
|
|
" commands which are supported by the daemon / configuration.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2452
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-inspector and guestfish -i now work for filenames which\n"
|
|
" contain spaces (RHBZ#507810).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2455
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Change the protocol to use link-local addresses, to avoid\n"
|
|
" conflicting with any address that the host might be using\n"
|
|
" (RHBZ#588763).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2459
|
|
#, no-wrap
|
|
msgid ""
|
|
" - libguestfs now sets the correct time and timezone on filesystem\n"
|
|
" modifications.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2462
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Sort the domains into alphabetical order in virt-df.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2464
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Make mkfs-b command work for FAT and NTFS by mapping the blocksize\n"
|
|
" parameter to the cluster size (RHBZ#599464).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2467
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Add version numbers to Perl modules (RHBZ#521674).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2469
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Localization now works for all the libguestfs tools (RHBZ#559963).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2471
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Tools now support filesystem-on-image VMs (RHBZ#590167).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2473
|
|
#, no-wrap
|
|
msgid ""
|
|
" - virt-list-partitions has a '-t' option to show the total size of disks.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2475
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Include extra Augeas lenses in the supermin appliance (Matthew Booth).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2477
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Add error and close callbacks.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2479
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Add explicit close method in the Perl API.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2481
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Multiple fixes for RHEL 5 compatibility.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2483
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Multiple fixes for Debian/Ubuntu compatibility.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2485
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Multiple revisions to improve the documentation.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2489
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Fix a potential DoS in virt-inspector and virt-v2v if a specially\n"
|
|
" crafted disk image contained a char device in place of one of the\n"
|
|
" configuration files that we read under /etc (RHBZ#582484).\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2495
|
|
#, no-wrap
|
|
msgid ""
|
|
" - aug-clear - clear Augeas path\n"
|
|
" - available-all-groups - return a list of all optional groups\n"
|
|
" - base64-in - upload base64-encoded data to file\n"
|
|
" - base64-out - download file and encode as base64\n"
|
|
" - checksum-device - compute checksums on the contents of a device\n"
|
|
" - checksums-out - compute checksums of multiple files in a directory\n"
|
|
" - debug-upload - upload a file to the appliance\n"
|
|
" - fallocate64 - preallocate a file in the guest filesystem\n"
|
|
" - fill-pattern - fill a file with a repeating pattern of bytes\n"
|
|
" - get-umask - get the current umask\n"
|
|
" - lvresize-free - expand an LV to fill free space\n"
|
|
" - ntfsresize - resize an NTFS filesystem\n"
|
|
" - ntfsresize-size - resize an NTFS filesystem (with size)\n"
|
|
" - part-del - delete a partition\n"
|
|
" - part-get-bootable - get the bootable flag of a partition\n"
|
|
" - part-get-mbr-id - get the MBR type byte of a partition\n"
|
|
" - part-set-mbr-id - set the MBR type byte of a partition\n"
|
|
" - pvresize-size - resize a physical volume (with size)\n"
|
|
" - pwrite - write to part of a file\n"
|
|
" - resize2fs-size - resize an ext2/3/4 filesystem (with size)\n"
|
|
" - txz-in - unpack compressed tarball to directory (RHBZ#580556)\n"
|
|
" - txz-out - pack directory into compressed tarball (RHBZ#580556)\n"
|
|
" - vfs-label - get the filesystem label\n"
|
|
" - vfs-uuid - get the filesystem UUID\n"
|
|
" - vgscan - rescan for LVM physical volumes, volume groups and logical "
|
|
"volumes\n"
|
|
" - write - create a new file\n"
|
|
" - zero-device - write zeroes to an entire device\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2525
|
|
#, no-wrap
|
|
msgid ""
|
|
" - Extend the generator to support testing optional features.\n"
|
|
" - Stricter checks on input parameters to many calls (RHBZ#501893 "
|
|
"RHBZ#501894)\n"
|
|
" - Extend the protocol to support sending arbitrary 8 bit data buffers.\n"
|
|
" - Ship 'BUGS' file with releases. This is a summary of the bugs in\n"
|
|
" the Red Hat Bugzilla database.\n"
|
|
" - Ship 'RELEASE-NOTES' file with releases, containing release notes.\n"
|
|
" - Unify supermin appliance building into one place, in febootstrap 2.7.\n"
|
|
" - Fix the protocol code to handle the case where both ends send cancel\n"
|
|
" messages at the same time.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../guestfs-release-notes.pod:2537
|
|
#, no-wrap
|
|
msgid ""
|
|
" - 612178 guestfish: using -m option in conjunction with --listen option "
|
|
"causes appliance to die\n"
|
|
" - 610880 libguestfs should set broader read perms on tmpdir, so works in "
|
|
"some situations when executed with umask 077\n"
|
|
" - 604691 OCaml bindings are not thread safe\n"
|
|
" - 603870 Updates to Spanish translation\n"
|
|
" - 602592 [RFE] expose guestfs_close in perl bindings\n"
|
|
" - 600977 virt-df -h --csv \"Argument .. isn't numeric in printf\"\n"
|
|
" - 599464 mkfs-b does not support vfat/ntfs\n"
|
|
" - 598807 add_cdrom does not work in RHEL 6\n"
|
|
" - 598309 part-list and several other cmd failed on libguestfs on RHEL5\n"
|
|
" - 597145 guestfish 'help' command should indicate error in exit status with "
|
|
"an unknown command\n"
|
|
" - 597135 guestfish write-file cmd does not check \"size\" parameter\n"
|
|
" - 597118 A warning should be given in the help of mke2journal-L for the "
|
|
"length of label\n"
|
|
" - 597112 get-e2uuid should use blkid instead of \"tune2fs -l\" to get "
|
|
"filesystem UUID\n"
|
|
" - 596776 virt-inspector doesn't discover modprobe aliases on RHEL 3 "
|
|
"guests\n"
|
|
" - 596763 Updates to Spanish translation\n"
|
|
" - 593292 Updates to Spanish translation\n"
|
|
" - 592883 can not edit files on images mounted with guestmount cmd\n"
|
|
" - 592360 Updates to Spanish translation\n"
|
|
" - 591250 virt-tar prints \"tar_in: tar subcommand failed on directory\" if "
|
|
"the archive is compressed or not in the right format\n"
|
|
" - 591155 virt-tar prints \"tar_in: tar subcommand failed on directory\" if "
|
|
"a disk image is not writable\n"
|
|
" - 591142 virt-inspector should give an error for unrecognized disk images\n"
|
|
" - 590167 virt-inspector and other virt tools should be able to handle "
|
|
"filesystem-on-image VMs\n"
|
|
" - 589039 guestfish read-file cmd will cause daemon hang when read large "
|
|
"files\n"
|
|
" - 588851 guestfs_launch() returns -1, but guestfs_last_error() == NULL\n"
|
|
" - 588763 libguestfs should use non-public or link-local addresses for "
|
|
"appliance network\n"
|
|
" - 588733 Updates to Spanish translation\n"
|
|
" - 588651 guestfish 'strings-e' cmd does not give proper error message or "
|
|
"hint\n"
|
|
" - 587484 lvresize can't reduce size of a volumn\n"
|
|
" - 585961 Updates to Spanish translation\n"
|
|
" - 585223 ntfsresize should support shrinking filesystems\n"
|
|
" - 585222 pvresize should support shrinking PVs\n"
|
|
" - 585221 resize2fs should support shrinking filesystems\n"
|
|
" - 584038 Updates to Spanish translation\n"
|
|
" - 583554 [FEAT] mknod-mode command is needed to set mode explicitly\n"
|
|
" - 583242 [RFE] guestfish should print outputs in a suitable base (eg. octal "
|
|
"for modes)\n"
|
|
" - 582993 guestfish eats words when tab completing case (in)sensitive "
|
|
"paths\n"
|
|
" - 582953 Misleading help information about lvcreate command\n"
|
|
" - 582948 mknod command doesn't make block, character or FIFO devices\n"
|
|
" - 582929 mknod doesn't check for invalid mode\n"
|
|
" - 582901 guestfish chmod/umask commands do not check invalid mode value\n"
|
|
" - 582899 guestfish:sparse is missed from command autocomplete list\n"
|
|
" - 582891 [Feature Request] behavior and return value of guestfish umask cmd "
|
|
"should be changed\n"
|
|
" - 582548 [mknod] umask shouldn't take effect when mode is set explicitly\n"
|
|
" - 582484 some guestfish sub commands can not handle special files "
|
|
"properly\n"
|
|
" - 582252 Updates to Spanish translation\n"
|
|
" - 581501 Updates to Spanish translation\n"
|
|
" - 580650 virt-inspector warns \"No grub default specified at "
|
|
"/usr/lib/perl5/Sys/Guestfs/Lib.pm at [...]\"\n"
|
|
" - 580556 request for libguestfs to support .txz tarballs\n"
|
|
" - 580246 tar-in command hangs if uploading more than available space\n"
|
|
" - 580016 aug-ls in guestfish does not take augeas variable as argument\n"
|
|
" - 579664 guestfish doesn't report error when there is not enough space for "
|
|
"image allocation\n"
|
|
" - 579608 multiple commands in guestfish can not work for symbol links\n"
|
|
" - 579155 libguestfs hangs if qemu doesn't start (in null vmchannel mode)\n"
|
|
" - 578407 the prefix '-' in sub-command isn't handled by guestfish in remote "
|
|
"control mode\n"
|
|
" - 576879 libguestfs protocol loses synchronization if you 'upload' before "
|
|
"mounting disks\n"
|
|
" - 559963 libguestfs Perl programs do set locale, but still localization "
|
|
"doesn't work\n"
|
|
" - 521674 Perl modules are unversioned, but should carry version numbers\n"
|
|
" - 516096 Race condition in test_swapon_label_0: /sbin/blockdev: BLKRRPART: "
|
|
"Device or resource busy\n"
|
|
" - 507810 guestfish -i / virt-inspector cannot handle spaces in filenames\n"
|
|
" - 502533 Updated Polish translation of libguestfs\n"
|
|
" - 501894 Some String parameters should be OptString\n"
|
|
" - 501893 String parameters should be checked for != NULL\n"
|
|
" - 501889 write-file does not support strings containing ASCII NUL\n"
|
|
" - 484986 grub-install fails on virtio disk\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../guestfs-release-notes.pod:2604
|
|
msgid "RELEASE NOTES FOR HISTORICAL VERSIONS OF LIBGUESTFS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:2606
|
|
msgid ""
|
|
"Before 2010 libguestfs did not have official release notes or a formalized "
|
|
"version numbering system. However these are links to historically "
|
|
"significant versions."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:2612
|
|
msgid "2009-11-10 (1.0.78)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:2614
|
|
msgid "L<https://www.redhat.com/archives/libguestfs/2009-November/msg00095.html>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:2616
|
|
msgid "2009-09-13 (1.0.67)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:2618
|
|
msgid "L<https://www.redhat.com/archives/libguestfs/2009-August/msg00281.html>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:2620
|
|
msgid "2009-07-23 (1.0.64)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:2622
|
|
msgid "L<https://www.redhat.com/archives/libguestfs/2009-July/msg00059.html>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:2624
|
|
msgid "2009-07-14 (1.0.59)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:2626
|
|
msgid "L<https://www.redhat.com/archives/libguestfs/2009-July/msg00023.html>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../guestfs-release-notes.pod:2628
|
|
msgid "2009-04-01 (the initial announcement)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:2630
|
|
msgid "L<http://rwmj.wordpress.com/2009/04/01/libguestfs-access-and-modify-virtual-machine-disk-images/>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:2636
|
|
msgid ""
|
|
"L<guestfs-examples(1)>, L<guestfs-faq(1)>, L<guestfs-performance(1)>, "
|
|
"L<guestfs-recipes(1)>, L<guestfs-testing(1)>, L<guestfs(3)>, "
|
|
"L<guestfish(1)>, L<http://libguestfs.org/>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../guestfs-release-notes.pod:2647
|
|
msgid "Richard W.M. Jones"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:5
|
|
msgid ""
|
|
"virt-inspector - Display operating system version and other information "
|
|
"about a virtual machine"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../inspector/virt-inspector.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-inspector [--options] -d domname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../inspector/virt-inspector.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../inspector/virt-inspector.pod:15
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-inspector domname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:147
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-inspector disk.img [disk.img ...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:21
|
|
msgid ""
|
|
"B<virt-inspector> examines a virtual machine or disk image and tries to "
|
|
"determine the version of the operating system and other information about "
|
|
"the virtual machine."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:25
|
|
msgid "Virt-inspector produces XML output for feeding into other programs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:27
|
|
msgid ""
|
|
"In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
|
|
"the libvirt domain (see: C<virsh list --all>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:30
|
|
msgid ""
|
|
"You can also run virt-inspector directly on disk images from a single "
|
|
"virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
|
|
"has several block devices, in which case you should list several I<-a> "
|
|
"options one after another, with the first corresponding to the guest's "
|
|
"C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:37
|
|
msgid ""
|
|
"You can also run virt-inspector on install disks, live CDs, bootable USB "
|
|
"keys and similar."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:40
|
|
msgid ""
|
|
"Virt-inspector can only inspect and report upon I<one domain at a time>. To "
|
|
"inspect several virtual machines, you have to run virt-inspector several "
|
|
"times (for example, from a shell script for-loop)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:45
|
|
msgid ""
|
|
"Because virt-inspector needs direct access to guest images, it won't "
|
|
"normally work over remote libvirt connections."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:48
|
|
msgid ""
|
|
"All of the information available from virt-inspector is also available "
|
|
"through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
|
|
"The same information can also be fetched using guestfish or via libguestfs "
|
|
"bindings in many programming languages (see L</GETTING INSPECTION DATA FROM "
|
|
"THE LIBGUESTFS API>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:80
|
|
msgid ""
|
|
"Libvirt is only used if you specify a C<domname> on the command line. If "
|
|
"you specify guest block devices directly (I<-a>), then libvirt is not used "
|
|
"at all."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:93
|
|
msgid ""
|
|
"When prompting for keys and passphrases, virt-inspector 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: textblock
|
|
#: ../inspector/virt-inspector.pod:102 ../tools/virt-list-filesystems:94 ../tools/virt-list-partitions:95 ../tools/virt-tar:142 ../tools/virt-win-reg:143
|
|
msgid ""
|
|
"Specify the format of disk images given on the command line. If this is "
|
|
"omitted then the format is autodetected from the content of the disk image."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:106 ../tools/virt-list-filesystems:98 ../tools/virt-list-partitions:99 ../tools/virt-tar:146 ../tools/virt-win-reg:147
|
|
msgid ""
|
|
"If disk images are requested from libvirt, then this program asks libvirt "
|
|
"for this information. In this case, the value of the format parameter is "
|
|
"ignored."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:110 ../resize/virt-resize.pod:405 ../resize/virt-resize.pod:501 ../sparsify/virt-sparsify.pod:187 ../tools/virt-list-filesystems:102 ../tools/virt-list-partitions:103 ../tools/virt-tar:150 ../tools/virt-win-reg:151
|
|
msgid ""
|
|
"If working with untrusted raw-format guest disk images, you should ensure "
|
|
"the format is always specified."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../inspector/virt-inspector.pod:134
|
|
msgid "B<--xpath> query"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:136
|
|
msgid ""
|
|
"Perform an XPath query on the XML on stdin, and print the result on stdout. "
|
|
"In this mode virt-inspector simply runs an XPath query; all other inspection "
|
|
"functions are disabled. See L</XPATH QUERIES> below for some examples."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:145
|
|
msgid "Previous versions of virt-inspector allowed you to write either:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../inspector/virt-inspector.pod:151
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-inspector guestname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../inspector/virt-inspector.pod:159
|
|
msgid "XML FORMAT"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:161
|
|
msgid ""
|
|
"The virt-inspector XML is described precisely in a RELAX NG schema file "
|
|
"C<virt-inspector.rng> which is supplied with libguestfs. This section is "
|
|
"just an overview."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:165
|
|
msgid ""
|
|
"The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
|
|
"more E<lt>operatingsystemE<gt> elements. You would only see more than one "
|
|
"E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
|
|
"which is vanishingly rare in real world VMs."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../inspector/virt-inspector.pod:170
|
|
msgid "E<lt>operatingsystemE<gt>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:172
|
|
msgid ""
|
|
"In the E<lt>operatingsystemE<gt> tag are various optional fields that "
|
|
"describe the operating system, its architecture, the descriptive \"product "
|
|
"name\" string, the type of OS and so on, as in this example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../inspector/virt-inspector.pod:176
|
|
#, no-wrap
|
|
msgid ""
|
|
" <operatingsystems>\n"
|
|
" <operatingsystem>\n"
|
|
" <root>/dev/sda2</root>\n"
|
|
" <name>windows</name>\n"
|
|
" <arch>i386</arch>\n"
|
|
" <distro>windows</distro>\n"
|
|
" <product_name>Windows 7 Enterprise</product_name>\n"
|
|
" <product_variant>Client</product_variant>\n"
|
|
" <major_version>6</major_version>\n"
|
|
" <minor_version>1</minor_version>\n"
|
|
" <windows_systemroot>/Windows</windows_systemroot>\n"
|
|
" <format>installed</format>\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:189
|
|
msgid ""
|
|
"In brief, E<lt>nameE<gt> is the class of operating system (something like "
|
|
"C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
|
|
"but many other distros are recognized) and E<lt>archE<gt> is the guest "
|
|
"architecture. The other fields are fairly self-explanatory, but because "
|
|
"these fields are taken directly from the libguestfs inspection API you can "
|
|
"find precise information from L<guestfs(3)/INSPECTION>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:197
|
|
msgid ""
|
|
"The E<lt>rootE<gt> element is the root filesystem device, but from the point "
|
|
"of view of libguestfs (block devices may have completely different names "
|
|
"inside the VM itself)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../inspector/virt-inspector.pod:201
|
|
msgid "E<lt>mountpointsE<gt>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:203
|
|
msgid ""
|
|
"Un*x-like guests typically have multiple filesystems which are mounted at "
|
|
"various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
|
|
"element which looks like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../inspector/virt-inspector.pod:207
|
|
#, no-wrap
|
|
msgid ""
|
|
" <operatingsystems>\n"
|
|
" <operatingsystem>\n"
|
|
" ...\n"
|
|
" <mountpoints>\n"
|
|
" <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
|
|
" <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
|
|
" </mountpoints>\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:215
|
|
msgid ""
|
|
"As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
|
|
"and may have completely different names inside the guest. Only mountable "
|
|
"filesystems appear in this list, not things like swap devices."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../inspector/virt-inspector.pod:220
|
|
msgid "E<lt>filesystemsE<gt>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:222
|
|
msgid ""
|
|
"E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
|
|
"filesystems belonging to the guest, including swap and empty partitions. "
|
|
"(In the rare case of a multi-boot guest, it covers filesystems belonging to "
|
|
"this OS or shared with this OS and other OSes)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:228
|
|
msgid "You might see something like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../inspector/virt-inspector.pod:230
|
|
#, no-wrap
|
|
msgid ""
|
|
" <operatingsystems>\n"
|
|
" <operatingsystem>\n"
|
|
" ...\n"
|
|
" <filesystems>\n"
|
|
" <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
|
|
" <type>ext4</type>\n"
|
|
" <label>Fedora-13-x86_64</label>\n"
|
|
" <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
|
|
" </filesystem>\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:240
|
|
msgid ""
|
|
"The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
|
|
"the label, and the UUID."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../inspector/virt-inspector.pod:243
|
|
msgid "E<lt>applicationsE<gt>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:245
|
|
msgid ""
|
|
"The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
|
|
"and E<lt>applicationsE<gt> describe applications installed in the virtual "
|
|
"machine."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:249
|
|
msgid ""
|
|
"E<lt>package_formatE<gt>, if present, describes the packaging system used. "
|
|
"Typical values would be C<rpm> and C<deb>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:252
|
|
msgid ""
|
|
"E<lt>package_managementE<gt>, if present, describes the package manager. "
|
|
"Typical values include C<yum>, C<up2date> and C<apt>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:255
|
|
msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../inspector/virt-inspector.pod:258
|
|
#, no-wrap
|
|
msgid ""
|
|
" <operatingsystems>\n"
|
|
" <operatingsystem>\n"
|
|
" ...\n"
|
|
" <applications>\n"
|
|
" <application>\n"
|
|
" <name>coreutils</name>\n"
|
|
" <version>8.5</version>\n"
|
|
" <release>1</release>\n"
|
|
" </application>\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:268
|
|
msgid ""
|
|
"The version and release fields may not be available for some types guests. "
|
|
"Other fields are possible, see "
|
|
"L<guestfs(3)/guestfs_inspect_list_applications>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../inspector/virt-inspector.pod:272
|
|
msgid "E<lt>drive_mappingsE<gt>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:274
|
|
msgid ""
|
|
"For operating systems like Windows which use drive letters, virt-inspector "
|
|
"is able to find out how drive letters map to filesystems."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../inspector/virt-inspector.pod:278
|
|
#, no-wrap
|
|
msgid ""
|
|
" <operatingsystems>\n"
|
|
" <operatingsystem>\n"
|
|
" ...\n"
|
|
" <drive_mappings>\n"
|
|
" <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
|
|
" <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
|
|
" </drive_mappings>\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:286
|
|
msgid ""
|
|
"In the example above, drive C maps to the filesystem on the second partition "
|
|
"on the first disk, and drive E maps to the filesystem on the first partition "
|
|
"on the second disk."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:290
|
|
msgid ""
|
|
"Note that this only covers permanent local filesystem mappings, not things "
|
|
"like network shares. Furthermore NTFS volume mount points may not be listed "
|
|
"here."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../inspector/virt-inspector.pod:294
|
|
msgid "E<lt>iconE<gt>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:296
|
|
msgid ""
|
|
"Virt-inspector is sometimes able to extract an icon or logo for the guest. "
|
|
"The icon is returned as base64-encoded PNG data. Note that the icon can be "
|
|
"very large and high quality."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../inspector/virt-inspector.pod:300
|
|
#, no-wrap
|
|
msgid ""
|
|
" <operatingsystems>\n"
|
|
" <operatingsystem>\n"
|
|
" ...\n"
|
|
" <icon>\n"
|
|
" iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
|
|
" [... many lines of base64 data ...]\n"
|
|
" </icon>\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:308
|
|
msgid ""
|
|
"To display the icon, you have to extract it and convert the base64 data back "
|
|
"to a binary file. Use an XPath query or simply an editor to extract the "
|
|
"data, then use the coreutils L<base64(1)> program to do the conversion back "
|
|
"to a PNG file:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../inspector/virt-inspector.pod:313
|
|
#, no-wrap
|
|
msgid ""
|
|
" base64 -i -d < icon.data > icon.png\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../inspector/virt-inspector.pod:315
|
|
msgid "INSPECTING INSTALL DISKS, LIVE CDs"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:317
|
|
msgid ""
|
|
"Virt-inspector can detect some operating system installers on install disks, "
|
|
"live CDs, bootable USB keys and more."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:320
|
|
msgid ""
|
|
"In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
|
|
"fields may be present to indicate a live CD, network installer, or one part "
|
|
"of a multipart CD. For example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../inspector/virt-inspector.pod:324
|
|
#, no-wrap
|
|
msgid ""
|
|
" <operatingsystems>\n"
|
|
" <operatingsystem>\n"
|
|
" <root>/dev/sda</root>\n"
|
|
" <name>linux</name>\n"
|
|
" <arch>i386</arch>\n"
|
|
" <distro>ubuntu</distro>\n"
|
|
" <product_name>Ubuntu 10.10 "Maverick "
|
|
"Meerkat"</product_name>\n"
|
|
" <major_version>10</major_version>\n"
|
|
" <minor_version>10</minor_version>\n"
|
|
" <format>installer</format>\n"
|
|
" <live/>\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../inspector/virt-inspector.pod:336
|
|
msgid "XPATH QUERIES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:338
|
|
msgid ""
|
|
"Virt-inspector includes built in support for running XPath queries. The "
|
|
"reason for including XPath support directly in virt-inspector is simply that "
|
|
"there are no good and widely available command line programs that can do "
|
|
"XPath queries. The only good one is L<xmlstarlet(1)> and that is not "
|
|
"available on Red Hat Enterprise Linux."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:345
|
|
msgid ""
|
|
"To perform an XPath query, use the I<--xpath> option. Note that in this "
|
|
"mode, virt-inspector simply reads XML from stdin and outputs the query "
|
|
"result on stdout. All other inspection features are disabled in this mode."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../inspector/virt-inspector.pod:352
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
|
|
" <filesystems>\n"
|
|
" <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
|
|
" <type>ext4</type>\n"
|
|
" [...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../inspector/virt-inspector.pod:358
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ virt-inspector -d Guest | \\\n"
|
|
" virt-inspector --xpath "
|
|
"\"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
|
|
" ext4\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../inspector/virt-inspector.pod:362
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ virt-inspector -d Guest | \\\n"
|
|
" virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
|
|
" [displays the guest icon, if there is one]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../inspector/virt-inspector.pod:373
|
|
msgid "GETTING INSPECTION DATA FROM THE LIBGUESTFS API"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:375
|
|
msgid ""
|
|
"In early versions of libguestfs, virt-inspector was a large Perl script that "
|
|
"contained many heuristics for inspecting guests. This had several problems: "
|
|
"in order to do inspection from other tools (like guestfish) we had to call "
|
|
"out to this Perl script; and it privileged Perl over other languages that "
|
|
"libguestfs supports."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:381
|
|
msgid ""
|
|
"By libguestfs 1.8 we had rewritten the Perl code in C, and incorporated it "
|
|
"all into the core libguestfs API (L<guestfs(3)>). Now virt-inspector is "
|
|
"simply a thin C program over the core C API. All of the inspection "
|
|
"information is available from all programming languages that libguestfs "
|
|
"supports, and from guestfish."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:387
|
|
msgid "For a description of the C inspection API, read L<guestfs(3)/INSPECTION>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:390
|
|
msgid ""
|
|
"For example code using the C inspection API, look for C<inspect-vm.c> which "
|
|
"ships with libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:393
|
|
msgid ""
|
|
"C<inspect-vm.c> has also been translated into other languages. For example, "
|
|
"C<inspect_vm.pl> is the Perl translation, and there are other translations "
|
|
"for OCaml, Python, etc. See L<guestfs(3)/USING LIBGUESTFS WITH OTHER "
|
|
"PROGRAMMING LANGUAGES> for a list of man pages which contain this example "
|
|
"code."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../inspector/virt-inspector.pod:399
|
|
msgid "GETTING INSPECTION DATA FROM GUESTFISH"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:401
|
|
msgid ""
|
|
"If you use the guestfish I<-i> option, then the main C inspection API "
|
|
"L<guestfs(3)/guestfs_inspect_os> is called. This is equivalent to the "
|
|
"guestfish command C<inspect-os>. You can also call this guestfish command "
|
|
"by hand."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:406
|
|
msgid ""
|
|
"C<inspect-os> performs inspection on the current disk image, returning the "
|
|
"list of operating systems found. Each OS is represented by its root "
|
|
"filesystem device. In the majority of cases, this command prints nothing "
|
|
"(no OSes found), or a single root device, but beware that it can print "
|
|
"multiple lines if there are multiple OSes or if there is an install CD "
|
|
"attached to the guest."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../inspector/virt-inspector.pod:413
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ guestfish --ro -a F15x32.img\n"
|
|
" ><fs> run\n"
|
|
" ><fs> inspect-os\n"
|
|
" /dev/vg_f15x32/lv_root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:418
|
|
msgid "Using the root device, you can fetch further information about the guest:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../inspector/virt-inspector.pod:421
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><fs> inspect-get-type /dev/vg_f15x32/lv_root\n"
|
|
" linux\n"
|
|
" ><fs> inspect-get-distro /dev/vg_f15x32/lv_root\n"
|
|
" fedora\n"
|
|
" ><fs> inspect-get-major-version /dev/vg_f15x32/lv_root\n"
|
|
" 15\n"
|
|
" ><fs> inspect-get-product-name /dev/vg_f15x32/lv_root\n"
|
|
" Fedora release 15 (Lovelock)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:430
|
|
msgid ""
|
|
"Limitations of guestfish make it hard to assign the root device to a "
|
|
"variable (since guestfish doesn't have variables), so if you want to do this "
|
|
"reproducibly you are better off writing a script using one of the other "
|
|
"languages that the libguestfs API supports."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:435
|
|
msgid "To list applications, you have to first mount up the disks:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../inspector/virt-inspector.pod:437
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><fs> inspect-get-mountpoints /dev/vg_f15x32/lv_root\n"
|
|
" /: /dev/vg_f15x32/lv_root\n"
|
|
" /boot: /dev/vda1\n"
|
|
" ><fs> mount-ro /dev/vg_f15x32/lv_root /\n"
|
|
" ><fs> mount-ro /dev/vda1 /boot\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:443
|
|
msgid "and then call the inspect-list-applications API:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../inspector/virt-inspector.pod:445
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><fs> inspect-list-applications /dev/vg_f15x32/lv_root | head -28\n"
|
|
" [0] = {\n"
|
|
" app_name: ConsoleKit\n"
|
|
" app_display_name:\n"
|
|
" app_epoch: 0\n"
|
|
" app_version: 0.4.5\n"
|
|
" app_release: 1.fc15\n"
|
|
" app_install_path:\n"
|
|
" app_trans_path:\n"
|
|
" app_publisher:\n"
|
|
" app_url:\n"
|
|
" app_source_package:\n"
|
|
" app_summary:\n"
|
|
" app_description:\n"
|
|
" }\n"
|
|
" [1] = {\n"
|
|
" app_name: ConsoleKit-libs\n"
|
|
" app_display_name:\n"
|
|
" app_epoch: 0\n"
|
|
" app_version: 0.4.5\n"
|
|
" app_release: 1.fc15\n"
|
|
" app_install_path:\n"
|
|
" app_trans_path:\n"
|
|
" app_publisher:\n"
|
|
" app_url:\n"
|
|
" app_source_package:\n"
|
|
" app_summary:\n"
|
|
" app_description:\n"
|
|
" }\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:475
|
|
msgid ""
|
|
"To display an icon for the guest, note that filesystems must also be mounted "
|
|
"as above. You can then do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../inspector/virt-inspector.pod:478
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><fs> inspect-get-icon /dev/vg_f15x32/lv_root | display -\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../inspector/virt-inspector.pod:480
|
|
msgid "OLD VERSIONS OF VIRT-INSPECTOR"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:482
|
|
msgid ""
|
|
"As described above, early versions of libguestfs shipped with a different "
|
|
"virt-inspector program written in Perl (the current version is written in "
|
|
"C). The XML output of the Perl virt-inspector was different and it could "
|
|
"also output in other formats like text."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:487
|
|
msgid "The old virt-inspector is no longer supported or shipped with libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:490
|
|
msgid ""
|
|
"To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
|
|
"versions of virt-inspector with different names:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../inspector/virt-inspector.pod:493
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-inspector Old Perl version.\n"
|
|
" virt-inspector2 New C version.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:503
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
|
|
"L<base64(1)>, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../inspector/virt-inspector.pod:520
|
|
msgid "Matthew Booth L<mbooth@redhat.com>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../java/examples/guestfs-java.pod:5
|
|
msgid "guestfs-java - How to use libguestfs from Java"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../java/examples/guestfs-java.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" import com.redhat.et.libguestfs.*;\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../java/examples/guestfs-java.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" GuestFS g = new GuestFS ();\n"
|
|
" g.add_drive (\"disk.img\",\n"
|
|
" new HashMap<String,Object>() {\n"
|
|
" {\n"
|
|
" put (\"readonly\", Boolean.TRUE);\n"
|
|
" put (\"format\", \"raw\");\n"
|
|
" }\n"
|
|
" });\n"
|
|
" g.launch ();\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../java/examples/guestfs-java.pod:23
|
|
msgid ""
|
|
"This manual page documents how to call libguestfs from the Java 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<guestfs(3)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../java/examples/guestfs-java.pod:28 ../ocaml/examples/guestfs-ocaml.pod:53
|
|
msgid "CLOSING THE HANDLE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../java/examples/guestfs-java.pod:30
|
|
msgid ""
|
|
"The handle is closed when it is reaped by the garbage collector. Because "
|
|
"libguestfs handles include a lot of state, it is also possible to close (and "
|
|
"hence free) them explicitly by calling the C<close> method."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../java/examples/guestfs-java.pod:35 ../ocaml/examples/guestfs-ocaml.pod:60 ../python/examples/guestfs-python.pod:32 ../ruby/examples/guestfs-ruby.pod:22
|
|
msgid "EXCEPTIONS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../java/examples/guestfs-java.pod:37
|
|
msgid ""
|
|
"Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
|
|
"exception. This has a single parameter which is the error message (a "
|
|
"C<String>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../java/examples/guestfs-java.pod:41
|
|
msgid "Calling any method on a closed handle raises the same exception."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../java/examples/guestfs-java.pod:43 ../lua/examples/guestfs-lua.pod:100 ../src/guestfs.pod:2675
|
|
msgid "EVENTS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../java/examples/guestfs-java.pod:45
|
|
msgid ""
|
|
"The L<libguestfs event API|guestfs(3)/EVENTS> is fully supported from Java. "
|
|
"Create a class which implements the C<EventCallback> interface, create an "
|
|
"instance of this class, and then call the C<GuestFS#set_event_callback> "
|
|
"method to register this instance. The C<event> method of the class is "
|
|
"called when libguestfs generates an event."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../java/examples/guestfs-java.pod:51
|
|
msgid "For example, this will print all trace events:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../java/examples/guestfs-java.pod:53
|
|
#, no-wrap
|
|
msgid ""
|
|
" GuestFS g = new GuestFS ();\n"
|
|
" g.set_trace (true);\n"
|
|
" g.set_event_callback (\n"
|
|
" new EventCallback () {\n"
|
|
" public void event (long event, int eh,\n"
|
|
" String buffer, long[] array) {\n"
|
|
" System.out.println (GuestFS.eventToString (event) +\n"
|
|
" \": \" + buffer);\n"
|
|
" }\n"
|
|
" },\n"
|
|
" GuestFS.EVENT_TRACE);\n"
|
|
" g.add_drive_ro (\"disk.img\");\n"
|
|
" // etc.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../java/examples/guestfs-java.pod:67
|
|
msgid "The output looks similar to this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../java/examples/guestfs-java.pod:69
|
|
#, no-wrap
|
|
msgid ""
|
|
" EVENT_TRACE: add_drive_ro \"disk.img\"\n"
|
|
" EVENT_TRACE: add_drive_ro = 0\n"
|
|
" // etc.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../java/examples/guestfs-java.pod:83
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
|
|
"L<guestfs-golang(3)>, L<guestfs-lua(3)>, L<guestfs-ocaml(3)>, "
|
|
"L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
|
|
"L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../lua/examples/guestfs-lua.pod:5
|
|
msgid "guestfs-lua - How to use libguestfs from Lua"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../lua/examples/guestfs-lua.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" local G = require \"guestfs\"\n"
|
|
" g = G.create ()\n"
|
|
" g:add_drive (\"test.img\", { format = \"raw\", readonly = true })\n"
|
|
" g:launch ()\n"
|
|
" devices = g:list_devices ()\n"
|
|
" g:close ()\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../lua/examples/guestfs-lua.pod:18
|
|
msgid ""
|
|
"This manual page documents how to call libguestfs from the Lua 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<guestfs(3)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../lua/examples/guestfs-lua.pod:23
|
|
msgid "REQUIRING THE MODULE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../lua/examples/guestfs-lua.pod:25
|
|
msgid ""
|
|
"C<require \"guestfs\"> returns the module, so you have to assign it to a "
|
|
"local variable. Typical usage is:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../lua/examples/guestfs-lua.pod:28
|
|
#, no-wrap
|
|
msgid ""
|
|
" local G = require \"guestfs\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../lua/examples/guestfs-lua.pod:30
|
|
msgid ""
|
|
"(you can use any name you want instead of C<G>, but in the examples in this "
|
|
"man page we always use C<G>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../lua/examples/guestfs-lua.pod:35
|
|
msgid "To create a new handle, call:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../lua/examples/guestfs-lua.pod:37
|
|
#, no-wrap
|
|
msgid ""
|
|
" g = G.create ()\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../lua/examples/guestfs-lua.pod:39
|
|
msgid "You can also use the optional arguments:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../lua/examples/guestfs-lua.pod:41
|
|
#, no-wrap
|
|
msgid ""
|
|
" g = G.create { environment = 0, close_on_exit = 0 }\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../lua/examples/guestfs-lua.pod:43
|
|
msgid ""
|
|
"to set the flags C<GUESTFS_CREATE_NO_ENVIRONMENT> and/or "
|
|
"C<GUESTFS_CREATE_NO_CLOSE_ON_EXIT>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../lua/examples/guestfs-lua.pod:46
|
|
msgid ""
|
|
"The handle will be closed by the garbage collector, but you can also close "
|
|
"it explicitly by doing:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../lua/examples/guestfs-lua.pod:49
|
|
#, no-wrap
|
|
msgid ""
|
|
" g:close ()\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../lua/examples/guestfs-lua.pod:51
|
|
msgid "CALLING METHODS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../lua/examples/guestfs-lua.pod:53
|
|
msgid ""
|
|
"Use the ordinary Lua convention for calling methods on the handle. For "
|
|
"example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../lua/examples/guestfs-lua.pod:56
|
|
#, no-wrap
|
|
msgid ""
|
|
" g:set_verbose (true)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../lua/examples/guestfs-lua.pod:60
|
|
msgid ""
|
|
"For functions that take optional arguments, the first arguments are the "
|
|
"non-optional ones. The optional final argument is a table supplying the "
|
|
"optional arguments."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../lua/examples/guestfs-lua.pod:64
|
|
#, no-wrap
|
|
msgid ""
|
|
" g:add_drive (\"test.img\")\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../lua/examples/guestfs-lua.pod:68
|
|
#, no-wrap
|
|
msgid ""
|
|
" g:add_drive (\"test.img\", { format = \"raw\", readonly = true })\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../lua/examples/guestfs-lua.pod:70
|
|
msgid "64 BIT VALUES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../lua/examples/guestfs-lua.pod:72
|
|
msgid ""
|
|
"Currently 64 bit values must be passed as strings, and are returned as "
|
|
"strings. This is because 32 bit Lua cannot handle 64 bit integers "
|
|
"properly. We hope to come up with a better solution later."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../lua/examples/guestfs-lua.pod:78
|
|
msgid ""
|
|
"Most (but not all) errors are converted into objects (ie. tables) "
|
|
"containing the following fields:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../lua/examples/guestfs-lua.pod:83
|
|
msgid "msg"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../lua/examples/guestfs-lua.pod:85
|
|
msgid "The error message (corresponding to L<guestfs(3)/guestfs_last_error>)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../lua/examples/guestfs-lua.pod:87
|
|
msgid "code"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../lua/examples/guestfs-lua.pod:89
|
|
msgid "The C<errno> (corresponding to L<guestfs(3)/guestfs_last_errno>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../lua/examples/guestfs-lua.pod:93
|
|
msgid ""
|
|
"These objects also have C<__tostring> functions attached to them so you can "
|
|
"use C<tostring> (or implicit conversion) to convert them into printable "
|
|
"strings."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../lua/examples/guestfs-lua.pod:97
|
|
msgid ""
|
|
"Note that the library also throws some errors as plain strings. You may "
|
|
"need to check the type."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../lua/examples/guestfs-lua.pod:102
|
|
msgid "Events can be registered by calling C<set_event_callback>:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../lua/examples/guestfs-lua.pod:104
|
|
#, no-wrap
|
|
msgid ""
|
|
" eh = g:set_event_callback (cb, \"close\")\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../lua/examples/guestfs-lua.pod:106
|
|
msgid ""
|
|
"or to register a single callback for multiple events make the second "
|
|
"argument a list:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../lua/examples/guestfs-lua.pod:109
|
|
#, no-wrap
|
|
msgid ""
|
|
" eh = g:set_event_callback (cb, { \"appliance\", \"library\", \"trace\" })\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../lua/examples/guestfs-lua.pod:111
|
|
msgid ""
|
|
"A list of all valid event types (strings) is in the global variable "
|
|
"C<G.event_all>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../lua/examples/guestfs-lua.pod:114
|
|
msgid "The callback (C<cb>) is called with the following parameters:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../lua/examples/guestfs-lua.pod:116
|
|
#, no-wrap
|
|
msgid ""
|
|
" function cb (g, event, eh, flags, buf, array)\n"
|
|
" -- g is the guestfs handle\n"
|
|
" -- event is a string which is the name of the event that fired\n"
|
|
" -- flags is always zero\n"
|
|
" -- buf is the data buffer (eg. log message etc)\n"
|
|
" -- array is the array of 64 bit ints (eg. progress bar status etc)\n"
|
|
" ...\n"
|
|
" end\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../lua/examples/guestfs-lua.pod:125
|
|
msgid ""
|
|
"You can also remove a callback using the event handle (C<eh>) that was "
|
|
"returned when you registered the callback:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../lua/examples/guestfs-lua.pod:128
|
|
#, no-wrap
|
|
msgid ""
|
|
" g:delete_event_callback (eh)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../lua/examples/guestfs-lua.pod:140
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
|
|
"L<guestfs-golang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
|
|
"L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
|
|
"L<guestfs-ruby(3)>, L<http://www.lua.org/>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:5
|
|
msgid "virt-make-fs - Make a filesystem from a tar archive or files"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../make-fs/virt-make-fs.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-make-fs [--options] input.tar output.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../make-fs/virt-make-fs.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-make-fs [--options] input.tar.gz output.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../make-fs/virt-make-fs.pod:13
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-make-fs [--options] directory output.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:17
|
|
msgid ""
|
|
"Virt-make-fs is a command line tool for creating a filesystem from a tar "
|
|
"archive or some files in a directory. It is similar to tools like "
|
|
"L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, "
|
|
"it can create common filesystem types like ext2/3 or NTFS, which can be "
|
|
"useful if you want to attach these filesystems to existing virtual machines "
|
|
"(eg. to import large amounts of read-only data to a VM)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:25
|
|
msgid ""
|
|
"To create blank disks, use L<virt-format(1)>. To create complex layouts, "
|
|
"use L<guestfish(1)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:28
|
|
msgid "Basic usage is:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../make-fs/virt-make-fs.pod:30
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-make-fs input output.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:32
|
|
msgid ""
|
|
"where C<input> is either a directory containing files that you want to add, "
|
|
"or a tar archive (either uncompressed tar or gzip-compressed tar); and "
|
|
"C<output.img> is a disk image. The input type is detected automatically. "
|
|
"The output disk image defaults to a raw ext2 sparse image unless you specify "
|
|
"extra flags (see L</OPTIONS> below)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../make-fs/virt-make-fs.pod:38
|
|
msgid "FILESYSTEM TYPE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:40
|
|
msgid ""
|
|
"The default filesystem type is C<ext2>. Just about any filesystem type that "
|
|
"libguestfs supports can be used (but I<not> read-only formats like "
|
|
"ISO9660). Here are some of the more common choices:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../make-fs/virt-make-fs.pod:46
|
|
msgid "I<ext3>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:48
|
|
msgid ""
|
|
"Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
|
|
"you are not going to use the filesystem in a way that requires the journal, "
|
|
"then this is just wasted overhead."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../make-fs/virt-make-fs.pod:52
|
|
msgid "I<ntfs> or I<vfat>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:54
|
|
msgid "Useful if exporting data to a Windows guest."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../make-fs/virt-make-fs.pod:56
|
|
msgid "I<minix>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:58
|
|
msgid ""
|
|
"Lower overhead than C<ext2>, but certain limitations on filename length and "
|
|
"total filesystem size."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../make-fs/virt-make-fs.pod:63 ../make-fs/virt-make-fs.pod:82 ../make-fs/virt-make-fs.pod:115
|
|
msgid "EXAMPLE"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../make-fs/virt-make-fs.pod:65
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-make-fs --type=minix input minixfs.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../make-fs/virt-make-fs.pod:67
|
|
msgid "TO PARTITION OR NOT TO PARTITION"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:69
|
|
msgid "Optionally virt-make-fs can add a partition table to the output disk."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:71
|
|
msgid ""
|
|
"Adding a partition can make the disk image more compatible with certain "
|
|
"virtualized operating systems which don't expect to see a filesystem "
|
|
"directly located on a block device (Linux doesn't care and will happily "
|
|
"handle both types)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:76
|
|
msgid ""
|
|
"On the other hand, if you have a partition table then the output image is no "
|
|
"longer a straight filesystem. For example you cannot run L<fsck(8)> "
|
|
"directly on a partitioned disk image. (However libguestfs tools such as "
|
|
"L<guestfish(1)> and L<virt-resize(1)> can still be used)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:84
|
|
msgid "Add an MBR partition:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../make-fs/virt-make-fs.pod:86
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-make-fs --partition -- input disk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:88
|
|
msgid ""
|
|
"If the output disk image could be terabyte-sized or larger, it's better to "
|
|
"use an EFI/GPT-compatible partition table:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../make-fs/virt-make-fs.pod:91
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../make-fs/virt-make-fs.pod:93
|
|
msgid "EXTRA SPACE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:95
|
|
msgid ""
|
|
"Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
|
|
"the files that it contains, but might have extra space. Depending on how "
|
|
"you are going to use the output, you might think this extra space is wasted "
|
|
"and want to minimize it, or you might want to leave space so that more files "
|
|
"can be added later. Virt-make-fs defaults to minimizing the extra space, "
|
|
"but you can use the I<--size> flag to leave space in the filesystem if you "
|
|
"want it."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:103
|
|
msgid ""
|
|
"An alternative way to leave extra space but not make the output image any "
|
|
"bigger is to use an alternative disk image format (instead of the default "
|
|
"\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
|
|
"image format (check your hypervisor supports this before using it). This "
|
|
"allows you to choose a large I<--size> but the extra space won't actually be "
|
|
"allocated in the image until you try to store something in it."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:111
|
|
msgid ""
|
|
"Don't forget that you can also use local commands including L<resize2fs(8)> "
|
|
"and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
|
|
"to build another image from scratch."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../make-fs/virt-make-fs.pod:117
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-make-fs --format=qcow2 --size=+200M input output.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../make-fs/virt-make-fs.pod:127
|
|
msgid "B<--floppy>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:129
|
|
msgid "Create a virtual floppy disk."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:131
|
|
msgid ""
|
|
"Currently this preselects the size (1440K), partition type (MBR) and "
|
|
"filesystem type (VFAT). In future it may also choose the geometry."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../make-fs/virt-make-fs.pod:134
|
|
msgid "B<--size=E<lt>NE<gt>>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../make-fs/virt-make-fs.pod:136
|
|
msgid "B<--size=+E<lt>NE<gt>>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../make-fs/virt-make-fs.pod:138
|
|
msgid "B<-s E<lt>NE<gt>>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../make-fs/virt-make-fs.pod:140
|
|
msgid "B<-s +E<lt>NE<gt>>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:142
|
|
msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:145
|
|
msgid ""
|
|
"If this option is I<not> given, then the output image will be just large "
|
|
"enough to contain all the files, with not much wasted space."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:148
|
|
msgid ""
|
|
"To choose a fixed size output disk, specify an absolute number followed by "
|
|
"b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
|
|
"Petabytes or Exabytes. This must be large enough to contain all the input "
|
|
"files, else you will get an error."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:153
|
|
msgid ""
|
|
"To leave extra space, specify C<+> (plus sign) and a number followed by "
|
|
"b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
|
|
"Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
|
|
"the input files, and (approximately) an extra 200 MB free space."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:159
|
|
msgid ""
|
|
"Note that virt-make-fs estimates free space, and therefore will not produce "
|
|
"filesystems containing precisely the free space requested. (It is much more "
|
|
"expensive and time-consuming to produce a filesystem which has precisely the "
|
|
"desired free space)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../make-fs/virt-make-fs.pod:164
|
|
msgid "B<--format=E<lt>fmtE<gt>>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../make-fs/virt-make-fs.pod:166
|
|
msgid "B<-F E<lt>fmtE<gt>>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:168
|
|
msgid "Choose the output disk image format."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:170
|
|
msgid "The default is C<raw> (raw sparse disk image)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../make-fs/virt-make-fs.pod:172
|
|
msgid "B<--type=E<lt>fsE<gt>>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../make-fs/virt-make-fs.pod:174
|
|
msgid "B<-t E<lt>fsE<gt>>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:176
|
|
msgid "Choose the output filesystem type."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:178
|
|
msgid "The default is C<ext2>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:180
|
|
msgid "Any filesystem which is supported read-write by libguestfs can be used here."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../make-fs/virt-make-fs.pod:183
|
|
msgid "B<--label=E<lt>LABELE<gt>>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../make-fs/virt-make-fs.pod:189
|
|
msgid "B<--partition=E<lt>parttypeE<gt>>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:191
|
|
msgid ""
|
|
"If specified, this flag adds an MBR partition table to the output disk "
|
|
"image."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:194
|
|
msgid ""
|
|
"You can change the partition table type, eg. I<--partition=gpt> for large "
|
|
"disks."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:197
|
|
msgid "For MBR, virt-make-fs sets the partition type byte automatically."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:203
|
|
msgid "Enable debugging information."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:213
|
|
msgid "Enable libguestfs trace."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../make-fs/virt-make-fs.pod:219
|
|
msgid ""
|
|
"L<guestfish(1)>, L<virt-format(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, "
|
|
"L<mkisofs(1)>, L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, "
|
|
"L<resize2fs(8)>, L<guestfs(3)>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../ocaml/examples/guestfs-ocaml.pod:5
|
|
msgid "guestfs-ocaml - How to use libguestfs from OCaml"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../ocaml/examples/guestfs-ocaml.pod:9
|
|
msgid "Module style:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../ocaml/examples/guestfs-ocaml.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" let g = Guestfs.create () in\n"
|
|
" Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
|
|
" Guestfs.launch g;\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../ocaml/examples/guestfs-ocaml.pod:15
|
|
msgid "Object-oriented style:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../ocaml/examples/guestfs-ocaml.pod:17
|
|
#, no-wrap
|
|
msgid ""
|
|
" let g = new Guestfs.guestfs () in\n"
|
|
" g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
|
|
" g#launch ();\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../ocaml/examples/guestfs-ocaml.pod:21
|
|
#, no-wrap
|
|
msgid ""
|
|
" ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
|
|
"or:\n"
|
|
" ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../ocaml/examples/guestfs-ocaml.pod:27
|
|
msgid ""
|
|
"This manual page documents how to call libguestfs from the OCaml 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<guestfs(3)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../ocaml/examples/guestfs-ocaml.pod:32
|
|
msgid "PROGRAMMING STYLES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../ocaml/examples/guestfs-ocaml.pod:34
|
|
msgid ""
|
|
"There are two different programming styles supported by the OCaml bindings. "
|
|
"You can use a module style, with each C function mapped to an OCaml "
|
|
"function:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../ocaml/examples/guestfs-ocaml.pod:38
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_set_verbose (guestfs_h *g, int flag);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../ocaml/examples/guestfs-ocaml.pod:40
|
|
msgid "becomes:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../ocaml/examples/guestfs-ocaml.pod:42
|
|
#, no-wrap
|
|
msgid ""
|
|
" val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../ocaml/examples/guestfs-ocaml.pod:44
|
|
msgid ""
|
|
"Alternately you can use an object-oriented style, calling methods on the "
|
|
"class C<Guestfs.guestfs>:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../ocaml/examples/guestfs-ocaml.pod:47
|
|
#, no-wrap
|
|
msgid ""
|
|
" method set_verbose : bool -> unit\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../ocaml/examples/guestfs-ocaml.pod:49
|
|
msgid ""
|
|
"The object-oriented style is usually briefer, and the minor performance "
|
|
"penalty isn't noticeable in the general overhead of performing libguestfs "
|
|
"functions."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../ocaml/examples/guestfs-ocaml.pod:55
|
|
msgid ""
|
|
"The handle is closed when it is reaped by the garbage collector. Because "
|
|
"libguestfs handles include a lot of state, it is also possible to close (and "
|
|
"hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
|
|
"method."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../ocaml/examples/guestfs-ocaml.pod:62
|
|
msgid ""
|
|
"Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
|
|
"exception. This has a single parameter which is the error message (a "
|
|
"string)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../ocaml/examples/guestfs-ocaml.pod:66
|
|
msgid ""
|
|
"Calling any function/method on a closed handle raises "
|
|
"C<Guestfs.Handle_closed>. The single parameter is the name of the function "
|
|
"that you called."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../ocaml/examples/guestfs-ocaml.pod:80
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
|
|
"L<guestfs-golang(3)>, L<guestfs-java(3)>, L<guestfs-lua(3)>, "
|
|
"L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
|
|
"L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../perl/examples/guestfs-perl.pod:5
|
|
msgid "guestfs-perl - How to use libguestfs from Perl"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../perl/examples/guestfs-perl.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" use Sys::Guestfs;\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../perl/examples/guestfs-perl.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" my $g = Sys::Guestfs->new ();\n"
|
|
" $g->add_drive_opts ('guest.img', format => 'raw');\n"
|
|
" $g->launch ();\n"
|
|
" $g->mount ('/dev/sda1', '/');\n"
|
|
" $g->touch ('/hello');\n"
|
|
" $g->shutdown ();\n"
|
|
" $g->close ();\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../perl/examples/guestfs-perl.pod:21
|
|
msgid ""
|
|
"This manual page documents how to call libguestfs from the Perl 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<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../perl/examples/guestfs-perl.pod:29
|
|
msgid ""
|
|
"Errors from libguestfs functions turn into calls to C<croak> (see "
|
|
"L<Carp(3)>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../perl/examples/guestfs-perl.pod:42
|
|
msgid ""
|
|
"L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
|
|
"L<guestfs-erlang(3)>, L<guestfs-golang(3)>, L<guestfs-java(3)>, "
|
|
"L<guestfs-lua(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
|
|
"L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../python/examples/guestfs-python.pod:5
|
|
msgid "guestfs-python - How to use libguestfs from Python"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../python/examples/guestfs-python.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" import guestfs\n"
|
|
" g = guestfs.GuestFS (python_return_dict=True)\n"
|
|
" g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
|
|
" g.launch ()\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../python/examples/guestfs-python.pod:16
|
|
msgid ""
|
|
"This manual page documents how to call libguestfs from the Python "
|
|
"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<guestfs(3)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../python/examples/guestfs-python.pod:21
|
|
msgid "python_return_dict=True"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../python/examples/guestfs-python.pod:23
|
|
msgid "All new code should construct the handle using:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../python/examples/guestfs-python.pod:25
|
|
#, no-wrap
|
|
msgid ""
|
|
" g = guestfs.GuestFS (python_return_dict=True)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../python/examples/guestfs-python.pod:27
|
|
msgid ""
|
|
"This indicates that your program wants to receive Python dicts for methods "
|
|
"in the API that return hashtables."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../python/examples/guestfs-python.pod:30
|
|
msgid "In a future version of libguestfs, this will become the default."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../python/examples/guestfs-python.pod:34
|
|
msgid ""
|
|
"Errors from libguestfs functions are mapped into C<RuntimeException> with a "
|
|
"single string argument which is the error message."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../python/examples/guestfs-python.pod:37
|
|
msgid "MORE DOCUMENTATION"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../python/examples/guestfs-python.pod:39
|
|
msgid "Type:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../python/examples/guestfs-python.pod:41
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ python\n"
|
|
" >>> import guestfs\n"
|
|
" >>> help (guestfs)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../python/examples/guestfs-python.pod:55
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
|
|
"L<guestfs-golang(3)>, L<guestfs-java(3)>, L<guestfs-lua(3)>, "
|
|
"L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
|
|
"L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:5
|
|
msgid "virt-rescue - Run a rescue shell on a virtual machine"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-rescue [--options] -d domname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:13
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-rescue --suggest (-d domname | -a disk.img ...)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:17
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-rescue [--options] domname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:19
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-rescue [--options] disk.img [disk.img ...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:23
|
|
msgid ""
|
|
"You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
|
|
"probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
|
|
"you from doing this, but doesn't catch all cases."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:27
|
|
msgid ""
|
|
"However if you use the I<--ro> (read only) option, then you can attach a "
|
|
"shell to a live virtual machine. The results might be strange or "
|
|
"inconsistent at times but you won't get disk corruption."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:33
|
|
msgid ""
|
|
"virt-rescue is like a Rescue CD, but for virtual machines, and without the "
|
|
"need for a CD. virt-rescue gives you a rescue shell and some simple "
|
|
"recovery tools which you can use to examine or rescue a virtual machine or "
|
|
"disk image."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:38
|
|
msgid ""
|
|
"You can run virt-rescue on any virtual machine known to libvirt, or directly "
|
|
"on disk image(s):"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:41
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-rescue -d GuestName\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:43
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-rescue --ro -a /path/to/disk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:45
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-rescue -a /dev/sdc\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:47
|
|
msgid "For live VMs you I<must> use the --ro option."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:49
|
|
msgid ""
|
|
"When you run virt-rescue on a virtual machine or disk image, you are placed "
|
|
"in an interactive bash shell where you can use many ordinary Linux "
|
|
"commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
|
|
"appliance. You must mount the virtual machine's filesystems by hand. There "
|
|
"is an empty directory called C</sysroot> where you can mount filesystems."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:56
|
|
msgid ""
|
|
"You can get virt-rescue to suggest mount commands for you by using the "
|
|
"I<--suggest> option (in another terminal):"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:59
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ virt-rescue --suggest -d Fedora15\n"
|
|
" Inspecting the virtual machine or disk image ...\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:62
|
|
#, no-wrap
|
|
msgid ""
|
|
" This disk contains one or more operating systems. You can use these\n"
|
|
" mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
|
|
" filesystems.\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:66
|
|
#, no-wrap
|
|
msgid ""
|
|
" # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
|
|
" # type: linux, distro: fedora, version: 15.0\n"
|
|
" # Fedora release 15 (Lovelock)\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:70
|
|
#, no-wrap
|
|
msgid ""
|
|
" mount /dev/vg_f15x32/lv_root /sysroot/\n"
|
|
" mount /dev/vda1 /sysroot/boot\n"
|
|
" mount --bind /dev /sysroot/dev\n"
|
|
" mount --bind /dev/pts /sysroot/dev/pts\n"
|
|
" mount --bind /proc /sysroot/proc\n"
|
|
" mount --bind /sys /sysroot/sys\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:77
|
|
msgid ""
|
|
"Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
|
|
"(with L<parted(8)>) and mount them by hand:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:80
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><rescue> lvs\n"
|
|
" LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
|
|
" lv_root vg_f15x32 -wi-a- 8.83G\n"
|
|
" lv_swap vg_f15x32 -wi-a- 992.00M\n"
|
|
" ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
|
|
" ><rescue> mount /dev/vda1 /sysroot/boot\n"
|
|
" ><rescue> ls /sysroot\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:88
|
|
msgid "Another command to list available filesystems is L<virt-filesystems(1)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:91
|
|
msgid ""
|
|
"To run commands in a Linux guest (for example, grub), you should chroot into "
|
|
"the /sysroot directory first:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:94
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><rescue> chroot /sysroot\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:98
|
|
msgid ""
|
|
"Virt-rescue can be used on I<any> disk image file or device, not just a "
|
|
"virtual machine. For example you can use it on a blank file if you want to "
|
|
"partition that file (although we would recommend using L<guestfish(1)> "
|
|
"instead as it is more suitable for this purpose). You can even use "
|
|
"virt-rescue on things like SD cards."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:104
|
|
msgid ""
|
|
"You can get virt-rescue to give you scratch disk(s) to play with. This is "
|
|
"useful for testing out Linux utilities (see I<--scratch>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:107
|
|
msgid ""
|
|
"Virt-rescue does not require root. You only need to run it as root if you "
|
|
"need root to open the disk image."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:110
|
|
msgid ""
|
|
"This tool is just designed for quick interactive hacking on a virtual "
|
|
"machine. For more structured access to a virtual machine disk image, you "
|
|
"should use L<guestfs(3)>. To get a structured shell that you can use to "
|
|
"make scripted changes to guests, use L<guestfish(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../rescue/virt-rescue.pod:140
|
|
msgid "B<--append kernelopts>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:142
|
|
msgid "Pass additional options to the rescue kernel."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:172
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-rescue --format=raw -a disk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:176
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-rescue --format=raw -a disk.img --format -a another.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../rescue/virt-rescue.pod:185
|
|
msgid "B<-m MB>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../rescue/virt-rescue.pod:187
|
|
msgid "B<--memsize MB>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:189
|
|
msgid ""
|
|
"Change the amount of memory allocated to the rescue system. The default is "
|
|
"set by libguestfs and is small but adequate for running system tools. The "
|
|
"occasional program might need more memory. The parameter is specified in "
|
|
"megabytes."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:196
|
|
msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:202
|
|
msgid "Open the image read-only."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../rescue/virt-rescue.pod:210
|
|
msgid "B<--scratch>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../rescue/virt-rescue.pod:212
|
|
msgid "B<--scratch=N>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:214
|
|
msgid ""
|
|
"The I<--scratch> option adds a large scratch disk to the rescue appliance. "
|
|
"I<--scratch=N> adds C<N> scratch disks. The scratch disk(s) are deleted "
|
|
"automatically when virt-rescue exits."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:218
|
|
msgid ""
|
|
"You can also mix I<-a>, I<-d> and I<--scratch> options. The scratch disk(s) "
|
|
"are added to the appliance in the order they appear on the command line."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:224
|
|
msgid ""
|
|
"Enable SELinux in the rescue appliance. You should read "
|
|
"L<guestfs(3)/SELINUX> before using this option."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:229
|
|
msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../rescue/virt-rescue.pod:231
|
|
msgid "B<--suggest>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:233
|
|
msgid ""
|
|
"Inspect the disk image and suggest what mount commands should be used to "
|
|
"mount the disks. You should use the I<--suggest> option in a second "
|
|
"terminal, then paste the commands into another virt-rescue."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:237
|
|
msgid ""
|
|
"This option implies I<--ro> and is safe to use even if the guest is up or if "
|
|
"another virt-rescue is running."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:256
|
|
msgid ""
|
|
"This changes the I<-a> and I<-d> options so that disks are added and mounts "
|
|
"are done read-write."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:269
|
|
msgid "Previous versions of virt-rescue allowed you to write either:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:271
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-rescue disk.img [disk.img ...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:275
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-rescue guestname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../rescue/virt-rescue.pod:283
|
|
msgid "NETWORK"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:285
|
|
msgid ""
|
|
"Adding the I<--network> option enables QEMU user networking in the rescue "
|
|
"appliance. There are some differences between user networking and ordinary "
|
|
"networking:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../rescue/virt-rescue.pod:291
|
|
msgid "ping does not work"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:293
|
|
msgid ""
|
|
"Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
|
|
"send the ping packets, and because virt-rescue must be able to run as "
|
|
"non-root, QEMU user networking is not able to emulate the L<ping(8)> "
|
|
"command. The ping command will appear to resolve addresses but will not be "
|
|
"able to send or receive any packets. This does not mean that the network is "
|
|
"not working."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../rescue/virt-rescue.pod:300
|
|
msgid "cannot receive connections"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:302
|
|
msgid "QEMU user networking cannot receive incoming connections."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../rescue/virt-rescue.pod:304
|
|
msgid "making TCP connections"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:306
|
|
msgid ""
|
|
"The virt-rescue appliance needs to be small and so does not include many "
|
|
"network tools. In particular there is no L<telnet(1)> command. You can "
|
|
"make TCP connections from the shell using the magical "
|
|
"C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:311
|
|
#, no-wrap
|
|
msgid ""
|
|
" exec 3<>/dev/tcp/redhat.com/80\n"
|
|
" echo \"GET /\" >&3\n"
|
|
" cat <&3\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:315
|
|
msgid "See L<bash(1)> for more details."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../rescue/virt-rescue.pod:319
|
|
msgid "CAPTURING CORE DUMPS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:321
|
|
msgid ""
|
|
"If you are testing a tool inside virt-rescue and the tool (B<not> "
|
|
"virt-rescue) segfaults, it can be tricky to capture the core dump outside "
|
|
"virt-rescue for later analysis. This section describes one way to do this."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:330
|
|
msgid "Create a scratch disk for core dumps:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:332
|
|
#, no-wrap
|
|
msgid ""
|
|
" truncate -s 4G /tmp/corefiles\n"
|
|
" virt-format --partition=mbr --filesystem=ext2 -a /tmp/corefiles\n"
|
|
" virt-filesystems -a /tmp/corefiles --all --long -h\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:338
|
|
msgid "When starting virt-rescue, attach the core files disk last:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:340
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-rescue --rw [-a ...] -a /tmp/corefiles\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:342
|
|
msgid ""
|
|
"B<NB.> If you use the I<--ro> option, then virt-rescue will silently not "
|
|
"write any core files to C</tmp/corefiles>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:347
|
|
msgid ""
|
|
"Inside virt-rescue, mount the core files disk. Note replace C</dev/sdb1> "
|
|
"with the last disk index. For example if the core files disk is the last of "
|
|
"four disks, you would use C</dev/sdd1>."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:351
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><rescue> mkdir /tmp/mnt\n"
|
|
" ><rescue> mount /dev/sdb1 /tmp/mnt\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:356
|
|
msgid "Enable core dumps in the rescue kernel:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:358
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><rescue> echo '/tmp/mnt/core.%p' > /proc/sys/kernel/core_pattern\n"
|
|
" ><rescue> ulimit -Hc unlimited\n"
|
|
" ><rescue> ulimit -Sc unlimited\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:364
|
|
msgid ""
|
|
"Run the tool that caused the core dump. The core dump will be written to "
|
|
"C</tmp/mnt/core.I<PID>>."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:367
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><rescue> ls -l /tmp/mnt\n"
|
|
" total 1628\n"
|
|
" -rw------- 1 root root 1941504 Dec 7 13:13 core.130\n"
|
|
" drwx------ 2 root root 16384 Dec 7 13:00 lost+found\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../rescue/virt-rescue.pod:372
|
|
msgid "6."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:374
|
|
msgid "Before exiting virt-rescue, unmount (or at least sync) the disks:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:376
|
|
#, no-wrap
|
|
msgid ""
|
|
" ><rescue> umount /tmp/mnt\n"
|
|
" ><rescue> exit\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../rescue/virt-rescue.pod:379
|
|
msgid "7."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:381
|
|
msgid ""
|
|
"Outside virt-rescue, the core dump(s) can be removed from the disk using "
|
|
"L<guestfish(1)>. For example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../rescue/virt-rescue.pod:384
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish --ro -a /tmp/corefiles -m /dev/sda1\n"
|
|
" ><fs> ll /\n"
|
|
" ><fs> download /core.NNN /tmp/core.NNN\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:392
|
|
msgid ""
|
|
"Several environment variables affect virt-rescue. See "
|
|
"L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../rescue/virt-rescue.pod:423
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
|
|
"L<virt-filesystems(1)>, L<libguestfs-tools.conf(5)>, "
|
|
"L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:5
|
|
msgid "virt-resize - Resize a virtual machine disk"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
|
|
" [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
|
|
" [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:15
|
|
msgid ""
|
|
"Virt-resize is a tool which can resize a virtual machine disk, making it "
|
|
"larger or smaller overall, and resizing or deleting any partitions contained "
|
|
"within."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:19
|
|
msgid ""
|
|
"Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
|
|
"not> be used on live virtual machines - for consistent results, shut the "
|
|
"virtual machine down before resizing it."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:23
|
|
msgid ""
|
|
"If you are not familiar with the associated tools: L<virt-filesystems(1)> "
|
|
"and L<virt-df(1)>, we recommend you go and read those manual pages first."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:33
|
|
msgid ""
|
|
"Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
|
|
"fill the extra 5GB of space."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:36
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-filesystems --long -h --all -a olddisk\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:38
|
|
#, no-wrap
|
|
msgid ""
|
|
" truncate -r olddisk newdisk\n"
|
|
" truncate -s +5G newdisk\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:41
|
|
#, no-wrap
|
|
msgid ""
|
|
" # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
|
|
" virt-resize --expand /dev/sda2 olddisk newdisk\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:46
|
|
msgid ""
|
|
"As above, but make the /boot partition 200MB bigger, while giving the "
|
|
"remaining space to /dev/sda2:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:49
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
|
|
" olddisk newdisk\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:54
|
|
msgid ""
|
|
"As in the first example, but expand a logical volume as the final step. "
|
|
"This is what you would typically use for Linux guests that use LVM:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:58
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
|
|
" olddisk newdisk\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:63
|
|
msgid ""
|
|
"As in the first example, but the output format will be qcow2 instead of a "
|
|
"raw disk:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:66
|
|
#, no-wrap
|
|
msgid ""
|
|
" qemu-img create -f qcow2 -o preallocation=metadata newdisk.qcow2 15G\n"
|
|
" virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../resize/virt-resize.pod:71
|
|
msgid "DETAILED USAGE"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../resize/virt-resize.pod:73
|
|
msgid "EXPANDING A VIRTUAL MACHINE DISK"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:77
|
|
msgid "1. Shut down the virtual machine"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:79
|
|
msgid "2. Locate input disk image"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:81
|
|
msgid ""
|
|
"Locate the input disk image (ie. the file or device on the host containing "
|
|
"the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
|
|
"dumpxml> like this to find the disk image name:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:85
|
|
#, no-wrap
|
|
msgid ""
|
|
" # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
|
|
" Found 1 nodes:\n"
|
|
" -- NODE --\n"
|
|
" <source dev=\"/dev/vg/lv_guest\" />\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:90
|
|
msgid "3. Look at current sizing"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:92
|
|
msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:95
|
|
#, no-wrap
|
|
msgid ""
|
|
" # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
|
|
" Name Type Size Parent\n"
|
|
" /dev/sda1 partition 101M /dev/sda\n"
|
|
" /dev/sda2 partition 7.9G /dev/sda\n"
|
|
" /dev/sda device 8.0G -\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:101
|
|
msgid ""
|
|
"(This example is a virtual machine with an 8 GB disk which we would like to "
|
|
"expand up to 10 GB)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:104
|
|
msgid "4. Create output disk"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:106
|
|
msgid ""
|
|
"Virt-resize cannot do in-place disk modifications. You have to have space "
|
|
"to store the resized output disk."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:109
|
|
msgid "To store the resized disk image in a file, create a file of a suitable size:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:112
|
|
#, no-wrap
|
|
msgid ""
|
|
" # rm -f outdisk\n"
|
|
" # truncate -s 10G outdisk\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:115
|
|
msgid "Or use L<lvcreate(1)> to create a logical volume:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:117
|
|
#, no-wrap
|
|
msgid ""
|
|
" # lvcreate -L 10G -n lv_name vg_name\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:119
|
|
msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:121
|
|
#, no-wrap
|
|
msgid ""
|
|
" # virsh pool-list\n"
|
|
" # virsh vol-create-as poolname newvol 10G\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:124
|
|
msgid "5. Resize"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:126
|
|
msgid ""
|
|
"virt-resize takes two mandatory parameters, the input disk (eg. device, "
|
|
"file, or a URI to a remote disk) and the output disk. The output disk is "
|
|
"the one created in the previous step."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:130
|
|
#, no-wrap
|
|
msgid ""
|
|
" # virt-resize indisk outdisk\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:132
|
|
msgid ""
|
|
"This command just copies disk image C<indisk> to disk image C<outdisk> "
|
|
"I<without> resizing or changing any existing partitions. If C<outdisk> is "
|
|
"larger, then an extra, empty partition is created at the end of the disk "
|
|
"covering the extra space. If C<outdisk> is smaller, then it will give an "
|
|
"error."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:138
|
|
msgid ""
|
|
"More realistically you'd want to expand existing partitions in the disk "
|
|
"image by passing extra options (for the full list see the L</OPTIONS> "
|
|
"section below)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:142
|
|
msgid ""
|
|
"L</--expand> is the most useful option. It expands the named partition "
|
|
"within the disk to fill any extra space:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:145
|
|
#, no-wrap
|
|
msgid ""
|
|
" # virt-resize --expand /dev/sda2 indisk outdisk\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:147
|
|
msgid ""
|
|
"(In this case, an extra partition is I<not> created at the end of the disk, "
|
|
"because there will be no unused space)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:150
|
|
msgid ""
|
|
"L</--resize> is the other commonly used option. The following would "
|
|
"increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
|
|
"rest of the available space:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:154
|
|
#, no-wrap
|
|
msgid ""
|
|
" # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
|
|
" indisk outdisk\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:157
|
|
msgid ""
|
|
"If the expanded partition in the image contains a filesystem or LVM PV, then "
|
|
"if virt-resize knows how, it will resize the contents, the equivalent of "
|
|
"calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
|
|
"or L<btrfs(8)>. However virt-resize does not know how to resize some "
|
|
"filesystems, so you would have to online resize them after booting the "
|
|
"guest."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:164
|
|
#, no-wrap
|
|
msgid ""
|
|
" # virt-resize --expand /dev/sda2 nbd://example.com outdisk\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:166
|
|
msgid ""
|
|
"The input disk can be a URI, in order to use a remote disk as the source. "
|
|
"The URI format is compatible with guestfish. See L<guestfish(1)/ADDING "
|
|
"REMOTE STORAGE>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:170
|
|
msgid "Other options are covered below."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:172
|
|
msgid "6. Test"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:174
|
|
msgid "Thoroughly test the new disk image I<before> discarding the old one."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:176
|
|
msgid "If you are using libvirt, edit the XML to point at the new disk:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:178
|
|
#, no-wrap
|
|
msgid ""
|
|
" # virsh edit guestname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:180
|
|
msgid ""
|
|
"Change E<lt>source ...E<gt>, see "
|
|
"L<http://libvirt.org/formatdomain.html#elementsDisks>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:183
|
|
msgid "Then start up the domain with the new, resized disk:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:185
|
|
#, no-wrap
|
|
msgid ""
|
|
" # virsh start guestname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:187
|
|
msgid ""
|
|
"and check that it still works. See also the L</NOTES> section below for "
|
|
"additional information."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:190
|
|
msgid "7. Resize LVs etc inside the guest"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:192
|
|
msgid "(This can also be done offline using L<guestfish(1)>)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:194
|
|
msgid ""
|
|
"Once the guest has booted you should see the new space available, at least "
|
|
"for filesystems that virt-resize knows how to resize, and for PVs. The user "
|
|
"may need to resize LVs inside PVs, and also resize filesystem types that "
|
|
"virt-resize does not know how to expand."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../resize/virt-resize.pod:201
|
|
msgid "SHRINKING A VIRTUAL MACHINE DISK"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:203
|
|
msgid ""
|
|
"Shrinking is somewhat more complex than expanding, and only an overview is "
|
|
"given here."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:206
|
|
msgid ""
|
|
"Firstly virt-resize will not attempt to shrink any partition content (PVs, "
|
|
"filesystems). The user has to shrink content before passing the disk image "
|
|
"to virt-resize, and virt-resize will check that the content has been shrunk "
|
|
"properly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:211
|
|
msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:213
|
|
msgid ""
|
|
"After shrinking PVs and filesystems, shut down the guest, and proceed with "
|
|
"steps 3 and 4 above to allocate a new disk image."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:216
|
|
msgid "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../resize/virt-resize.pod:219
|
|
msgid "IGNORING OR DELETING PARTITIONS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:221
|
|
msgid ""
|
|
"virt-resize also gives a convenient way to ignore or delete partitions when "
|
|
"copying from the input disk to the output disk. Ignoring a partition speeds "
|
|
"up the copy where you don't care about the existing contents of a "
|
|
"partition. Deleting a partition removes it completely, but note that it "
|
|
"also renumbers any partitions after the one which is deleted, which can "
|
|
"leave some guests unbootable."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../resize/virt-resize.pod:228
|
|
msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:230
|
|
msgid ""
|
|
"If the input disk is in qcow2 format, then you may prefer that the output is "
|
|
"in qcow2 format as well. Alternately, virt-resize can convert the format on "
|
|
"the fly. The output format is simply determined by the format of the empty "
|
|
"output container that you provide. Thus to create qcow2 output, use:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:236
|
|
#, no-wrap
|
|
msgid ""
|
|
" qemu-img create [-c] -f qcow2 -o preallocation=metadata outdisk [size]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:238
|
|
msgid "instead of the truncate command (use I<-c> for a compressed disk)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:240
|
|
msgid "Similarly, to get non-sparse raw output use:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:242
|
|
#, no-wrap
|
|
msgid ""
|
|
" fallocate -l size outdisk\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:244
|
|
msgid ""
|
|
"(on older systems that don't have the L<fallocate(1)> command use C<dd "
|
|
"if=/dev/zero of=outdisk bs=1M count=..>)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../resize/virt-resize.pod:247
|
|
msgid "LOGICAL PARTITIONS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:249
|
|
msgid ""
|
|
"Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
|
|
"tables) cannot be resized."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:252
|
|
msgid ""
|
|
"To understand what is going on, firstly one of the four partitions "
|
|
"C</dev/sda1-4> will have MBR partition type C<05> or C<0f>. This is called "
|
|
"the B<extended partition>. Use L<virt-filesystems(1)> to see the MBR "
|
|
"partition type."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:257
|
|
msgid "Logical partitions live inside the extended partition."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:259
|
|
msgid ""
|
|
"The extended partition can be expanded, but not shrunk (unless you force it, "
|
|
"which is not advisable). When the extended partition is copied across, all "
|
|
"the logical partitions contained inside are copied over implicitly. "
|
|
"Virt-resize does not look inside the extended partition, so it copies the "
|
|
"logical partitions blindly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:265
|
|
msgid ""
|
|
"You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
|
|
"line. Doing so will give an error."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:276
|
|
msgid "B<--align-first auto>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:278
|
|
msgid "B<--align-first never>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:280
|
|
msgid "B<--align-first always>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:282
|
|
msgid ""
|
|
"Align the first partition for improved performance (see also the "
|
|
"I<--alignment> option)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:285
|
|
msgid ""
|
|
"The default is I<--align-first auto> which only aligns the first partition "
|
|
"if it is safe to do so. That is, only when we know how to fix the "
|
|
"bootloader automatically, and at the moment that can only be done for "
|
|
"Windows guests."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:290
|
|
msgid ""
|
|
"I<--align-first never> means we never move the first partition. This is the "
|
|
"safest option. Try this if the guest does not boot after resizing."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:294
|
|
msgid ""
|
|
"I<--align-first always> means we always align the first partition (if it "
|
|
"needs to be aligned). For some guests this will break the bootloader, "
|
|
"making the guest unbootable."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:298
|
|
msgid "B<--alignment N>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:300
|
|
msgid ""
|
|
"Set the alignment of partitions to C<N> sectors. The default in virt-resize "
|
|
"E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:304
|
|
msgid ""
|
|
"Assuming 512 byte sector size inside the guest, here are some suitable "
|
|
"values for this:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:309
|
|
msgid "I<--alignment 1> (512 bytes)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:311
|
|
msgid ""
|
|
"The partitions would be packed together as closely as possible, but would be "
|
|
"completely unaligned. In some cases this can cause very poor performance. "
|
|
"See L<virt-alignment-scan(1)> for further details."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:315
|
|
msgid "I<--alignment 8> (4K)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:317
|
|
msgid ""
|
|
"This would be the minimum acceptable alignment for reasonable performance on "
|
|
"modern hosts."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:320
|
|
msgid "I<--alignment 128> (64K)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:322
|
|
msgid ""
|
|
"This alignment provides good performance when the host is using high end "
|
|
"network storage."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:325
|
|
msgid "I<--alignment 2048> (1M)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:327
|
|
msgid ""
|
|
"This is the standard alignment used by all newly installed guests since "
|
|
"around 2008."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:332
|
|
msgid "B<-d>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:334 ../tools/virt-win-reg:119
|
|
msgid "B<--debug>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:336
|
|
msgid "(Deprecated: use I<-v> option instead)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:338 ../resize/virt-resize.pod:583 ../tools/virt-win-reg:121
|
|
msgid "Enable debugging messages."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:340 ../sparsify/virt-sparsify.pod:174
|
|
msgid "B<--debug-gc>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:342
|
|
msgid ""
|
|
"Debug garbage collection and memory allocation. This is only useful when "
|
|
"debugging memory problems in virt-resize or the OCaml libguestfs bindings."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:346
|
|
msgid "B<--delete part>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:348
|
|
msgid ""
|
|
"Delete the named partition. It would be more accurate to describe this as "
|
|
"\"don't copy it over\", since virt-resize doesn't do in-place changes and "
|
|
"the original disk image is left intact."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:352
|
|
msgid ""
|
|
"Note that when you delete a partition, then anything contained in the "
|
|
"partition is also deleted. Furthermore, this causes any partitions that "
|
|
"come after to be I<renumbered>, which can easily make your guest unbootable."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:357 ../resize/virt-resize.pod:418 ../resize/virt-resize.pod:549 ../sparsify/virt-sparsify.pod:200
|
|
msgid "You can give this option multiple times."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:359
|
|
msgid "B<--expand part>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:361
|
|
msgid ""
|
|
"Expand the named partition so it uses up all extra space (space left over "
|
|
"after any other resize changes that you request have been done)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:364
|
|
msgid ""
|
|
"If virt-resize knows how, it will expand the direct content of the "
|
|
"partition. For example, if the partition is an LVM PV, it will expand the "
|
|
"PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
|
|
"content it doesn't know about alone."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:369
|
|
msgid "Currently virt-resize can resize:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:375
|
|
msgid "ext2, ext3 and ext4 filesystems."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:379
|
|
msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:381
|
|
msgid ""
|
|
"The filesystem must have been shut down consistently last time it was used. "
|
|
"Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
|
|
"consistency check, so at the first boot after resizing Windows will check "
|
|
"the disk."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:388
|
|
msgid ""
|
|
"LVM PVs (physical volumes). virt-resize does not usually resize anything "
|
|
"inside the PV, but see the I<--LV-expand> option. The user could also "
|
|
"resize LVs as desired after boot."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:394
|
|
msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:398 ../resize/virt-resize.pod:577
|
|
msgid "Note that you cannot use I<--expand> and I<--shrink> together."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:402 ../sparsify/virt-sparsify.pod:184
|
|
msgid ""
|
|
"Specify the format of the input disk image. If this flag is not given then "
|
|
"it is auto-detected from the image itself."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:408
|
|
msgid ""
|
|
"Note that this option I<does not> affect the output format. See L</QCOW2 "
|
|
"AND NON-SPARSE RAW FORMATS>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:411
|
|
msgid "B<--ignore part>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:413
|
|
msgid ""
|
|
"Ignore the named partition. Effectively this means the partition is "
|
|
"allocated on the destination disk, but the content is not copied across from "
|
|
"the source disk. The content of the partition will be blank (all zero "
|
|
"bytes)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:420
|
|
msgid "B<--LV-expand logvol>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:422
|
|
msgid ""
|
|
"This takes the logical volume and, as a final step, expands it to fill all "
|
|
"the space available in its volume group. A typical usage, assuming a Linux "
|
|
"guest with a single PV C</dev/sda2> and a root device called "
|
|
"C</dev/vg_guest/lv_root> would be:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:427
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-resize indisk outdisk \\\n"
|
|
" --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:430
|
|
msgid ""
|
|
"This would first expand the partition (and PV), and then expand the root "
|
|
"device to fill the extra space in the PV."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:433
|
|
msgid ""
|
|
"The contents of the LV are also resized if virt-resize knows how to do "
|
|
"that. You can stop virt-resize from trying to expand the content by using "
|
|
"the option I<--no-expand-content>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:437
|
|
msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:439
|
|
msgid ""
|
|
"You can give this option multiple times, I<but> it doesn't make sense to do "
|
|
"this unless the logical volumes you specify are all in different volume "
|
|
"groups."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:443 ../sparsify/virt-sparsify.pod:202
|
|
msgid "B<--machine-readable>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:445 ../sparsify/virt-sparsify.pod:204
|
|
msgid ""
|
|
"This option is used to make the output more machine friendly when being "
|
|
"parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:451
|
|
msgid "B<--dryrun>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:453
|
|
msgid "Print a summary of what would be done, but don't do anything."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:455
|
|
msgid "B<--no-copy-boot-loader>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:457
|
|
msgid ""
|
|
"By default, virt-resize copies over some sectors at the start of the disk "
|
|
"(up to the beginning of the first partition). Commonly these sectors "
|
|
"contain the Master Boot Record (MBR) and the boot loader, and are required "
|
|
"in order for the guest to boot correctly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:462
|
|
msgid ""
|
|
"If you specify this flag, then this initial copy is not done. You may need "
|
|
"to reinstall the boot loader in this case."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:465
|
|
msgid "B<--no-extra-partition>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:467
|
|
msgid ""
|
|
"By default, virt-resize creates an extra partition if there is any extra, "
|
|
"unused space after all resizing has happened. Use this option to prevent "
|
|
"the extra partition from being created. If you do this then the extra space "
|
|
"will be inaccessible until you run fdisk, parted, or some other partitioning "
|
|
"tool in the guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:473
|
|
msgid ""
|
|
"Note that if the surplus space is smaller than 10 MB, no extra partition "
|
|
"will be created."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:476
|
|
msgid "B<--no-expand-content>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:478
|
|
msgid ""
|
|
"By default, virt-resize will try to expand the direct contents of "
|
|
"partitions, if it knows how (see I<--expand> option above)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:481
|
|
msgid ""
|
|
"If you give the I<--no-expand-content> option then virt-resize will not "
|
|
"attempt this."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:484
|
|
msgid "B<--no-sparse>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:486
|
|
msgid "Turn off sparse copying. See L</SPARSE COPYING> below."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:488
|
|
msgid "B<--ntfsresize-force>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:490
|
|
msgid ""
|
|
"Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
|
|
"the NTFS disk is marked as needing a consistency check. You have to use "
|
|
"this option if you want to resize a Windows guest multiple times without "
|
|
"booting into Windows between each resize."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:496
|
|
msgid "B<--output-format> raw"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:498
|
|
msgid ""
|
|
"Specify the format of the output disk image. If this flag is not given then "
|
|
"it is auto-detected from the image itself."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:504
|
|
msgid ""
|
|
"Note that this option I<does not create> the output format. This option "
|
|
"just tells libguestfs what it is so it doesn't try to guess it. You still "
|
|
"need to create the output disk with the right format. See L</QCOW2 AND "
|
|
"NON-SPARSE RAW FORMATS>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:513
|
|
msgid "Don't print the summary."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:515
|
|
msgid "B<--resize part=size>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:517
|
|
msgid ""
|
|
"Resize the named partition (expanding or shrinking it) so that it has the "
|
|
"given size."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:520
|
|
msgid ""
|
|
"C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
|
|
"bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
|
|
"size; or as a relative number or percentage. For example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:526
|
|
#, no-wrap
|
|
msgid ""
|
|
" --resize /dev/sda2=10G\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:528
|
|
#, no-wrap
|
|
msgid ""
|
|
" --resize /dev/sda4=90%\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:530
|
|
#, no-wrap
|
|
msgid ""
|
|
" --resize /dev/sda2=+1G\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:532
|
|
#, no-wrap
|
|
msgid ""
|
|
" --resize /dev/sda2=-200M\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:534
|
|
#, no-wrap
|
|
msgid ""
|
|
" --resize /dev/sda1=+128K\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:536
|
|
#, no-wrap
|
|
msgid ""
|
|
" --resize /dev/sda1=+10%\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:538
|
|
#, no-wrap
|
|
msgid ""
|
|
" --resize /dev/sda1=-10%\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:540
|
|
msgid ""
|
|
"You can increase the size of any partition. Virt-resize will expand the "
|
|
"direct content of the partition if it knows how (see I<--expand> below)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:544
|
|
msgid ""
|
|
"You can only I<decrease> the size of partitions that contain filesystems or "
|
|
"PVs which have already been shrunk. Virt-resize will check this has been "
|
|
"done before proceeding, or else will print an error (see also "
|
|
"I<--resize-force>)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:551
|
|
msgid "B<--resize-force part=size>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:553
|
|
msgid ""
|
|
"This is the same as I<--resize> except that it will let you decrease the "
|
|
"size of any partition. Generally this means you will lose any data which "
|
|
"was at the end of the partition you shrink, but you may not care about that "
|
|
"(eg. if shrinking an unused partition, or if you can easily recreate it such "
|
|
"as a swap partition)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:559
|
|
msgid "See also the I<--ignore> option."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../resize/virt-resize.pod:561
|
|
msgid "B<--shrink part>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:563
|
|
msgid ""
|
|
"Shrink the named partition until the overall disk image fits in the "
|
|
"destination. The named partition B<must> contain a filesystem or PV which "
|
|
"has already been shrunk using another tool (eg. L<guestfish(1)> or other "
|
|
"online tools). Virt-resize will check this and give an error if it has not "
|
|
"been done."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:569
|
|
msgid ""
|
|
"The amount by which the overall disk must be shrunk (after carrying out all "
|
|
"other operations requested by the user) is called the \"deficit\". For "
|
|
"example, a straight copy (assume no other operations) from a 5GB disk image "
|
|
"to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
|
|
"would give an error unless the user specified a partition to shrink and that "
|
|
"partition had more than a gigabyte of free space."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:252
|
|
msgid "MACHINE READABLE OUTPUT"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:595
|
|
msgid ""
|
|
"The I<--machine-readable> option can be used to make the output more machine "
|
|
"friendly, which is useful when calling virt-resize from other programs, GUIs "
|
|
"etc."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:258
|
|
msgid "There are two ways to use this option."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:601
|
|
msgid ""
|
|
"Firstly use the option on its own to query the capabilities of the "
|
|
"virt-resize binary. Typical output looks like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:604
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ virt-resize --machine-readable\n"
|
|
" virt-resize\n"
|
|
" ntfsresize-force\n"
|
|
" 32bitok\n"
|
|
" ntfs\n"
|
|
" btrfs\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:611 ../sparsify/virt-sparsify.pod:268
|
|
msgid ""
|
|
"A list of features is printed, one per line, and the program exits with "
|
|
"status 0."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:614 ../sparsify/virt-sparsify.pod:271
|
|
msgid ""
|
|
"Secondly use the option in conjunction with other options to make the "
|
|
"regular program output more machine friendly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:617 ../sparsify/virt-sparsify.pod:274
|
|
msgid "At the moment this means:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:623 ../sparsify/virt-sparsify.pod:280
|
|
msgid ""
|
|
"Progress bar messages can be parsed from stdout by looking for this regular "
|
|
"expression:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:626 ../sparsify/virt-sparsify.pod:283
|
|
#, no-wrap
|
|
msgid ""
|
|
" ^[0-9]+/[0-9]+$\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:630 ../sparsify/virt-sparsify.pod:287
|
|
msgid ""
|
|
"The calling program should treat messages sent to stdout (except for "
|
|
"progress bar messages) as status messages. They can be logged and/or "
|
|
"displayed to the user."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:636
|
|
msgid ""
|
|
"The calling program should treat messages sent to stderr as error messages. "
|
|
"In addition, virt-resize exits with a non-zero status code if there was a "
|
|
"fatal error."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:642
|
|
msgid ""
|
|
"Versions of the program prior to 1.13.9 did not support the "
|
|
"I<--machine-readable> option and will return an error."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../resize/virt-resize.pod:647
|
|
msgid "\"Partition 1 does not end on cylinder boundary.\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:649
|
|
msgid ""
|
|
"Virt-resize aligns partitions to multiples of 128 sectors (see the "
|
|
"I<--alignment> parameter). Usually this means the partitions will not be "
|
|
"aligned to the ancient CHS geometry. However CHS geometry is meaningless "
|
|
"for disks manufactured since the early 1990s, and doubly so for virtual hard "
|
|
"drives. Alignment of partitions to cylinders is not required by any modern "
|
|
"operating system."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../resize/virt-resize.pod:656
|
|
msgid "GUEST BOOT STUCK AT \"GRUB\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:658
|
|
msgid ""
|
|
"If a Linux guest does not boot after resizing, and the boot is stuck after "
|
|
"printing C<GRUB> on the console, try reinstalling grub."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../resize/virt-resize.pod:661
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -i -a newdisk\n"
|
|
" ><fs> cat /boot/grub/device.map\n"
|
|
" # check the contents of this file are sensible or\n"
|
|
" # edit the file if necessary\n"
|
|
" ><fs> grub-install / /dev/vda\n"
|
|
" ><fs> exit\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:668
|
|
msgid ""
|
|
"For more flexible guest reconfiguration, including if you need to specify "
|
|
"other parameters to grub-install, use L<virt-rescue(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../resize/virt-resize.pod:671
|
|
msgid "RESIZING WINDOWS BOOT PARTITIONS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:673
|
|
msgid ""
|
|
"In Windows Vista and later versions, Microsoft switched to using a separate "
|
|
"boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
|
|
"and C</dev/sda2> is the main (C:) drive. Resizing the first (boot) "
|
|
"partition causes the bootloader to fail with C<0xC0000225> error. Resizing "
|
|
"the second partition (ie. C: drive) should work."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../resize/virt-resize.pod:680
|
|
msgid "WINDOWS CHKDSK"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:682
|
|
msgid ""
|
|
"Windows disks which use NTFS must be consistent before virt-resize can be "
|
|
"used. If the ntfsresize operation fails, try booting the original VM and "
|
|
"running C<chkdsk /f> on all NTFS partitions, then shut down the VM cleanly. "
|
|
"For further information see: "
|
|
"L<https://bugzilla.redhat.com/show_bug.cgi?id=975753>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:688
|
|
msgid ""
|
|
"I<After resize> Windows may initiate a lengthy \"chkdsk\" on first boot if "
|
|
"NTFS partitions have been expanded. This is just a safety check and (unless "
|
|
"it find errors) is nothing to worry about."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../resize/virt-resize.pod:692
|
|
msgid "WINDOWS UNMOUNTABLE_BOOT_VOLUME BSOD"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:694
|
|
msgid ""
|
|
"After sysprepping a Windows guest and then resizing it with virt-resize, you "
|
|
"may see the guest fail to boot with an C<UNMOUNTABLE_BOOT_VOLUME> BSOD. "
|
|
"This error is caused by having C<ExtendOemPartition=1> in the sysprep.inf "
|
|
"file. Removing this line before sysprepping should fix the problem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:702
|
|
msgid ""
|
|
"Windows 8 \"fast startup\" can prevent virt-resize from resizing NTFS "
|
|
"partitions. See L<guestfs(3)/WINDOWS HIBERNATION AND WINDOWS 8 FAST "
|
|
"STARTUP>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../resize/virt-resize.pod:706
|
|
msgid "SPARSE COPYING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:708
|
|
msgid "You should create a fresh, zeroed target disk image for virt-resize to use."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:711
|
|
msgid ""
|
|
"Virt-resize by default performs sparse copying. This means that it does not "
|
|
"copy blocks from the source disk which are all zeroes. This improves speed "
|
|
"and efficiency, but will produce incorrect results if the target disk image "
|
|
"contains unzeroed data."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:716
|
|
msgid ""
|
|
"The main time this can be a problem is if the target is a host partition "
|
|
"(eg. S<C<virt-resize source.img /dev/sda4>>) because the usual partitioning "
|
|
"tools tend to leave whatever data happened to be on the disk before."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:721
|
|
msgid ""
|
|
"If you have to reuse a target which contains data already, you should use "
|
|
"the I<--no-sparse> option. Note this can be much slower."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../resize/virt-resize.pod:724
|
|
msgid "ALTERNATIVE TOOLS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:726
|
|
msgid ""
|
|
"There are several proprietary tools for resizing partitions. We won't "
|
|
"mention any here."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:729
|
|
msgid ""
|
|
"L<parted(8)> and its graphical shell gparted can do some types of resizing "
|
|
"operations on disk images. They can resize and move partitions, but I don't "
|
|
"think they can do anything with the contents, and they certainly don't "
|
|
"understand LVM."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:734
|
|
msgid ""
|
|
"L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
|
|
"but at a much lower level. You will probably end up hand-calculating sector "
|
|
"offsets, which is something that virt-resize was designed to avoid. If you "
|
|
"want to see the guestfish-equivalent commands that virt-resize runs, use the "
|
|
"I<--debug> flag."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:740
|
|
msgid ""
|
|
"L<dracut(8)> includes a module called C<dracut-modules-growroot> which can "
|
|
"be used to grow the root partition when the guest first boots up. There is "
|
|
"documentation for this module in an associated README file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../resize/virt-resize.pod:758
|
|
msgid ""
|
|
"L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
|
|
"L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
|
|
"L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
|
|
"L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
|
|
"L<virt-sparsify(1)>, L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../ruby/examples/guestfs-ruby.pod:5
|
|
msgid "guestfs-ruby - How to use libguestfs from Ruby"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../ruby/examples/guestfs-ruby.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" require 'guestfs'\n"
|
|
" g = Guestfs::Guestfs.new()\n"
|
|
" g.add_drive_opts(\"disk.img\",\n"
|
|
" :readonly => 1, :format => \"raw\")\n"
|
|
" g.launch()\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../ruby/examples/guestfs-ruby.pod:17
|
|
msgid ""
|
|
"This manual page documents how to call libguestfs from the Ruby 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<guestfs(3)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../ruby/examples/guestfs-ruby.pod:24
|
|
msgid ""
|
|
"Errors from libguestfs functions are mapped into the C<Error> exception. "
|
|
"This has a single parameter which is the error message (a string)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../ruby/examples/guestfs-ruby.pod:38
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
|
|
"L<guestfs-golang(3)>, L<guestfs-java(3)>, L<guestfs-lua(3)>, "
|
|
"L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
|
|
"L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:5
|
|
msgid "virt-sparsify - Make a virtual machine disk sparse"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sparsify/virt-sparsify.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-sparsify [--options] indisk outdisk\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:13
|
|
msgid ""
|
|
"Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
|
|
"image) sparse a.k.a. thin-provisioned. This means that free space within "
|
|
"the disk image can be converted back to free space on the host."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:18
|
|
msgid ""
|
|
"Virt-sparsify can locate and sparsify free space in most filesystems "
|
|
"(eg. ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:21
|
|
msgid ""
|
|
"Virt-sparsify can also convert between some disk formats, for example "
|
|
"converting a raw disk image to a thin-provisioned qcow2 image."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:24
|
|
msgid ""
|
|
"Virt-sparsify can operate on any disk image, not just ones from virtual "
|
|
"machines. However if a virtual machine has multiple disks and uses volume "
|
|
"management, then virt-sparsify will work but not be very effective "
|
|
"(L<http://bugzilla.redhat.com/887826>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sparsify/virt-sparsify.pod:29
|
|
msgid "IMPORTANT NOTE ABOUT SPARSE OUTPUT IMAGES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:31
|
|
msgid ""
|
|
"If the input is raw, then the default output is raw sparse. B<You must "
|
|
"check the output size using a tool that understands sparseness> such as C<du "
|
|
"-sh>. It can make a huge difference:"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sparsify/virt-sparsify.pod:42
|
|
msgid "IMPORTANT LIMITATIONS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:48
|
|
msgid ""
|
|
"Virt-sparsify does not do in-place modifications. It copies from a source "
|
|
"image to a destination image, leaving the source unchanged. I<Check that "
|
|
"the sparsification was successful before deleting the source image>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:55
|
|
msgid "The virtual machine I<must be shut down> before using this tool."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:59
|
|
msgid ""
|
|
"Virt-sparsify may require up to 2x the virtual size of the source disk image "
|
|
"(1 temporary copy + 1 destination image). This is in the worst case and "
|
|
"usually much less space is required."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:65
|
|
msgid "Virt-sparsify cannot resize disk images. To do that, use L<virt-resize(1)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:70
|
|
msgid ""
|
|
"Virt-sparsify cannot handle encrypted disks. Libguestfs supports encrypted "
|
|
"disks, but encrypted disks themselves cannot be sparsified."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:75
|
|
msgid ""
|
|
"Virt-sparsify cannot yet sparsify the space between partitions. Note that "
|
|
"this space is often used for critical items like bootloaders so it's not "
|
|
"really unused."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:81
|
|
msgid ""
|
|
"You may also want to read the manual pages for the associated tools "
|
|
"L<virt-filesystems(1)> and L<virt-df(1)> before starting."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:86
|
|
msgid "Typical usage is:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sparsify/virt-sparsify.pod:88
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-sparsify indisk outdisk\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:90
|
|
msgid ""
|
|
"which copies C<indisk> to C<outdisk>, making the output sparse. C<outdisk> "
|
|
"is created, or overwritten if it already exists. The format of the input "
|
|
"disk is detected (eg. qcow2) and the same format is used for the output "
|
|
"disk."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:95
|
|
msgid "To convert between formats, use the I<--convert> option:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sparsify/virt-sparsify.pod:97
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:99
|
|
msgid ""
|
|
"Virt-sparsify tries to zero and sparsify free space on every filesystem it "
|
|
"can find within the source disk image. You can get it to ignore (don't zero "
|
|
"free space on) certain filesystems by doing:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sparsify/virt-sparsify.pod:103
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:105
|
|
msgid "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sparsify/virt-sparsify.pod:116
|
|
msgid "B<--check-tmpdir=ignore>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sparsify/virt-sparsify.pod:118
|
|
msgid "B<--check-tmpdir=continue>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sparsify/virt-sparsify.pod:120
|
|
msgid "B<--check-tmpdir=warn>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sparsify/virt-sparsify.pod:122
|
|
msgid "B<--check-tmpdir=fail>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:124
|
|
msgid ""
|
|
"Check if L</TMPDIR> has enough space to complete the operation. This is "
|
|
"just an estimate."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:127
|
|
msgid "If the check indicates a problem, then you can either:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:133
|
|
msgid "B<ignore> it,"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:137
|
|
msgid "print a warning and B<continue>,"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:141
|
|
msgid ""
|
|
"B<warn> and wait for the user to press the Return key (this is the default), "
|
|
"or:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:146
|
|
msgid "B<fail> and exit."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sparsify/virt-sparsify.pod:150
|
|
msgid "B<--compress>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:152
|
|
msgid ""
|
|
"Compress the output file. This I<only> works if the output format is "
|
|
"C<qcow2>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sparsify/virt-sparsify.pod:155
|
|
msgid "B<--convert> raw"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sparsify/virt-sparsify.pod:157
|
|
msgid "B<--convert> qcow2"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sparsify/virt-sparsify.pod:159
|
|
msgid "B<--convert> [other formats]"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:161
|
|
msgid ""
|
|
"Use C<output-format> as the format for the destination image. If this is "
|
|
"not specified, then the input format is used."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:164
|
|
msgid "Supported and known-working output formats are: C<raw>, C<qcow2>, C<vdi>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:166
|
|
msgid ""
|
|
"You can also use any format supported by the L<qemu-img(1)> program, "
|
|
"eg. C<vmdk>, but support for other formats is reliant on qemu."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:169
|
|
msgid ""
|
|
"Specifying the I<--convert> option is usually a good idea, because then "
|
|
"virt-sparsify doesn't need to try to guess the input format."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:172
|
|
msgid "For fine-tuning the output format, see: I<--compress>, I<-o>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:176
|
|
msgid ""
|
|
"Debug garbage collection and memory allocation. This is only useful when "
|
|
"debugging memory problems in virt-sparsify or the OCaml libguestfs bindings."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sparsify/virt-sparsify.pod:190
|
|
msgid "B<--ignore> filesystem"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sparsify/virt-sparsify.pod:192
|
|
msgid "B<--ignore> volgroup"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:194
|
|
msgid ""
|
|
"Ignore the named filesystem. Free space on the filesystem will not be "
|
|
"zeroed, but existing blocks of zeroes will still be sparsified."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:197
|
|
msgid ""
|
|
"In the second form, this ignores the named volume group. Use the volume "
|
|
"group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sparsify/virt-sparsify.pod:208
|
|
msgid "B<-o> option[,option,...]"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:210
|
|
msgid ""
|
|
"Pass I<-o> option(s) to the L<qemu-img(1)> command to fine-tune the output "
|
|
"format. Options available depend on the output format (see I<--convert>) "
|
|
"and the installed version of the qemu-img program."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:214
|
|
msgid ""
|
|
"You should use I<-o> at most once. To pass multiple options, separate them "
|
|
"with commas, eg:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sparsify/virt-sparsify.pod:217
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-sparsify --convert qcow2 \\\n"
|
|
" -o cluster_size=512,preallocation=metadata ...\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:224
|
|
msgid "This disables progress bars and other unnecessary output."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sparsify/virt-sparsify.pod:242
|
|
msgid "B<--zero> partition"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sparsify/virt-sparsify.pod:244
|
|
msgid "B<--zero> logvol"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:246
|
|
msgid ""
|
|
"Zero the contents of the named partition or logical volume in the guest. "
|
|
"All data on the device is lost, but sparsification is excellent! You can "
|
|
"give this option multiple times."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:254
|
|
msgid ""
|
|
"The I<--machine-readable> option can be used to make the output more machine "
|
|
"friendly, which is useful when calling virt-sparsify from other programs, "
|
|
"GUIs etc."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:260
|
|
msgid ""
|
|
"Firstly use the option on its own to query the capabilities of the "
|
|
"virt-sparsify binary. Typical output looks like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sparsify/virt-sparsify.pod:263
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ virt-sparsify --machine-readable\n"
|
|
" virt-sparsify\n"
|
|
" ntfs\n"
|
|
" btrfs\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:293
|
|
msgid ""
|
|
"The calling program should treat messages sent to stderr as error messages. "
|
|
"In addition, virt-sparsify exits with a non-zero status code if there was a "
|
|
"fatal error."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:299
|
|
msgid ""
|
|
"All versions of virt-sparsify have supported the I<--machine-readable> "
|
|
"option."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:304
|
|
msgid ""
|
|
"Windows 8 \"fast startup\" can prevent virt-sparsify from working. See "
|
|
"L<guestfs(3)/WINDOWS HIBERNATION AND WINDOWS 8 FAST STARTUP>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:318
|
|
msgid ""
|
|
"Location of the temporary directory used for the potentially large temporary "
|
|
"overlay file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:321
|
|
msgid ""
|
|
"You should ensure there is enough free space in the worst case for a full "
|
|
"copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
|
|
"to another directory that has enough space."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:325
|
|
msgid "This defaults to C</tmp>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:327
|
|
msgid ""
|
|
"Note that if C<$TMPDIR> is a tmpfs (eg. if C</tmp> is on tmpfs, or if you "
|
|
"use C<TMPDIR=/dev/shm>), tmpfs defaults to a maximum size of I<half> of "
|
|
"physical RAM. If virt-sparsify exceeds this, it will hang. The solution is "
|
|
"either to use a real disk, or to increase the maximum size of the tmpfs "
|
|
"mountpoint, eg:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sparsify/virt-sparsify.pod:333
|
|
#, no-wrap
|
|
msgid ""
|
|
" mount -o remount,size=10G /tmp\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:337
|
|
msgid "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sparsify/virt-sparsify.pod:341
|
|
msgid ""
|
|
"L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
|
|
"L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, "
|
|
"L<qemu-img(1)>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1
|
|
msgid "guestfs_acl_delete_def_file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_acl_delete_def_file (guestfs_h *g,\n"
|
|
" const char *dir);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:89 ../src/guestfs-actions.pod:111 ../src/guestfs-actions.pod:494 ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:552 ../src/guestfs-actions.pod:579 ../src/guestfs-actions.pod:622 ../src/guestfs-actions.pod:635 ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:769 ../src/guestfs-actions.pod:789 ../src/guestfs-actions.pod:818 ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:891 ../src/guestfs-actions.pod:909 ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:1038 ../src/guestfs-actions.pod:1052 ../src/guestfs-actions.pod:1108 ../src/guestfs-actions.pod:1210 ../src/guestfs-actions.pod:1234 ../src/guestfs-actions.pod:1248 ../src/guestfs-actions.pod:1262 ../src/guestfs-actions.pod:1276 ../src/guestfs-actions.pod:1290 ../src/guestfs-actions.pod:1303 ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1396 ../src/guestfs-actions.pod:1432 ../src/guestfs-actions.pod:1445 ../src/guestfs-actions.pod:1457 ../src/guestfs-actions.pod:1487 ../src/guestfs-actions.pod:1502 ../src/guestfs-actions.pod:1568 ../src/guestfs-actions.pod:1745 ../src/guestfs-actions.pod:1765 ../src/guestfs-actions.pod:1783 ../src/guestfs-actions.pod:1873 ../src/guestfs-actions.pod:1932 ../src/guestfs-actions.pod:1978 ../src/guestfs-actions.pod:2032 ../src/guestfs-actions.pod:2101 ../src/guestfs-actions.pod:2155 ../src/guestfs-actions.pod:2209 ../src/guestfs-actions.pod:2268 ../src/guestfs-actions.pod:2322 ../src/guestfs-actions.pod:2341 ../src/guestfs-actions.pod:2355 ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:2402 ../src/guestfs-actions.pod:2519 ../src/guestfs-actions.pod:2632 ../src/guestfs-actions.pod:2663 ../src/guestfs-actions.pod:2688 ../src/guestfs-actions.pod:2754 ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:2929 ../src/guestfs-actions.pod:2955 ../src/guestfs-actions.pod:2982 ../src/guestfs-actions.pod:3252 ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3290 ../src/guestfs-actions.pod:3367 ../src/guestfs-actions.pod:3478 ../src/guestfs-actions.pod:4326 ../src/guestfs-actions.pod:4398 ../src/guestfs-actions.pod:4417 ../src/guestfs-actions.pod:4462 ../src/guestfs-actions.pod:4543 ../src/guestfs-actions.pod:4585 ../src/guestfs-actions.pod:4774 ../src/guestfs-actions.pod:4833 ../src/guestfs-actions.pod:4868 ../src/guestfs-actions.pod:6414 ../src/guestfs-actions.pod:6494 ../src/guestfs-actions.pod:6511 ../src/guestfs-actions.pod:6549 ../src/guestfs-actions.pod:6566 ../src/guestfs-actions.pod:6591 ../src/guestfs-actions.pod:6612 ../src/guestfs-actions.pod:6672 ../src/guestfs-actions.pod:7035 ../src/guestfs-actions.pod:7049 ../src/guestfs-actions.pod:7062 ../src/guestfs-actions.pod:7076 ../src/guestfs-actions.pod:7091 ../src/guestfs-actions.pod:7126 ../src/guestfs-actions.pod:7143 ../src/guestfs-actions.pod:7212 ../src/guestfs-actions.pod:7232 ../src/guestfs-actions.pod:7249 ../src/guestfs-actions.pod:7269 ../src/guestfs-actions.pod:7289 ../src/guestfs-actions.pod:7324 ../src/guestfs-actions.pod:7343 ../src/guestfs-actions.pod:7362 ../src/guestfs-actions.pod:7379 ../src/guestfs-actions.pod:7414 ../src/guestfs-actions.pod:7426 ../src/guestfs-actions.pod:7459 ../src/guestfs-actions.pod:7475 ../src/guestfs-actions.pod:7488 ../src/guestfs-actions.pod:7503 ../src/guestfs-actions.pod:7520 ../src/guestfs-actions.pod:7693 ../src/guestfs-actions.pod:7829 ../src/guestfs-actions.pod:7841 ../src/guestfs-actions.pod:7861 ../src/guestfs-actions.pod:7874 ../src/guestfs-actions.pod:7967 ../src/guestfs-actions.pod:8017 ../src/guestfs-actions.pod:8042 ../src/guestfs-actions.pod:8067 ../src/guestfs-actions.pod:8090 ../src/guestfs-actions.pod:8111 ../src/guestfs-actions.pod:8132 ../src/guestfs-actions.pod:8149 ../src/guestfs-actions.pod:8226 ../src/guestfs-actions.pod:8277 ../src/guestfs-actions.pod:8310 ../src/guestfs-actions.pod:8346 ../src/guestfs-actions.pod:8395 ../src/guestfs-actions.pod:8426 ../src/guestfs-actions.pod:8445 ../src/guestfs-actions.pod:8464 ../src/guestfs-actions.pod:8501 ../src/guestfs-actions.pod:8547 ../src/guestfs-actions.pod:8567 ../src/guestfs-actions.pod:8582 ../src/guestfs-actions.pod:8660 ../src/guestfs-actions.pod:8693 ../src/guestfs-actions.pod:8719 ../src/guestfs-actions.pod:8788 ../src/guestfs-actions.pod:8836 ../src/guestfs-actions.pod:8851 ../src/guestfs-actions.pod:8871 ../src/guestfs-actions.pod:8885 ../src/guestfs-actions.pod:8902 ../src/guestfs-actions.pod:8953 ../src/guestfs-actions.pod:9007 ../src/guestfs-actions.pod:9045 ../src/guestfs-actions.pod:9097 ../src/guestfs-actions.pod:9179 ../src/guestfs-actions.pod:9222 ../src/guestfs-actions.pod:9243 ../src/guestfs-actions.pod:9262 ../src/guestfs-actions.pod:9290 ../src/guestfs-actions.pod:9307 ../src/guestfs-actions.pod:9325 ../src/guestfs-actions.pod:9494 ../src/guestfs-actions.pod:9551 ../src/guestfs-actions.pod:9570 ../src/guestfs-actions.pod:9592 ../src/guestfs-actions.pod:9610 ../src/guestfs-actions.pod:9662 ../src/guestfs-actions.pod:9726 ../src/guestfs-actions.pod:9737 ../src/guestfs-actions.pod:9751 ../src/guestfs-actions.pod:9768 ../src/guestfs-actions.pod:9781 ../src/guestfs-actions.pod:9795 ../src/guestfs-actions.pod:10087 ../src/guestfs-actions.pod:10132 ../src/guestfs-actions.pod:10148 ../src/guestfs-actions.pod:10163 ../src/guestfs-actions.pod:10178 ../src/guestfs-actions.pod:10199 ../src/guestfs-actions.pod:10215 ../src/guestfs-actions.pod:10227 ../src/guestfs-actions.pod:10246 ../src/guestfs-actions.pod:10260 ../src/guestfs-actions.pod:10272 ../src/guestfs-actions.pod:10286 ../src/guestfs-actions.pod:10329 ../src/guestfs-actions.pod:10391 ../src/guestfs-actions.pod:10460 ../src/guestfs-actions.pod:10500 ../src/guestfs-actions.pod:10518 ../src/guestfs-actions.pod:10537 ../src/guestfs-actions.pod:10556 ../src/guestfs-actions.pod:10578 ../src/guestfs-actions.pod:10596 ../src/guestfs-actions.pod:10613 ../src/guestfs-actions.pod:10635 ../src/guestfs-actions.pod:10653 ../src/guestfs-actions.pod:10676 ../src/guestfs-actions.pod:10715 ../src/guestfs-actions.pod:10754 ../src/guestfs-actions.pod:10779 ../src/guestfs-actions.pod:10805 ../src/guestfs-actions.pod:10834 ../src/guestfs-actions.pod:10876 ../src/guestfs-actions.pod:10893 ../src/guestfs-actions.pod:10936 ../src/guestfs-actions.pod:10957 ../src/guestfs-actions.pod:10976 ../src/guestfs-actions.pod:10993 ../src/guestfs-actions.pod:11014 ../src/guestfs-actions.pod:11031 ../src/guestfs-actions.pod:11066 ../src/guestfs-actions.pod:11090 ../src/guestfs-actions.pod:11109 ../src/guestfs-actions.pod:11125 ../src/guestfs-actions.pod:11142 ../src/guestfs-actions.pod:11166 ../src/guestfs-actions.pod:11183 ../src/guestfs-actions.pod:11202 ../src/guestfs-actions.pod:11217 ../src/guestfs-actions.pod:11236 ../src/guestfs-actions.pod:11280 ../src/guestfs-actions.pod:11307 ../src/guestfs-actions.pod:11337 ../src/guestfs-actions.pod:11462 ../src/guestfs-actions.pod:11474 ../src/guestfs-actions.pod:11595 ../src/guestfs-actions.pod:11607 ../src/guestfs-actions.pod:11620 ../src/guestfs-actions.pod:11633 ../src/guestfs-actions.pod:11655 ../src/guestfs-actions.pod:11668 ../src/guestfs-actions.pod:11681 ../src/guestfs-actions.pod:11694 ../src/guestfs-actions.pod:11709 ../src/guestfs-actions.pod:11757 ../src/guestfs-actions.pod:11863 ../src/guestfs-actions.pod:11948 ../src/guestfs-actions.pod:11993 ../src/guestfs-actions.pod:12014 ../src/guestfs-actions.pod:12031 ../src/guestfs-actions.pod:12044 ../src/guestfs-actions.pod:12064 ../src/guestfs-actions.pod:12164 ../src/guestfs-actions.pod:12229 ../src/guestfs-actions.pod:12250 ../src/guestfs-actions.pod:12313 ../src/guestfs-actions.pod:12348 ../src/guestfs-actions.pod:12370 ../src/guestfs-actions.pod:12408 ../src/guestfs-actions.pod:12442 ../src/guestfs-actions.pod:12483 ../src/guestfs-actions.pod:12514 ../src/guestfs-actions.pod:12643 ../src/guestfs-actions.pod:12658 ../src/guestfs-actions.pod:12670 ../src/guestfs-actions.pod:12681 ../src/guestfs-actions.pod:12695 ../src/guestfs-actions.pod:12769 ../src/guestfs-actions.pod:12782 ../src/guestfs-actions.pod:12827 ../src/guestfs-actions.pod:12867 ../src/guestfs-actions.pod:12925 ../src/guestfs-actions.pod:12942 ../src/guestfs-actions.pod:12959 ../src/guestfs-actions.pod:12989 ../src/guestfs-actions.pod:13026 ../src/guestfs-actions.pod:13079 ../src/guestfs-actions.pod:13258 ../src/guestfs-actions.pod:13281 ../src/guestfs-actions.pod:13306 ../src/guestfs-actions.pod:13332
|
|
msgid "This function returns 0 on success or -1 on error."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12 ../src/guestfs-actions.pod:43 ../src/guestfs-actions.pod:91 ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1570
|
|
msgid "(Added in 1.19.63)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:14
|
|
msgid "guestfs_acl_get_file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:16
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_acl_get_file (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" const char *acltype);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:40 ../src/guestfs-actions.pod:705 ../src/guestfs-actions.pod:803 ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1552 ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1647 ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:1720 ../src/guestfs-actions.pod:1823 ../src/guestfs-actions.pod:2435 ../src/guestfs-actions.pod:2452 ../src/guestfs-actions.pod:2562 ../src/guestfs-actions.pod:2613 ../src/guestfs-actions.pod:2814 ../src/guestfs-actions.pod:3076 ../src/guestfs-actions.pod:3188 ../src/guestfs-actions.pod:3383 ../src/guestfs-actions.pod:3400 ../src/guestfs-actions.pod:3536 ../src/guestfs-actions.pod:3563 ../src/guestfs-actions.pod:3588 ../src/guestfs-actions.pod:3718 ../src/guestfs-actions.pod:3759 ../src/guestfs-actions.pod:3780 ../src/guestfs-actions.pod:3795 ../src/guestfs-actions.pod:3812 ../src/guestfs-actions.pod:3829 ../src/guestfs-actions.pod:3846 ../src/guestfs-actions.pod:4033 ../src/guestfs-actions.pod:4082 ../src/guestfs-actions.pod:4381 ../src/guestfs-actions.pod:4509 ../src/guestfs-actions.pod:4634 ../src/guestfs-actions.pod:4669 ../src/guestfs-actions.pod:4887 ../src/guestfs-actions.pod:5013 ../src/guestfs-actions.pod:5117 ../src/guestfs-actions.pod:5136 ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5379 ../src/guestfs-actions.pod:5400 ../src/guestfs-actions.pod:5434 ../src/guestfs-actions.pod:5509 ../src/guestfs-actions.pod:5529 ../src/guestfs-actions.pod:5549 ../src/guestfs-actions.pod:6642 ../src/guestfs-actions.pod:6725 ../src/guestfs-actions.pod:6760 ../src/guestfs-actions.pod:7005 ../src/guestfs-actions.pod:7021 ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7565 ../src/guestfs-actions.pod:7903 ../src/guestfs-actions.pod:8622 ../src/guestfs-actions.pod:9356 ../src/guestfs-actions.pod:9392 ../src/guestfs-actions.pod:9409 ../src/guestfs-actions.pod:9629 ../src/guestfs-actions.pod:9840 ../src/guestfs-actions.pod:10016 ../src/guestfs-actions.pod:10061 ../src/guestfs-actions.pod:11355 ../src/guestfs-actions.pod:11371 ../src/guestfs-actions.pod:11395 ../src/guestfs-actions.pod:11419 ../src/guestfs-actions.pod:12587 ../src/guestfs-actions.pod:12606 ../src/guestfs-actions.pod:12623 ../src/guestfs-actions.pod:12839 ../src/guestfs-actions.pod:13410
|
|
msgid ""
|
|
"This function returns a string, or NULL on error. I<The caller must free "
|
|
"the returned string after use>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:45
|
|
msgid "guestfs_acl_set_file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:47
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_acl_set_file (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" const char *acltype,\n"
|
|
" const char *acl);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:85
|
|
msgid ""
|
|
"You should use numeric UIDs and GIDs. To map usernames and groupnames to "
|
|
"the correct numeric ID in the context of the guest, use the Augeas functions "
|
|
"(see C<guestfs_aug_init>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:93
|
|
msgid "guestfs_add_cdrom"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:95
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_add_cdrom (guestfs_h *g,\n"
|
|
" const char *filename);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:99
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the "
|
|
"L</guestfs_add_drive_ro> call instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:108
|
|
msgid ""
|
|
"The image is added as read-only drive, so this function is equivalent of "
|
|
"C<guestfs_add_drive_ro>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:113 ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:1980 ../src/guestfs-actions.pod:3550 ../src/guestfs-actions.pod:3914 ../src/guestfs-actions.pod:4070 ../src/guestfs-actions.pod:6551 ../src/guestfs-actions.pod:6573 ../src/guestfs-actions.pod:8695 ../src/guestfs-actions.pod:10598 ../src/guestfs-actions.pod:10995 ../src/guestfs-actions.pod:11204 ../src/guestfs-actions.pod:11711 ../src/guestfs-actions.pod:12033 ../src/guestfs-actions.pod:12869
|
|
msgid "(Added in 0.3)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:115
|
|
msgid "guestfs_add_domain"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:117
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_add_domain (guestfs_h *g,\n"
|
|
" const char *dom,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:122 ../src/guestfs-actions.pod:264 ../src/guestfs-actions.pod:563 ../src/guestfs-actions.pod:1314 ../src/guestfs-actions.pod:1385 ../src/guestfs-actions.pod:1860 ../src/guestfs-actions.pod:1912 ../src/guestfs-actions.pod:1990 ../src/guestfs-actions.pod:2066 ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2250 ../src/guestfs-actions.pod:2466 ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:3451 ../src/guestfs-actions.pod:4186 ../src/guestfs-actions.pod:4570 ../src/guestfs-actions.pod:5149 ../src/guestfs-actions.pod:5888 ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:6040 ../src/guestfs-actions.pod:6103 ../src/guestfs-actions.pod:6165 ../src/guestfs-actions.pod:6269 ../src/guestfs-actions.pod:7628 ../src/guestfs-actions.pod:7915 ../src/guestfs-actions.pod:8175 ../src/guestfs-actions.pod:8288 ../src/guestfs-actions.pod:8488 ../src/guestfs-actions.pod:8593 ../src/guestfs-actions.pod:8705 ../src/guestfs-actions.pod:8754 ../src/guestfs-actions.pod:9019 ../src/guestfs-actions.pod:9080 ../src/guestfs-actions.pod:9143 ../src/guestfs-actions.pod:10073 ../src/guestfs-actions.pod:10298 ../src/guestfs-actions.pod:10365 ../src/guestfs-actions.pod:10427 ../src/guestfs-actions.pod:10688 ../src/guestfs-actions.pod:11720 ../src/guestfs-actions.pod:11847 ../src/guestfs-actions.pod:11913 ../src/guestfs-actions.pod:12075 ../src/guestfs-actions.pod:12301 ../src/guestfs-actions.pod:12358 ../src/guestfs-actions.pod:13003 ../src/guestfs-actions.pod:13059 ../src/guestfs-actions.pod:13131
|
|
msgid ""
|
|
"You may supply a list of optional arguments to this call. Use zero or more "
|
|
"of the following pairs of parameters, and terminate the list with C<-1> on "
|
|
"its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:127
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
|
|
" GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
|
|
" GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
|
|
" GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
|
|
" GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
|
|
" GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:134
|
|
msgid ""
|
|
"This function adds the disk(s) attached to the named libvirt domain C<dom>. "
|
|
"It works by connecting to libvirt, requesting the domain and domain XML from "
|
|
"libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
|
|
"one."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:215
|
|
msgid ""
|
|
"The other optional parameters are passed directly through to "
|
|
"C<guestfs_add_drive_opts>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:218 ../src/guestfs-actions.pod:692 ../src/guestfs-actions.pod:877 ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:1128 ../src/guestfs-actions.pod:1159 ../src/guestfs-actions.pod:1177 ../src/guestfs-actions.pod:1196 ../src/guestfs-actions.pod:2420 ../src/guestfs-actions.pod:2595 ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:3205 ../src/guestfs-actions.pod:3440 ../src/guestfs-actions.pod:3739 ../src/guestfs-actions.pod:3886 ../src/guestfs-actions.pod:3937 ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:4057 ../src/guestfs-actions.pod:4432 ../src/guestfs-actions.pod:4478 ../src/guestfs-actions.pod:4495 ../src/guestfs-actions.pod:4524 ../src/guestfs-actions.pod:4620 ../src/guestfs-actions.pod:4649 ../src/guestfs-actions.pod:4761 ../src/guestfs-actions.pod:5267 ../src/guestfs-actions.pod:5285 ../src/guestfs-actions.pod:6457 ../src/guestfs-actions.pod:6529 ../src/guestfs-actions.pod:7616 ../src/guestfs-actions.pod:8969 ../src/guestfs-actions.pod:8992 ../src/guestfs-actions.pod:9375 ../src/guestfs-actions.pod:9648 ../src/guestfs-actions.pod:9865 ../src/guestfs-actions.pod:9891 ../src/guestfs-actions.pod:12277 ../src/guestfs-actions.pod:12880 ../src/guestfs-actions.pod:12893 ../src/guestfs-actions.pod:12906 ../src/guestfs-actions.pod:13161
|
|
msgid "On error this function returns -1."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:220
|
|
msgid "(Added in 1.7.4)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:222
|
|
msgid "guestfs_add_domain_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:224
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_add_domain_va (guestfs_h *g,\n"
|
|
" const char *dom,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:229
|
|
msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:231 ../src/guestfs-actions.pod:242 ../src/guestfs-actions.pod:507 ../src/guestfs-actions.pod:518 ../src/guestfs-actions.pod:592 ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:1353 ../src/guestfs-actions.pod:1364 ../src/guestfs-actions.pod:1409 ../src/guestfs-actions.pod:1420 ../src/guestfs-actions.pod:1888 ../src/guestfs-actions.pod:1901 ../src/guestfs-actions.pod:1947 ../src/guestfs-actions.pod:1960 ../src/guestfs-actions.pod:2044 ../src/guestfs-actions.pod:2056 ../src/guestfs-actions.pod:2120 ../src/guestfs-actions.pod:2132 ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:2186 ../src/guestfs-actions.pod:2228 ../src/guestfs-actions.pod:2240 ../src/guestfs-actions.pod:2287 ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2532 ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:2767 ../src/guestfs-actions.pod:2778 ../src/guestfs-actions.pod:3491 ../src/guestfs-actions.pod:3502 ../src/guestfs-actions.pod:4243 ../src/guestfs-actions.pod:4255 ../src/guestfs-actions.pod:4598 ../src/guestfs-actions.pod:4609 ../src/guestfs-actions.pod:5233 ../src/guestfs-actions.pod:5245 ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:5928 ../src/guestfs-actions.pod:5993 ../src/guestfs-actions.pod:6004 ../src/guestfs-actions.pod:6070 ../src/guestfs-actions.pod:6081 ../src/guestfs-actions.pod:6132 ../src/guestfs-actions.pod:6143 ../src/guestfs-actions.pod:6195 ../src/guestfs-actions.pod:6206 ../src/guestfs-actions.pod:6298 ../src/guestfs-actions.pod:6309 ../src/guestfs-actions.pod:7707 ../src/guestfs-actions.pod:7719 ../src/guestfs-actions.pod:7980 ../src/guestfs-actions.pod:7991 ../src/guestfs-actions.pod:8240 ../src/guestfs-actions.pod:8252 ../src/guestfs-actions.pod:8323 ../src/guestfs-actions.pod:8334 ../src/guestfs-actions.pod:8514 ../src/guestfs-actions.pod:8525 ../src/guestfs-actions.pod:8636 ../src/guestfs-actions.pod:8647 ../src/guestfs-actions.pod:8733 ../src/guestfs-actions.pod:8745 ../src/guestfs-actions.pod:8801 ../src/guestfs-actions.pod:8812 ../src/guestfs-actions.pod:9059 ../src/guestfs-actions.pod:9071 ../src/guestfs-actions.pod:9110 ../src/guestfs-actions.pod:9121 ../src/guestfs-actions.pod:9192 ../src/guestfs-actions.pod:9203 ../src/guestfs-actions.pod:10100 ../src/guestfs-actions.pod:10111 ../src/guestfs-actions.pod:10343 ../src/guestfs-actions.pod:10355 ../src/guestfs-actions.pod:10405 ../src/guestfs-actions.pod:10417 ../src/guestfs-actions.pod:10474 ../src/guestfs-actions.pod:10486 ../src/guestfs-actions.pod:10729 ../src/guestfs-actions.pod:10741 ../src/guestfs-actions.pod:11770 ../src/guestfs-actions.pod:11781 ../src/guestfs-actions.pod:11877 ../src/guestfs-actions.pod:11889 ../src/guestfs-actions.pod:11962 ../src/guestfs-actions.pod:11974 ../src/guestfs-actions.pod:12177 ../src/guestfs-actions.pod:12188 ../src/guestfs-actions.pod:12326 ../src/guestfs-actions.pod:12337 ../src/guestfs-actions.pod:12382 ../src/guestfs-actions.pod:12392 ../src/guestfs-actions.pod:13039 ../src/guestfs-actions.pod:13050 ../src/guestfs-actions.pod:13092 ../src/guestfs-actions.pod:13103 ../src/guestfs-actions.pod:13174 ../src/guestfs-actions.pod:13185
|
|
msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:233
|
|
msgid "guestfs_add_domain_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:235
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_add_domain_argv (guestfs_h *g,\n"
|
|
" const char *dom,\n"
|
|
" const struct guestfs_add_domain_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:240
|
|
msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:244
|
|
msgid "guestfs_add_drive"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:246
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_add_drive (guestfs_h *g,\n"
|
|
" const char *filename);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:250
|
|
msgid ""
|
|
"This function is provided for backwards compatibility with earlier versions "
|
|
"of libguestfs. It simply calls L</guestfs_add_drive_opts> with no optional "
|
|
"arguments."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:257
|
|
msgid "guestfs_add_drive_opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:259
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_add_drive_opts (guestfs_h *g,\n"
|
|
" const char *filename,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:269
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_LABEL, const char *label,\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_PROTOCOL, const char *protocol,\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_SERVER, char *const *server,\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_USERNAME, const char *username,\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_SECRET, const char *secret,\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_CACHEMODE, const char *cachemode,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:283
|
|
msgid ""
|
|
"When this function is called before C<guestfs_launch> (the usual case) then "
|
|
"the first time you call this function, the disk appears in the API as "
|
|
"C</dev/sda>, the second time as C</dev/sdb>, and so on."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:317
|
|
msgid ""
|
|
"This forces the image format. If you omit this (or use C<guestfs_add_drive> "
|
|
"or C<guestfs_add_drive_ro>) then the format is automatically detected. "
|
|
"Possible formats include C<raw> and C<qcow2>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:328
|
|
msgid ""
|
|
"This rarely-used option lets you emulate the behaviour of the deprecated "
|
|
"C<guestfs_add_drive_with_if> call (q.v.)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:496
|
|
msgid "(Added in 1.5.23)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:498
|
|
msgid "guestfs_add_drive_opts_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:500
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_add_drive_opts_va (guestfs_h *g,\n"
|
|
" const char *filename,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:505
|
|
msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:509
|
|
msgid "guestfs_add_drive_opts_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:511
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_add_drive_opts_argv (guestfs_h *g,\n"
|
|
" const char *filename,\n"
|
|
" const struct guestfs_add_drive_opts_argv "
|
|
"*optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:516
|
|
msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:520
|
|
msgid "guestfs_add_drive_ro"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:522
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_add_drive_ro (guestfs_h *g,\n"
|
|
" const char *filename);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:526
|
|
msgid ""
|
|
"This function is the equivalent of calling C<guestfs_add_drive_opts> with "
|
|
"the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
|
|
"disk is added read-only, with the format being detected automatically."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:533
|
|
msgid "(Added in 1.0.38)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:535
|
|
msgid "guestfs_add_drive_ro_with_if"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:537
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
|
|
" const char *filename,\n"
|
|
" const char *iface);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:542 ../src/guestfs-actions.pod:612
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_add_drive> "
|
|
"call instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:549
|
|
msgid ""
|
|
"This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
|
|
"QEMU interface emulation to use at run time."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:554 ../src/guestfs-actions.pod:624 ../src/guestfs-actions.pod:4720
|
|
msgid "(Added in 1.0.84)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:556
|
|
msgid "guestfs_add_drive_scratch"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:558
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_add_drive_scratch (guestfs_h *g,\n"
|
|
" int64_t size,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:568
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_ADD_DRIVE_SCRATCH_NAME, const char *name,\n"
|
|
" GUESTFS_ADD_DRIVE_SCRATCH_LABEL, const char *label,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:576
|
|
msgid ""
|
|
"The optional arguments C<name> and C<label> are passed through to "
|
|
"C<guestfs_add_drive>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:581 ../src/guestfs-actions.pod:11185
|
|
msgid "(Added in 1.23.10)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:583
|
|
msgid "guestfs_add_drive_scratch_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:585
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_add_drive_scratch_va (guestfs_h *g,\n"
|
|
" int64_t size,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:590
|
|
msgid "This is the \"va_list variant\" of L</guestfs_add_drive_scratch>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:594
|
|
msgid "guestfs_add_drive_scratch_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:596
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_add_drive_scratch_argv (guestfs_h *g,\n"
|
|
" int64_t size,\n"
|
|
" const struct guestfs_add_drive_scratch_argv "
|
|
"*optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:601
|
|
msgid "This is the \"argv variant\" of L</guestfs_add_drive_scratch>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:605
|
|
msgid "guestfs_add_drive_with_if"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:607
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_add_drive_with_if (guestfs_h *g,\n"
|
|
" const char *filename,\n"
|
|
" const char *iface);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:619
|
|
msgid ""
|
|
"This is the same as C<guestfs_add_drive> but it allows you to specify the "
|
|
"QEMU interface emulation to use at run time."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:626
|
|
msgid "guestfs_aug_clear"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:628
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_aug_clear (guestfs_h *g,\n"
|
|
" const char *augpath);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:637 ../src/guestfs-actions.pod:4059
|
|
msgid "(Added in 1.3.4)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:639
|
|
msgid "guestfs_aug_close"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:641
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_aug_close (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:644
|
|
msgid ""
|
|
"Close the current Augeas handle and free up any resources used by it. After "
|
|
"calling this, you have to call C<guestfs_aug_init> again before you can use "
|
|
"any other Augeas functions."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:651 ../src/guestfs-actions.pod:676 ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:771 ../src/guestfs-actions.pod:791 ../src/guestfs-actions.pod:820 ../src/guestfs-actions.pod:851 ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879 ../src/guestfs-actions.pod:893 ../src/guestfs-actions.pod:911 ../src/guestfs-actions.pod:9937
|
|
msgid "(Added in 0.7)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:653
|
|
msgid "guestfs_aug_defnode"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:655
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_int_bool *\n"
|
|
" guestfs_aug_defnode (guestfs_h *g,\n"
|
|
" const char *name,\n"
|
|
" const char *expr,\n"
|
|
" const char *val);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:664
|
|
msgid ""
|
|
"If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
|
|
"calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
|
|
"containing that single node."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:672
|
|
msgid ""
|
|
"This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
|
|
"an error. I<The caller must call C<guestfs_free_int_bool> after use>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:678
|
|
msgid "guestfs_aug_defvar"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:680
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_aug_defvar (guestfs_h *g,\n"
|
|
" const char *name,\n"
|
|
" const char *expr);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:696
|
|
msgid "guestfs_aug_get"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:698
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_aug_get (guestfs_h *g,\n"
|
|
" const char *augpath);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:710
|
|
msgid "guestfs_aug_init"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:712
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_aug_init (guestfs_h *g,\n"
|
|
" const char *root,\n"
|
|
" int flags);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:721
|
|
msgid "You must call this before using any other C<guestfs_aug_*> commands."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:746
|
|
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<LIBGUESTFS_MEMSIZE> environment variable or call "
|
|
"C<guestfs_set_memsize>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:761
|
|
msgid "Do not load the tree in C<guestfs_aug_init>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:765
|
|
msgid "To close the handle, you can call C<guestfs_aug_close>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:773
|
|
msgid "guestfs_aug_insert"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:775
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_aug_insert (guestfs_h *g,\n"
|
|
" const char *augpath,\n"
|
|
" const char *label,\n"
|
|
" int before);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:793
|
|
msgid "guestfs_aug_label"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:795
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_aug_label (guestfs_h *g,\n"
|
|
" const char *augpath);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:806 ../src/guestfs-actions.pod:931
|
|
msgid "(Added in 1.23.14)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:808
|
|
msgid "guestfs_aug_load"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:810
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_aug_load (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:822
|
|
msgid "guestfs_aug_ls"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:824
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_aug_ls (guestfs_h *g,\n"
|
|
" const char *augpath);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:828
|
|
msgid ""
|
|
"This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
|
|
"sorting the resulting nodes into alphabetical order."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:847 ../src/guestfs-actions.pod:1022 ../src/guestfs-actions.pod:1842 ../src/guestfs-actions.pod:2836 ../src/guestfs-actions.pod:2862 ../src/guestfs-actions.pod:3018 ../src/guestfs-actions.pod:3044 ../src/guestfs-actions.pod:3330 ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3865 ../src/guestfs-actions.pod:4158 ../src/guestfs-actions.pod:4224 ../src/guestfs-actions.pod:4274 ../src/guestfs-actions.pod:4339 ../src/guestfs-actions.pod:4363 ../src/guestfs-actions.pod:4738 ../src/guestfs-actions.pod:4787 ../src/guestfs-actions.pod:5078 ../src/guestfs-actions.pod:5453 ../src/guestfs-actions.pod:5862 ../src/guestfs-actions.pod:6626 ../src/guestfs-actions.pod:6657 ../src/guestfs-actions.pod:6688 ../src/guestfs-actions.pod:6707 ../src/guestfs-actions.pod:6740 ../src/guestfs-actions.pod:6819 ../src/guestfs-actions.pod:6836 ../src/guestfs-actions.pod:6879 ../src/guestfs-actions.pod:6939 ../src/guestfs-actions.pod:6954 ../src/guestfs-actions.pod:6967 ../src/guestfs-actions.pod:6987 ../src/guestfs-actions.pod:7105 ../src/guestfs-actions.pod:7537 ../src/guestfs-actions.pod:8935 ../src/guestfs-actions.pod:9812 ../src/guestfs-actions.pod:9933 ../src/guestfs-actions.pod:10046 ../src/guestfs-actions.pod:11435 ../src/guestfs-actions.pod:11521 ../src/guestfs-actions.pod:11576 ../src/guestfs-actions.pod:11792 ../src/guestfs-actions.pod:11816 ../src/guestfs-actions.pod:12713 ../src/guestfs-actions.pod:12752 ../src/guestfs-actions.pod:12799 ../src/guestfs-actions.pod:13204 ../src/guestfs-actions.pod:13230 ../src/guestfs-actions.pod:13353 ../src/guestfs-actions.pod:13379 ../src/guestfs-actions.pod:13432 ../src/guestfs-actions.pod:13458
|
|
msgid ""
|
|
"This function returns a NULL-terminated array of strings (like "
|
|
"L<environ(3)>), or NULL if there was an error. I<The caller must free the "
|
|
"strings and the array after use>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:1767 ../src/guestfs-actions.pod:1785 ../src/guestfs-actions.pod:2900 ../src/guestfs-actions.pod:6030 ../src/guestfs-actions.pod:6155 ../src/guestfs-actions.pod:7364 ../src/guestfs-actions.pod:7428 ../src/guestfs-actions.pod:7843 ../src/guestfs-actions.pod:7876 ../src/guestfs-actions.pod:8164 ../src/guestfs-actions.pod:8939 ../src/guestfs-actions.pod:9753 ../src/guestfs-actions.pod:10229 ../src/guestfs-actions.pod:10262 ../src/guestfs-actions.pod:10274 ../src/guestfs-actions.pod:11282 ../src/guestfs-actions.pod:12291 ../src/guestfs-actions.pod:12350 ../src/guestfs-actions.pod:12697 ../src/guestfs-actions.pod:12994
|
|
msgid "(Added in 0.8)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:837
|
|
msgid "guestfs_aug_match"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:839
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_aug_match (guestfs_h *g,\n"
|
|
" const char *augpath);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:853
|
|
msgid "guestfs_aug_mv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:855
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_aug_mv (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:867
|
|
msgid "guestfs_aug_rm"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:869
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_aug_rm (guestfs_h *g,\n"
|
|
" const char *augpath);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:881
|
|
msgid "guestfs_aug_save"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:883
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_aug_save (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:888
|
|
msgid ""
|
|
"The flags which were passed to C<guestfs_aug_init> affect exactly how files "
|
|
"are saved."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:895
|
|
msgid "guestfs_aug_set"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:897
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_aug_set (guestfs_h *g,\n"
|
|
" const char *augpath,\n"
|
|
" const char *val);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:904
|
|
msgid ""
|
|
"In the Augeas API, it is possible to clear a node by setting the value to "
|
|
"NULL. Due to an oversight in the libguestfs API you cannot do that with "
|
|
"this call. Instead you must use the C<guestfs_aug_clear> call."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:913
|
|
msgid "guestfs_aug_setm"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:915
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_aug_setm (guestfs_h *g,\n"
|
|
" const char *base,\n"
|
|
" const char *sub,\n"
|
|
" const char *val);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:933
|
|
msgid "guestfs_available"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:935
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_available (guestfs_h *g,\n"
|
|
" char *const *groups);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:943
|
|
msgid ""
|
|
"The libguestfs groups, and the functions that those groups correspond to, "
|
|
"are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
|
|
"runtime by calling C<guestfs_available_all_groups>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:967
|
|
msgid ""
|
|
"C<guestfs_feature_available> is the same as this call, but with a slightly "
|
|
"simpler to use API: that call returns a boolean true/false instead of "
|
|
"throwing an error."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:973
|
|
msgid "You must call C<guestfs_launch> before calling this function."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:995
|
|
msgid ""
|
|
"This call was added in version C<1.0.80>. In previous versions of "
|
|
"libguestfs all you could do would be to speculatively execute a command to "
|
|
"find out if the daemon implemented it. See also C<guestfs_version>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1002
|
|
msgid "See also C<guestfs_filesystem_available>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1006 ../src/guestfs-actions.pod:2404
|
|
msgid "(Added in 1.0.80)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1008
|
|
msgid "guestfs_available_all_groups"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1010
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_available_all_groups (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1013
|
|
msgid ""
|
|
"This command returns a list of all optional groups that this daemon knows "
|
|
"about. Note this returns both supported and unsupported groups. To find "
|
|
"out which ones the daemon can actually support you have to call "
|
|
"C<guestfs_available> / C<guestfs_feature_available> on each member of the "
|
|
"returned list."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1019
|
|
msgid ""
|
|
"See also C<guestfs_available>, C<guestfs_feature_available> and "
|
|
"L<guestfs(3)/AVAILABILITY>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1026
|
|
msgid "(Added in 1.3.15)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1028
|
|
msgid "guestfs_base64_in"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1030
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_base64_in (guestfs_h *g,\n"
|
|
" const char *base64file,\n"
|
|
" const char *filename);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1040 ../src/guestfs-actions.pod:1054
|
|
msgid "(Added in 1.3.5)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1042
|
|
msgid "guestfs_base64_out"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1044
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_base64_out (guestfs_h *g,\n"
|
|
" const char *filename,\n"
|
|
" const char *base64file);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1056
|
|
msgid "guestfs_blkid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1058
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_blkid (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1089 ../src/guestfs-actions.pod:5053 ../src/guestfs-actions.pod:5321 ../src/guestfs-actions.pod:6857 ../src/guestfs-actions.pod:6922 ../src/guestfs-actions.pod:7755 ../src/guestfs-actions.pod:8915 ../src/guestfs-actions.pod:12204
|
|
msgid ""
|
|
"This function returns a NULL-terminated array of strings, or NULL if there "
|
|
"was an error. The array of strings will always have length C<2n+1>, where "
|
|
"C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
|
|
"caller must free the strings and the array after use>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1095
|
|
msgid "(Added in 1.15.9)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1097
|
|
msgid "guestfs_blockdev_flushbufs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1099
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_blockdev_flushbufs (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1145 ../src/guestfs-actions.pod:1161 ../src/guestfs-actions.pod:1179 ../src/guestfs-actions.pod:1198 ../src/guestfs-actions.pod:1212 ../src/guestfs-actions.pod:1236 ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1264
|
|
msgid "(Added in 0.9.3)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1112
|
|
msgid "guestfs_blockdev_getbsz"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1114
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_blockdev_getbsz (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1132
|
|
msgid "guestfs_blockdev_getro"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1134
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_blockdev_getro (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:2579 ../src/guestfs-actions.pod:2883 ../src/guestfs-actions.pod:2898 ../src/guestfs-actions.pod:2997 ../src/guestfs-actions.pod:3231 ../src/guestfs-actions.pod:3548 ../src/guestfs-actions.pod:3600 ../src/guestfs-actions.pod:3897 ../src/guestfs-actions.pod:3923 ../src/guestfs-actions.pod:3982 ../src/guestfs-actions.pod:3997 ../src/guestfs-actions.pod:4045 ../src/guestfs-actions.pod:4068 ../src/guestfs-actions.pod:5566 ../src/guestfs-actions.pod:5582 ../src/guestfs-actions.pod:5600 ../src/guestfs-actions.pod:5904 ../src/guestfs-actions.pod:5940 ../src/guestfs-actions.pod:5980 ../src/guestfs-actions.pod:6016 ../src/guestfs-actions.pod:6057 ../src/guestfs-actions.pod:6119 ../src/guestfs-actions.pod:6182 ../src/guestfs-actions.pod:6218 ../src/guestfs-actions.pod:6231 ../src/guestfs-actions.pod:6245 ../src/guestfs-actions.pod:6285 ../src/guestfs-actions.pod:6322 ../src/guestfs-actions.pod:6335 ../src/guestfs-actions.pod:6348 ../src/guestfs-actions.pod:6362 ../src/guestfs-actions.pod:6475 ../src/guestfs-actions.pod:9341
|
|
msgid "This function returns a C truth value on success or -1 on error."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1147
|
|
msgid "guestfs_blockdev_getsize64"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1149
|
|
#, no-wrap
|
|
msgid ""
|
|
" int64_t\n"
|
|
" guestfs_blockdev_getsize64 (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1155
|
|
msgid "See also C<guestfs_blockdev_getsz>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1163
|
|
msgid "guestfs_blockdev_getss"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1165
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_blockdev_getss (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1172
|
|
msgid ""
|
|
"(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
|
|
"that)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1181
|
|
msgid "guestfs_blockdev_getsz"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1183
|
|
#, no-wrap
|
|
msgid ""
|
|
" int64_t\n"
|
|
" guestfs_blockdev_getsz (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1190
|
|
msgid ""
|
|
"See also C<guestfs_blockdev_getss> for the real sector size of the device, "
|
|
"and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1200
|
|
msgid "guestfs_blockdev_rereadpt"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1202
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_blockdev_rereadpt (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1214
|
|
msgid "guestfs_blockdev_setbsz"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1216
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_blockdev_setbsz (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" int blocksize);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1221 ../src/guestfs-actions.pod:8262
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_mkfs> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1231
|
|
msgid ""
|
|
"If you need to set the filesystem block size, use the C<blocksize> option of "
|
|
"C<guestfs_mkfs>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1238
|
|
msgid "guestfs_blockdev_setro"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1240
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_blockdev_setro (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1252
|
|
msgid "guestfs_blockdev_setrw"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1254
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_blockdev_setrw (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1266
|
|
msgid "guestfs_btrfs_device_add"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1268
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_btrfs_device_add (guestfs_h *g,\n"
|
|
" char *const *devices,\n"
|
|
" const char *fs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1278 ../src/guestfs-actions.pod:1292 ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:1376 ../src/guestfs-actions.pod:1447 ../src/guestfs-actions.pod:1459 ../src/guestfs-actions.pod:1474 ../src/guestfs-actions.pod:1489 ../src/guestfs-actions.pod:1504
|
|
msgid "(Added in 1.17.35)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1280
|
|
msgid "guestfs_btrfs_device_delete"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1282
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_btrfs_device_delete (guestfs_h *g,\n"
|
|
" char *const *devices,\n"
|
|
" const char *fs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1294
|
|
msgid "guestfs_btrfs_filesystem_balance"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1296
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_btrfs_filesystem_balance (guestfs_h *g,\n"
|
|
" const char *fs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1307
|
|
msgid "guestfs_btrfs_filesystem_resize"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1309
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
|
|
" const char *mountpoint,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1319
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1342
|
|
msgid "(Added in 1.11.17)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1344
|
|
msgid "guestfs_btrfs_filesystem_resize_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1346
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
|
|
" const char *mountpoint,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1351
|
|
msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1355
|
|
msgid "guestfs_btrfs_filesystem_resize_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1357
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
|
|
" const char *mountpoint,\n"
|
|
" const struct "
|
|
"guestfs_btrfs_filesystem_resize_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1362
|
|
msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1366
|
|
msgid "guestfs_btrfs_filesystem_sync"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1368
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_btrfs_filesystem_sync (guestfs_h *g,\n"
|
|
" const char *fs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1378
|
|
msgid "guestfs_btrfs_fsck"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1380
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_btrfs_fsck (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1390
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_BTRFS_FSCK_SUPERBLOCK, int64_t superblock,\n"
|
|
" GUESTFS_BTRFS_FSCK_REPAIR, int repair,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:1434
|
|
msgid "(Added in 1.17.43)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1400
|
|
msgid "guestfs_btrfs_fsck_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1402
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_btrfs_fsck_va (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1407
|
|
msgid "This is the \"va_list variant\" of L</guestfs_btrfs_fsck>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1411
|
|
msgid "guestfs_btrfs_fsck_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1413
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_btrfs_fsck_argv (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const struct guestfs_btrfs_fsck_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1418
|
|
msgid "This is the \"argv variant\" of L</guestfs_btrfs_fsck>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1422
|
|
msgid "guestfs_btrfs_set_seeding"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1424
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_btrfs_set_seeding (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" int seeding);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1436
|
|
msgid "guestfs_btrfs_subvolume_create"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1438
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_btrfs_subvolume_create (guestfs_h *g,\n"
|
|
" const char *dest);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1449
|
|
msgid "guestfs_btrfs_subvolume_delete"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1451
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_btrfs_subvolume_delete (guestfs_h *g,\n"
|
|
" const char *subvolume);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1461
|
|
msgid "guestfs_btrfs_subvolume_list"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1463
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_btrfssubvolume_list *\n"
|
|
" guestfs_btrfs_subvolume_list (guestfs_h *g,\n"
|
|
" const char *fs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1470
|
|
msgid ""
|
|
"This function returns a C<struct guestfs_btrfssubvolume_list *>, or NULL if "
|
|
"there was an error. I<The caller must call "
|
|
"C<guestfs_free_btrfssubvolume_list> after use>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1476
|
|
msgid "guestfs_btrfs_subvolume_set_default"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1478
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_btrfs_subvolume_set_default (guestfs_h *g,\n"
|
|
" int64_t id,\n"
|
|
" const char *fs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1483
|
|
msgid ""
|
|
"Set the subvolume of the btrfs filesystem C<fs> which will be mounted by "
|
|
"default. See C<guestfs_btrfs_subvolume_list> to get a list of subvolumes."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1491
|
|
msgid "guestfs_btrfs_subvolume_snapshot"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1493
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_btrfs_subvolume_snapshot (guestfs_h *g,\n"
|
|
" const char *source,\n"
|
|
" const char *dest);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1506
|
|
msgid "guestfs_canonical_device_name"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1508
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_canonical_device_name (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1530
|
|
msgid "Converted to C</dev/VG/LV> form using C<guestfs_lvm_canonical_lvm_name>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1539 ../src/guestfs-actions.pod:2422 ../src/guestfs-actions.pod:7618
|
|
msgid "(Added in 1.19.7)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1541
|
|
msgid "guestfs_cap_get_file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1543
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_cap_get_file (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1557
|
|
msgid "guestfs_cap_set_file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1559
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_cap_set_file (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" const char *cap);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1572
|
|
msgid "guestfs_case_sensitive_path"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1574
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_case_sensitive_path (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1597
|
|
msgid ""
|
|
"C<guestfs_case_sensitive_path> attempts to resolve the true case of each "
|
|
"element in the path. It will return a resolved path if either the full path "
|
|
"or its parent directory exists. If the parent directory exists but the full "
|
|
"path does not, the case of the parent directory will be correctly resolved, "
|
|
"and the remainder appended unmodified. For example, if the file "
|
|
"C<\"/Windows/System32/netkvm.sys\"> exists:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-actions.pod:1606
|
|
msgid "C<guestfs_case_sensitive_path> (\"/windows/system32/netkvm.sys\")"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-actions.pod:1610
|
|
msgid "C<guestfs_case_sensitive_path> (\"/windows/system32/NoSuchFile\")"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-actions.pod:1614
|
|
msgid "C<guestfs_case_sensitive_path> (\"/windows/system33/netkvm.sys\")"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1620
|
|
msgid ""
|
|
"I<Note>: Because of the above behaviour, C<guestfs_case_sensitive_path> "
|
|
"cannot be used to check for the existence of a file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1627
|
|
msgid "See also C<guestfs_realpath>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1632 ../src/guestfs-actions.pod:12609
|
|
msgid "(Added in 1.0.75)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1634
|
|
msgid "guestfs_cat"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1636
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_cat (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1642
|
|
msgid ""
|
|
"Because, in C, this function returns a C<char *>, there is no way to "
|
|
"differentiate between a C<\\0> character in a file and end of string. To "
|
|
"handle binary files, use the C<guestfs_read_file> or C<guestfs_download> "
|
|
"functions."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1650 ../src/guestfs-actions.pod:6840 ../src/guestfs-actions.pod:6991 ../src/guestfs-actions.pod:7008 ../src/guestfs-actions.pod:7109 ../src/guestfs-actions.pod:7541 ../src/guestfs-actions.pod:7555 ../src/guestfs-actions.pod:9816 ../src/guestfs-actions.pod:9830 ../src/guestfs-actions.pod:12803 ../src/guestfs-actions.pod:12817
|
|
msgid "(Added in 0.4)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1652
|
|
msgid "guestfs_checksum"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1654
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_checksum (guestfs_h *g,\n"
|
|
" const char *csumtype,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1700
|
|
msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1702
|
|
msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1707 ../src/guestfs-actions.pod:2639 ../src/guestfs-actions.pod:4024 ../src/guestfs-actions.pod:5942 ../src/guestfs-actions.pod:6018 ../src/guestfs-actions.pod:6220 ../src/guestfs-actions.pod:6247 ../src/guestfs-actions.pod:12415
|
|
msgid "(Added in 1.0.2)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1709
|
|
msgid "guestfs_checksum_device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1711
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_checksum_device (guestfs_h *g,\n"
|
|
" const char *csumtype,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1716
|
|
msgid ""
|
|
"This call computes the MD5, SHAx or CRC checksum of the contents of the "
|
|
"device named C<device>. For the types of checksums supported see the "
|
|
"C<guestfs_checksum> command."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1723 ../src/guestfs-actions.pod:9133 ../src/guestfs-actions.pod:9309 ../src/guestfs-actions.pod:9343 ../src/guestfs-actions.pod:9377 ../src/guestfs-actions.pod:9594 ../src/guestfs-actions.pod:12231 ../src/guestfs-actions.pod:12252 ../src/guestfs-actions.pod:12829
|
|
msgid "(Added in 1.3.2)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1725
|
|
msgid "guestfs_checksums_out"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1727
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_checksums_out (guestfs_h *g,\n"
|
|
" const char *csumtype,\n"
|
|
" const char *directory,\n"
|
|
" const char *sumsfile);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1747
|
|
msgid "(Added in 1.3.7)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1749
|
|
msgid "guestfs_chmod"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1751
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_chmod (guestfs_h *g,\n"
|
|
" int mode,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1769
|
|
msgid "guestfs_chown"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1771
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_chown (guestfs_h *g,\n"
|
|
" int owner,\n"
|
|
" int group,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1787
|
|
msgid "guestfs_command"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1789
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_command (guestfs_h *g,\n"
|
|
" char *const *arguments);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1798
|
|
msgid ""
|
|
"The single parameter is an argv-style list of arguments. The first element "
|
|
"is the name of the program to run. Subsequent elements are parameters. The "
|
|
"list must be non-empty (ie. must contain a program name). Note that the "
|
|
"command runs directly, and is I<not> invoked via the shell (see "
|
|
"C<guestfs_sh>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1829 ../src/guestfs-actions.pod:1849 ../src/guestfs-actions.pod:3079
|
|
msgid "(Added in 0.9.1)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1831
|
|
msgid "guestfs_command_lines"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1833
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_command_lines (guestfs_h *g,\n"
|
|
" char *const *arguments);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1837
|
|
msgid ""
|
|
"This is the same as C<guestfs_command>, but splits the result into a list of "
|
|
"lines."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1840
|
|
msgid "See also: C<guestfs_sh_lines>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1851
|
|
msgid "guestfs_compress_device_out"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1853
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_compress_device_out (guestfs_h *g,\n"
|
|
" const char *ctype,\n"
|
|
" const char *device,\n"
|
|
" const char *zdevice,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1865
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1870
|
|
msgid ""
|
|
"The C<ctype> and optional C<level> parameters have the same meaning as in "
|
|
"C<guestfs_compress_out>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1875 ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:4010 ../src/guestfs-actions.pod:11127
|
|
msgid "(Added in 1.13.15)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1877
|
|
msgid "guestfs_compress_device_out_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1879
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_compress_device_out_va (guestfs_h *g,\n"
|
|
" const char *ctype,\n"
|
|
" const char *device,\n"
|
|
" const char *zdevice,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1886
|
|
msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1890
|
|
msgid "guestfs_compress_device_out_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1892
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_compress_device_out_argv (guestfs_h *g,\n"
|
|
" const char *ctype,\n"
|
|
" const char *device,\n"
|
|
" const char *zdevice,\n"
|
|
" const struct "
|
|
"guestfs_compress_device_out_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1899
|
|
msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1903
|
|
msgid "guestfs_compress_out"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1905
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_compress_out (guestfs_h *g,\n"
|
|
" const char *ctype,\n"
|
|
" const char *file,\n"
|
|
" const char *zfile,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1917
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1936
|
|
msgid "guestfs_compress_out_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1938
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_compress_out_va (guestfs_h *g,\n"
|
|
" const char *ctype,\n"
|
|
" const char *file,\n"
|
|
" const char *zfile,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1945
|
|
msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1949
|
|
msgid "guestfs_compress_out_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1951
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_compress_out_argv (guestfs_h *g,\n"
|
|
" const char *ctype,\n"
|
|
" const char *file,\n"
|
|
" const char *zfile,\n"
|
|
" const struct guestfs_compress_out_argv "
|
|
"*optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:1958
|
|
msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1962
|
|
msgid "guestfs_config"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1964
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_config (guestfs_h *g,\n"
|
|
" const char *hvparam,\n"
|
|
" const char *hvvalue);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:1982
|
|
msgid "guestfs_copy_attributes"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1984
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_copy_attributes (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:1995
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_COPY_ATTRIBUTES_ALL, int all,\n"
|
|
" GUESTFS_COPY_ATTRIBUTES_MODE, int mode,\n"
|
|
" GUESTFS_COPY_ATTRIBUTES_XATTRIBUTES, int xattributes,\n"
|
|
" GUESTFS_COPY_ATTRIBUTES_OWNERSHIP, int ownership,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2017
|
|
msgid ""
|
|
"Copy the Linux extended attributes (xattrs) from C<source> to "
|
|
"C<destination>. This flag does nothing if the I<linuxxattrs> feature is not "
|
|
"available (see C<guestfs_feature_available>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2034
|
|
msgid "guestfs_copy_attributes_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2036
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_copy_attributes_va (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2042
|
|
msgid "This is the \"va_list variant\" of L</guestfs_copy_attributes>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2046
|
|
msgid "guestfs_copy_attributes_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2048
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_copy_attributes_argv (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest,\n"
|
|
" const struct guestfs_copy_attributes_argv "
|
|
"*optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2054
|
|
msgid "This is the \"argv variant\" of L</guestfs_copy_attributes>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2058
|
|
msgid "guestfs_copy_device_to_device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2060
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_copy_device_to_device (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2071
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
|
|
" GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
|
|
" GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
|
|
" GUESTFS_COPY_DEVICE_TO_DEVICE_SPARSE, int sparse,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2076
|
|
msgid ""
|
|
"The four calls C<guestfs_copy_device_to_device>, "
|
|
"C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
|
|
"C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
|
|
"destination (device|file)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:2157 ../src/guestfs-actions.pod:2211 ../src/guestfs-actions.pod:2270 ../src/guestfs-actions.pod:2324 ../src/guestfs-actions.pod:2634 ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:2710 ../src/guestfs-actions.pod:3254 ../src/guestfs-actions.pod:3292 ../src/guestfs-actions.pod:6568 ../src/guestfs-actions.pod:12410 ../src/guestfs-actions.pod:12444 ../src/guestfs-actions.pod:13260 ../src/guestfs-actions.pod:13283 ../src/guestfs-actions.pod:13308
|
|
msgid ""
|
|
"This long-running command can generate progress notification messages so "
|
|
"that the caller can display a progress bar or indicator. To receive these "
|
|
"messages, the caller must register a progress event callback. See "
|
|
"L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2108 ../src/guestfs-actions.pod:2162 ../src/guestfs-actions.pod:2216 ../src/guestfs-actions.pod:2275 ../src/guestfs-actions.pod:9650
|
|
msgid "(Added in 1.13.25)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2110
|
|
msgid "guestfs_copy_device_to_device_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2112
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_copy_device_to_device_va (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2118
|
|
msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2122
|
|
msgid "guestfs_copy_device_to_device_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2124
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest,\n"
|
|
" const struct "
|
|
"guestfs_copy_device_to_device_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2130
|
|
msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2134
|
|
msgid "guestfs_copy_device_to_file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2136
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_copy_device_to_file (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2147
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
|
|
" GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
|
|
" GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
|
|
" GUESTFS_COPY_DEVICE_TO_FILE_SPARSE, int sparse,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:2206 ../src/guestfs-actions.pod:2260
|
|
msgid "See C<guestfs_copy_device_to_device> for a general overview of this call."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2164
|
|
msgid "guestfs_copy_device_to_file_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2166
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_copy_device_to_file_va (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2172
|
|
msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2176
|
|
msgid "guestfs_copy_device_to_file_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2178
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest,\n"
|
|
" const struct "
|
|
"guestfs_copy_device_to_file_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2184
|
|
msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2188
|
|
msgid "guestfs_copy_file_to_device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2190
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_copy_file_to_device (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2201
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
|
|
" GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
|
|
" GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
|
|
" GUESTFS_COPY_FILE_TO_DEVICE_SPARSE, int sparse,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2218
|
|
msgid "guestfs_copy_file_to_device_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2220
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_copy_file_to_device_va (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2226
|
|
msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2230
|
|
msgid "guestfs_copy_file_to_device_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2232
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest,\n"
|
|
" const struct "
|
|
"guestfs_copy_file_to_device_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2238
|
|
msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2242
|
|
msgid "guestfs_copy_file_to_file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2244
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_copy_file_to_file (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2255
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
|
|
" GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
|
|
" GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
|
|
" GUESTFS_COPY_FILE_TO_FILE_SPARSE, int sparse,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2263
|
|
msgid ""
|
|
"This is B<not> the function you want for copying files. This is for copying "
|
|
"blocks within existing files. See C<guestfs_cp>, C<guestfs_cp_a> and "
|
|
"C<guestfs_mv> for general file copying and moving functions."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2277
|
|
msgid "guestfs_copy_file_to_file_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2279
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_copy_file_to_file_va (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2285
|
|
msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2289
|
|
msgid "guestfs_copy_file_to_file_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2291
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest,\n"
|
|
" const struct guestfs_copy_file_to_file_argv "
|
|
"*optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2297
|
|
msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2301
|
|
msgid "guestfs_copy_size"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2303
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_copy_size (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest,\n"
|
|
" int64_t size);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2309 ../src/guestfs-actions.pod:2385
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the "
|
|
"L</guestfs_copy_device_to_device> call instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2329 ../src/guestfs-actions.pod:7568 ../src/guestfs-actions.pod:9843 ../src/guestfs-actions.pod:12717 ../src/guestfs-actions.pod:12756 ../src/guestfs-actions.pod:12842
|
|
msgid "(Added in 1.0.87)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2331
|
|
msgid "guestfs_cp"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2333
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_cp (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2343 ../src/guestfs-actions.pod:2357 ../src/guestfs-actions.pod:2616 ../src/guestfs-actions.pod:2690 ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:8955 ../src/guestfs-actions.pod:9664
|
|
msgid "(Added in 1.0.18)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2345
|
|
msgid "guestfs_cp_a"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2347
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_cp_a (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2359
|
|
msgid "guestfs_cp_r"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2361
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_cp_r (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2369
|
|
msgid ""
|
|
"Most users should use C<guestfs_cp_a> instead. This command is useful when "
|
|
"you don't want to preserve permissions, because the target filesystem does "
|
|
"not support it (primarily when writing to DOS FAT filesystems)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2376
|
|
msgid "(Added in 1.21.38)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2378
|
|
msgid "guestfs_dd"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2380
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_dd (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2397
|
|
msgid ""
|
|
"If the destination is a device, it must be as large or larger than the "
|
|
"source file or device, otherwise the copy will fail. This command cannot do "
|
|
"partial copies (see C<guestfs_copy_device_to_device>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2406
|
|
msgid "guestfs_device_index"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2408
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_device_index (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2415
|
|
msgid ""
|
|
"Index numbers start from 0. The named device must exist, for example as a "
|
|
"string returned from C<guestfs_list_devices>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2418
|
|
msgid "See also C<guestfs_list_devices>, C<guestfs_part_to_dev>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2424
|
|
msgid "guestfs_df"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2426
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_df (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2431 ../src/guestfs-actions.pod:2448
|
|
msgid ""
|
|
"This command is mostly useful for interactive sessions. It is I<not> "
|
|
"intended that you try to parse the output string. Use C<guestfs_statvfs> "
|
|
"from programs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2438 ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:2715 ../src/guestfs-actions.pod:4346 ../src/guestfs-actions.pod:4370 ../src/guestfs-actions.pod:4742 ../src/guestfs-actions.pod:7906 ../src/guestfs-actions.pod:8853 ../src/guestfs-actions.pod:11799 ../src/guestfs-actions.pod:11823 ../src/guestfs-actions.pod:12882 ../src/guestfs-actions.pod:12895 ../src/guestfs-actions.pod:12908
|
|
msgid "(Added in 1.0.54)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2440
|
|
msgid "guestfs_df_h"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2442
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_df_h (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2457
|
|
msgid "guestfs_disk_create"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2459
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_disk_create (guestfs_h *g,\n"
|
|
" const char *filename,\n"
|
|
" const char *format,\n"
|
|
" int64_t size,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2471
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_DISK_CREATE_BACKINGFILE, const char *backingfile,\n"
|
|
" GUESTFS_DISK_CREATE_BACKINGFORMAT, const char *backingformat,\n"
|
|
" GUESTFS_DISK_CREATE_PREALLOCATION, const char *preallocation,\n"
|
|
" GUESTFS_DISK_CREATE_COMPAT, const char *compat,\n"
|
|
" GUESTFS_DISK_CREATE_CLUSTERSIZE, int clustersize,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2516
|
|
msgid ""
|
|
"Note that this call does not add the new disk to the handle. You may need "
|
|
"to call C<guestfs_add_drive_opts> separately."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2521
|
|
msgid "guestfs_disk_create_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2523
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_disk_create_va (guestfs_h *g,\n"
|
|
" const char *filename,\n"
|
|
" const char *format,\n"
|
|
" int64_t size,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2530
|
|
msgid "This is the \"va_list variant\" of L</guestfs_disk_create>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2534
|
|
msgid "guestfs_disk_create_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2536
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_disk_create_argv (guestfs_h *g,\n"
|
|
" const char *filename,\n"
|
|
" const char *format,\n"
|
|
" int64_t size,\n"
|
|
" const struct guestfs_disk_create_argv "
|
|
"*optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2543
|
|
msgid "This is the \"argv variant\" of L</guestfs_disk_create>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2547
|
|
msgid "guestfs_disk_format"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2549
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_disk_format (guestfs_h *g,\n"
|
|
" const char *filename);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2565
|
|
msgid "(Added in 1.19.38)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2567
|
|
msgid "guestfs_disk_has_backing_file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2569
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_disk_has_backing_file (guestfs_h *g,\n"
|
|
" const char *filename);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2597
|
|
msgid "(Added in 1.19.39)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2583
|
|
msgid "guestfs_disk_virtual_size"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2585
|
|
#, no-wrap
|
|
msgid ""
|
|
" int64_t\n"
|
|
" guestfs_disk_virtual_size (guestfs_h *g,\n"
|
|
" const char *filename);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2599
|
|
msgid "guestfs_dmesg"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2601
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_dmesg (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2608
|
|
msgid ""
|
|
"Another way to get the same information is to enable verbose messages with "
|
|
"C<guestfs_set_verbose> or by setting the environment variable "
|
|
"C<LIBGUESTFS_DEBUG=1> before running the program."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2618
|
|
msgid "guestfs_download"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2620
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_download (guestfs_h *g,\n"
|
|
" const char *remotefilename,\n"
|
|
" const char *filename);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2630
|
|
msgid "See also C<guestfs_upload>, C<guestfs_cat>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2641
|
|
msgid "guestfs_download_offset"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2643
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_download_offset (guestfs_h *g,\n"
|
|
" const char *remotefilename,\n"
|
|
" const char *filename,\n"
|
|
" int64_t offset,\n"
|
|
" int64_t size);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2656
|
|
msgid ""
|
|
"Note that there is no limit on the amount of data that can be downloaded "
|
|
"with this call, unlike with C<guestfs_pread>, and this call always reads the "
|
|
"full amount unless an error occurs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2661
|
|
msgid "See also C<guestfs_download>, C<guestfs_pread>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2670 ../src/guestfs-actions.pod:12449
|
|
msgid "(Added in 1.5.17)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2672
|
|
msgid "guestfs_drop_caches"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2674
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_drop_caches (guestfs_h *g,\n"
|
|
" int whattodrop);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2692
|
|
msgid "guestfs_du"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2694
|
|
#, no-wrap
|
|
msgid ""
|
|
" int64_t\n"
|
|
" guestfs_du (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2717
|
|
msgid "guestfs_e2fsck"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2719
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_e2fsck (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2729
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_E2FSCK_CORRECT, int correct,\n"
|
|
" GUESTFS_E2FSCK_FORCEALL, int forceall,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2756
|
|
msgid "(Added in 1.15.17)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2758
|
|
msgid "guestfs_e2fsck_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2760
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_e2fsck_va (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2765
|
|
msgid "This is the \"va_list variant\" of L</guestfs_e2fsck>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2769
|
|
msgid "guestfs_e2fsck_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2771
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_e2fsck_argv (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const struct guestfs_e2fsck_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2776
|
|
msgid "This is the \"argv variant\" of L</guestfs_e2fsck>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2780
|
|
msgid "guestfs_e2fsck_f"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2782
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_e2fsck_f (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2786
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_e2fsck> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2799
|
|
msgid "(Added in 1.0.29)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2801
|
|
msgid "guestfs_echo_daemon"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2803
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_echo_daemon (guestfs_h *g,\n"
|
|
" char *const *words);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2812
|
|
msgid "See also C<guestfs_ping_daemon>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2817 ../src/guestfs-actions.pod:4047 ../src/guestfs-actions.pod:11168
|
|
msgid "(Added in 1.0.69)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2819
|
|
msgid "guestfs_egrep"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2821
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_egrep (guestfs_h *g,\n"
|
|
" const char *regex,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:3008 ../src/guestfs-actions.pod:3034 ../src/guestfs-actions.pod:4264 ../src/guestfs-actions.pod:13194 ../src/guestfs-actions.pod:13220 ../src/guestfs-actions.pod:13343 ../src/guestfs-actions.pod:13369 ../src/guestfs-actions.pod:13422 ../src/guestfs-actions.pod:13448
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_grep> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2843 ../src/guestfs-actions.pod:2869 ../src/guestfs-actions.pod:2957 ../src/guestfs-actions.pod:3025 ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:4175 ../src/guestfs-actions.pod:4281 ../src/guestfs-actions.pod:4763 ../src/guestfs-actions.pod:4776 ../src/guestfs-actions.pod:4791 ../src/guestfs-actions.pod:4835 ../src/guestfs-actions.pod:4857 ../src/guestfs-actions.pod:4870 ../src/guestfs-actions.pod:7037 ../src/guestfs-actions.pod:7051 ../src/guestfs-actions.pod:7064 ../src/guestfs-actions.pod:7078 ../src/guestfs-actions.pod:8584 ../src/guestfs-actions.pod:10019 ../src/guestfs-actions.pod:10064 ../src/guestfs-actions.pod:11597 ../src/guestfs-actions.pod:11609 ../src/guestfs-actions.pod:11622 ../src/guestfs-actions.pod:11635 ../src/guestfs-actions.pod:11657 ../src/guestfs-actions.pod:11670 ../src/guestfs-actions.pod:11683 ../src/guestfs-actions.pod:11696 ../src/guestfs-actions.pod:13211 ../src/guestfs-actions.pod:13237 ../src/guestfs-actions.pod:13360 ../src/guestfs-actions.pod:13386 ../src/guestfs-actions.pod:13439 ../src/guestfs-actions.pod:13465
|
|
msgid "(Added in 1.0.66)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2845
|
|
msgid "guestfs_egrepi"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2847
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_egrepi (guestfs_h *g,\n"
|
|
" const char *regex,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2871
|
|
msgid "guestfs_equal"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2873
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_equal (guestfs_h *g,\n"
|
|
" const char *file1,\n"
|
|
" const char *file2);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2887
|
|
msgid "guestfs_exists"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2889
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_exists (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2896
|
|
msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2902
|
|
msgid "guestfs_extlinux"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2904
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_extlinux (guestfs_h *g,\n"
|
|
" const char *directory);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2908
|
|
msgid ""
|
|
"Install the SYSLINUX bootloader on the device mounted at C<directory>. "
|
|
"Unlike C<guestfs_syslinux> which requires a FAT filesystem, this can be used "
|
|
"on an ext2/3/4 or btrfs filesystem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2915
|
|
msgid ""
|
|
"You also have to mark the partition as \"active\" "
|
|
"(C<guestfs_part_set_bootable>) and a Master Boot Record must be installed "
|
|
"(eg. using C<guestfs_pwrite_device>) on the first sector of the whole disk. "
|
|
"The SYSLINUX package comes with some suitable Master Boot Records. See the "
|
|
"L<extlinux(1)> man page for further information."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2927
|
|
msgid "See also C<guestfs_syslinux>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2931 ../src/guestfs-actions.pod:11759
|
|
msgid "(Added in 1.21.27)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2933
|
|
msgid "guestfs_fallocate"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2935
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_fallocate (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" int len);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2940
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
|
|
"call instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2959
|
|
msgid "guestfs_fallocate64"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2961
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_fallocate64 (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" int64_t len);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2970
|
|
msgid ""
|
|
"Note that this call allocates disk blocks for the file. To create a sparse "
|
|
"file use C<guestfs_truncate_size> instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2973
|
|
msgid ""
|
|
"The deprecated call C<guestfs_fallocate> does the same, but owing to an "
|
|
"oversight it only allowed 30 bit lengths to be specified, effectively "
|
|
"limiting the maximum size of files created through that call to 1GB."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2984
|
|
msgid "(Added in 1.3.17)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:2986
|
|
msgid "guestfs_feature_available"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:2988
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_feature_available (guestfs_h *g,\n"
|
|
" char *const *groups);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2992
|
|
msgid ""
|
|
"This is the same as C<guestfs_available>, but unlike that call it returns a "
|
|
"simple true/false boolean result, instead of throwing an exception if a "
|
|
"feature is not found. For other documentation see C<guestfs_available>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:2999 ../src/guestfs-actions.pod:3566 ../src/guestfs-actions.pod:10615
|
|
msgid "(Added in 1.21.26)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3001
|
|
msgid "guestfs_fgrep"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3003
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_fgrep (guestfs_h *g,\n"
|
|
" const char *pattern,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3027
|
|
msgid "guestfs_fgrepi"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3029
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_fgrepi (guestfs_h *g,\n"
|
|
" const char *pattern,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3053
|
|
msgid "guestfs_file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3055
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_file (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3073
|
|
msgid ""
|
|
"See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
|
|
"C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3081
|
|
msgid "guestfs_file_architecture"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3083
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_file_architecture (guestfs_h *g,\n"
|
|
" const char *filename);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3191 ../src/guestfs-actions.pod:3386 ../src/guestfs-actions.pod:3403 ../src/guestfs-actions.pod:4890 ../src/guestfs-actions.pod:5016 ../src/guestfs-actions.pod:5082 ../src/guestfs-actions.pod:5269 ../src/guestfs-actions.pod:5287 ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:5403 ../src/guestfs-actions.pod:5512 ../src/guestfs-actions.pod:5866 ../src/guestfs-actions.pod:6233
|
|
msgid "(Added in 1.5.3)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3193
|
|
msgid "guestfs_filesize"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3195
|
|
#, no-wrap
|
|
msgid ""
|
|
" int64_t\n"
|
|
" guestfs_filesize (guestfs_h *g,\n"
|
|
" const char *file);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3201
|
|
msgid ""
|
|
"To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
|
|
"C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
|
|
"devices, use C<guestfs_blockdev_getsize64>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3207
|
|
msgid "(Added in 1.0.82)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3209
|
|
msgid "guestfs_filesystem_available"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3211
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_filesystem_available (guestfs_h *g,\n"
|
|
" const char *filesystem);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3219
|
|
msgid "You must call C<guestfs_launch> before using this command."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3228
|
|
msgid ""
|
|
"See also C<guestfs_available>, C<guestfs_feature_available>, "
|
|
"L<guestfs(3)/AVAILABILITY>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3233
|
|
msgid "(Added in 1.19.5)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3235
|
|
msgid "guestfs_fill"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3237
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_fill (guestfs_h *g,\n"
|
|
" int c,\n"
|
|
" int len,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3247
|
|
msgid ""
|
|
"To fill a file with zero bytes (sparsely), it is much more efficient to use "
|
|
"C<guestfs_truncate_size>. To create a file with a pattern of repeating "
|
|
"bytes use C<guestfs_fill_pattern>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3259
|
|
msgid "(Added in 1.0.79)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3261
|
|
msgid "guestfs_fill_dir"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3263
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_fill_dir (guestfs_h *g,\n"
|
|
" const char *dir,\n"
|
|
" int nr);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:7128
|
|
msgid "(Added in 1.19.32)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3277
|
|
msgid "guestfs_fill_pattern"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3279
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_fill_pattern (guestfs_h *g,\n"
|
|
" const char *pattern,\n"
|
|
" int len,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3285
|
|
msgid ""
|
|
"This function is like C<guestfs_fill> except that it creates a new file of "
|
|
"length C<len> containing the repeating pattern of bytes in C<pattern>. The "
|
|
"pattern is truncated if necessary to ensure the length of the file is "
|
|
"exactly C<len> bytes."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3297
|
|
msgid "(Added in 1.3.12)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3299
|
|
msgid "guestfs_find"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3301
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_find (guestfs_h *g,\n"
|
|
" const char *directory);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3317
|
|
msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3334 ../src/guestfs-actions.pod:7505 ../src/guestfs-actions.pod:10180
|
|
msgid "(Added in 1.0.27)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3336
|
|
msgid "guestfs_find0"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3338
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_find0 (guestfs_h *g,\n"
|
|
" const char *directory,\n"
|
|
" const char *files);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3347
|
|
msgid ""
|
|
"This command works the same way as C<guestfs_find> with the following "
|
|
"exceptions:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3369
|
|
msgid "(Added in 1.0.74)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3371
|
|
msgid "guestfs_findfs_label"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3373
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_findfs_label (guestfs_h *g,\n"
|
|
" const char *label);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3381
|
|
msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3388
|
|
msgid "guestfs_findfs_uuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3390
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_findfs_uuid (guestfs_h *g,\n"
|
|
" const char *uuid);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3398
|
|
msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3405
|
|
msgid "guestfs_fsck"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3407
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_fsck (guestfs_h *g,\n"
|
|
" const char *fstype,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3442 ../src/guestfs-actions.pod:13265
|
|
msgid "(Added in 1.0.16)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3444
|
|
msgid "guestfs_fstrim"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3446
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_fstrim (guestfs_h *g,\n"
|
|
" const char *mountpoint,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3456
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_FSTRIM_OFFSET, int64_t offset,\n"
|
|
" GUESTFS_FSTRIM_LENGTH, int64_t length,\n"
|
|
" GUESTFS_FSTRIM_MINIMUMFREEEXTENT, int64_t minimumfreeextent,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3473
|
|
msgid ""
|
|
"See also C<guestfs_zero_free_space>. That is a slightly different operation "
|
|
"that turns free space in the filesystem into zeroes. It is valid to call "
|
|
"C<guestfs_fstrim> either instead of, or after calling "
|
|
"C<guestfs_zero_free_space>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3480
|
|
msgid "(Added in 1.19.6)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3482
|
|
msgid "guestfs_fstrim_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3484
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_fstrim_va (guestfs_h *g,\n"
|
|
" const char *mountpoint,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3489
|
|
msgid "This is the \"va_list variant\" of L</guestfs_fstrim>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3493
|
|
msgid "guestfs_fstrim_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3495
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_fstrim_argv (guestfs_h *g,\n"
|
|
" const char *mountpoint,\n"
|
|
" const struct guestfs_fstrim_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3500
|
|
msgid "This is the \"argv variant\" of L</guestfs_fstrim>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3504
|
|
msgid "guestfs_get_append"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3506
|
|
#, no-wrap
|
|
msgid ""
|
|
" const char *\n"
|
|
" guestfs_get_append (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3514
|
|
msgid ""
|
|
"This function returns a string which may be NULL. There is no way to return "
|
|
"an error from this function. The string is owned by the guest handle and "
|
|
"must I<not> be freed."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:9783 ../src/guestfs-actions.pod:10558 ../src/guestfs-actions.pod:11339 ../src/guestfs-actions.pod:11358 ../src/guestfs-actions.pod:11374 ../src/guestfs-actions.pod:11398 ../src/guestfs-actions.pod:12645 ../src/guestfs-actions.pod:12660 ../src/guestfs-actions.pod:13334
|
|
msgid "(Added in 1.0.26)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3520
|
|
msgid "guestfs_get_attach_method"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3522
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_get_attach_method (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3525
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_get_backend> "
|
|
"call instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3534 ../src/guestfs-actions.pod:3561
|
|
msgid "See C<guestfs_set_backend> and L<guestfs(3)/BACKEND>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3539 ../src/guestfs-actions.pod:10580
|
|
msgid "(Added in 1.9.8)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3541
|
|
msgid "guestfs_get_autosync"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3543
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_get_autosync (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3552
|
|
msgid "guestfs_get_backend"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3554
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_get_backend (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3568
|
|
msgid "guestfs_get_backend_settings"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3570
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_get_backend_settings (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3581
|
|
msgid "guestfs_get_cachedir"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3583
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_get_cachedir (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3591 ../src/guestfs-actions.pod:4036 ../src/guestfs-actions.pod:10655 ../src/guestfs-actions.pod:11144
|
|
msgid "(Added in 1.19.58)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3593
|
|
msgid "guestfs_get_direct"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3595
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_get_direct (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3602 ../src/guestfs-actions.pod:10678
|
|
msgid "(Added in 1.0.72)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3604
|
|
msgid "guestfs_get_e2attrs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3606
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_get_e2attrs (guestfs_h *g,\n"
|
|
" const char *file);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3713
|
|
msgid "See also C<guestfs_set_e2attrs>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3715
|
|
msgid ""
|
|
"Don't confuse these attributes with extended attributes (see "
|
|
"C<guestfs_getxattr>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3721 ../src/guestfs-actions.pod:3741 ../src/guestfs-actions.pod:10717 ../src/guestfs-actions.pod:10756
|
|
msgid "(Added in 1.17.31)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3723
|
|
msgid "guestfs_get_e2generation"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3725
|
|
#, no-wrap
|
|
msgid ""
|
|
" int64_t\n"
|
|
" guestfs_get_e2generation (guestfs_h *g,\n"
|
|
" const char *file);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3737
|
|
msgid "See C<guestfs_set_e2generation>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3743
|
|
msgid "guestfs_get_e2label"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3745
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_get_e2label (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3749
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
|
|
"call instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3762 ../src/guestfs-actions.pod:3783 ../src/guestfs-actions.pod:10781 ../src/guestfs-actions.pod:10807
|
|
msgid "(Added in 1.0.15)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3764
|
|
msgid "guestfs_get_e2uuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3766
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_get_e2uuid (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3770
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
|
|
"call instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3785
|
|
msgid "guestfs_get_hv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3787
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_get_hv (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3798 ../src/guestfs-actions.pod:10836
|
|
msgid "(Added in 1.23.17)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3800
|
|
msgid "guestfs_get_libvirt_requested_credential_challenge"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3802
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_get_libvirt_requested_credential_challenge (guestfs_h *g,\n"
|
|
" int index);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3815 ../src/guestfs-actions.pod:3832 ../src/guestfs-actions.pod:3849 ../src/guestfs-actions.pod:3869 ../src/guestfs-actions.pod:10895 ../src/guestfs-actions.pod:10938
|
|
msgid "(Added in 1.19.52)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3817
|
|
msgid "guestfs_get_libvirt_requested_credential_defresult"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3819
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_get_libvirt_requested_credential_defresult (guestfs_h *g,\n"
|
|
" int index);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3834
|
|
msgid "guestfs_get_libvirt_requested_credential_prompt"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3836
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_get_libvirt_requested_credential_prompt (guestfs_h *g,\n"
|
|
" int index);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3851
|
|
msgid "guestfs_get_libvirt_requested_credentials"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3853
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_get_libvirt_requested_credentials (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3859
|
|
msgid ""
|
|
"Return the list of credentials requested by libvirt. Possible values are a "
|
|
"subset of the strings provided when you called "
|
|
"C<guestfs_set_libvirt_supported_credentials>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3871
|
|
msgid "guestfs_get_memsize"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3873
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_get_memsize (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3879
|
|
msgid ""
|
|
"If C<guestfs_set_memsize> was not called on this handle, and if "
|
|
"C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
|
|
"value for memsize."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3888 ../src/guestfs-actions.pod:8151 ../src/guestfs-actions.pod:8428 ../src/guestfs-actions.pod:8447 ../src/guestfs-actions.pod:8466 ../src/guestfs-actions.pod:8478 ../src/guestfs-actions.pod:8549 ../src/guestfs-actions.pod:8569 ../src/guestfs-actions.pod:10006 ../src/guestfs-actions.pod:10959 ../src/guestfs-actions.pod:11309 ../src/guestfs-actions.pod:12279
|
|
msgid "(Added in 1.0.55)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3890
|
|
msgid "guestfs_get_network"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3892
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_get_network (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3899 ../src/guestfs-actions.pod:10978
|
|
msgid "(Added in 1.5.4)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3901
|
|
msgid "guestfs_get_path"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3903
|
|
#, no-wrap
|
|
msgid ""
|
|
" const char *\n"
|
|
" guestfs_get_path (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3911 ../src/guestfs-actions.pod:3948 ../src/guestfs-actions.pod:3970
|
|
msgid ""
|
|
"This function returns a string, or NULL on error. The string is owned by "
|
|
"the guest handle and must I<not> be freed."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3916
|
|
msgid "guestfs_get_pgroup"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3918
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_get_pgroup (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3925 ../src/guestfs-actions.pod:11016 ../src/guestfs-actions.pod:12485 ../src/guestfs-actions.pod:12961
|
|
msgid "(Added in 1.11.18)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3927
|
|
msgid "guestfs_get_pid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3929
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_get_pid (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3939
|
|
msgid "(Added in 1.0.56)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3941
|
|
msgid "guestfs_get_program"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3943
|
|
#, no-wrap
|
|
msgid ""
|
|
" const char *\n"
|
|
" guestfs_get_program (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3946
|
|
msgid "Get the program name. See C<guestfs_set_program>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3951 ../src/guestfs-actions.pod:11033
|
|
msgid "(Added in 1.21.29)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3953
|
|
msgid "guestfs_get_qemu"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3955
|
|
#, no-wrap
|
|
msgid ""
|
|
" const char *\n"
|
|
" guestfs_get_qemu (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3958
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_get_hv> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3973 ../src/guestfs-actions.pod:11068
|
|
msgid "(Added in 1.0.6)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3975
|
|
msgid "guestfs_get_recovery_proc"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3977
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_get_recovery_proc (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3984 ../src/guestfs-actions.pod:6593 ../src/guestfs-actions.pod:7192 ../src/guestfs-actions.pod:7600 ../src/guestfs-actions.pod:7863 ../src/guestfs-actions.pod:9690 ../src/guestfs-actions.pod:10050 ../src/guestfs-actions.pod:11092 ../src/guestfs-actions.pod:12046 ../src/guestfs-actions.pod:12066 ../src/guestfs-actions.pod:12516
|
|
msgid "(Added in 1.0.77)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:3986
|
|
msgid "guestfs_get_selinux"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:3988
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_get_selinux (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3991
|
|
msgid ""
|
|
"This returns the current setting of the selinux flag which is passed to the "
|
|
"appliance at boot time. See C<guestfs_set_selinux>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:3999 ../src/guestfs-actions.pod:4085 ../src/guestfs-actions.pod:11111 ../src/guestfs-actions.pod:11219
|
|
msgid "(Added in 1.0.67)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4001
|
|
msgid "guestfs_get_smp"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4003
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_get_smp (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4012
|
|
msgid "guestfs_get_state"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4014
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_get_state (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4017
|
|
msgid ""
|
|
"This returns the current state as an opaque integer. This is only useful "
|
|
"for printing debug and internal error messages."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4026
|
|
msgid "guestfs_get_tmpdir"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4028
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_get_tmpdir (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4038
|
|
msgid "guestfs_get_trace"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4040
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_get_trace (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4049
|
|
msgid "guestfs_get_umask"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4051
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_get_umask (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4054
|
|
msgid ""
|
|
"Return the current umask. By default the umask is C<022> unless it has been "
|
|
"set by calling C<guestfs_umask>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4061
|
|
msgid "guestfs_get_verbose"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4063
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_get_verbose (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4072
|
|
msgid "guestfs_getcon"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4074
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_getcon (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4079
|
|
msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4087
|
|
msgid "guestfs_getxattr"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4089
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_getxattr (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" const char *name,\n"
|
|
" size_t *size_r);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4095
|
|
msgid ""
|
|
"Get a single extended attribute from file C<path> named C<name>. This call "
|
|
"follows symlinks. If you want to lookup an extended attribute for the "
|
|
"symlink itself, use C<guestfs_lgetxattr>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4099 ../src/guestfs-actions.pod:6777
|
|
msgid ""
|
|
"Normally it is better to get all extended attributes from a file in one go "
|
|
"by calling C<guestfs_getxattrs>. However some Linux filesystem "
|
|
"implementations are buggy and do not provide a way to list out attributes. "
|
|
"For these filesystems (notably ntfs-3g) you have to know the names of the "
|
|
"extended attributes you want in advance and call this function."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4109
|
|
msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4111 ../src/guestfs-actions.pod:4687 ../src/guestfs-actions.pod:4713 ../src/guestfs-actions.pod:5217 ../src/guestfs-actions.pod:6789 ../src/guestfs-actions.pod:9683 ../src/guestfs-actions.pod:9709 ../src/guestfs-actions.pod:9911 ../src/guestfs-actions.pod:12732
|
|
msgid ""
|
|
"This function returns a buffer, or NULL on error. The size of the returned "
|
|
"buffer is written to C<*size_r>. I<The caller must free the returned buffer "
|
|
"after use>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4115 ../src/guestfs-actions.pod:6793
|
|
msgid "(Added in 1.7.24)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4117
|
|
msgid "guestfs_getxattrs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4119
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_xattr_list *\n"
|
|
" guestfs_getxattrs (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4129
|
|
msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4131 ../src/guestfs-actions.pod:6439 ../src/guestfs-actions.pod:6805 ../src/guestfs-actions.pod:7596
|
|
msgid ""
|
|
"This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
|
|
"an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4135 ../src/guestfs-actions.pod:6809 ../src/guestfs-actions.pod:7093 ../src/guestfs-actions.pod:7145 ../src/guestfs-actions.pod:10150 ../src/guestfs-actions.pod:11238 ../src/guestfs-actions.pod:13413
|
|
msgid "(Added in 1.0.59)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4137
|
|
msgid "guestfs_glob_expand"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4139
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_glob_expand (guestfs_h *g,\n"
|
|
" const char *pattern);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4154
|
|
msgid ""
|
|
"Notice that there is no equivalent command for expanding a device name "
|
|
"(eg. C</dev/sd*>). Use C<guestfs_list_devices>, C<guestfs_list_partitions> "
|
|
"etc functions instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4162 ../src/guestfs-actions.pod:11422 ../src/guestfs-actions.pod:11439
|
|
msgid "(Added in 1.0.50)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4164
|
|
msgid "guestfs_grep"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4166
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_grep (guestfs_h *g,\n"
|
|
" const char *regex,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4171
|
|
msgid ""
|
|
"This function is provided for backwards compatibility with earlier versions "
|
|
"of libguestfs. It simply calls L</guestfs_grep_opts> with no optional "
|
|
"arguments."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4178
|
|
msgid "guestfs_grep_opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4180
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_grep_opts (guestfs_h *g,\n"
|
|
" const char *regex,\n"
|
|
" const char *path,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4191
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_GREP_OPTS_EXTENDED, int extended,\n"
|
|
" GUESTFS_GREP_OPTS_FIXED, int fixed,\n"
|
|
" GUESTFS_GREP_OPTS_INSENSITIVE, int insensitive,\n"
|
|
" GUESTFS_GREP_OPTS_COMPRESSED, int compressed,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4231 ../src/guestfs-actions.pod:13081
|
|
msgid "(Added in 1.19.28)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4233
|
|
msgid "guestfs_grep_opts_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4235
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_grep_opts_va (guestfs_h *g,\n"
|
|
" const char *regex,\n"
|
|
" const char *path,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4241
|
|
msgid "This is the \"va_list variant\" of L</guestfs_grep_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4245
|
|
msgid "guestfs_grep_opts_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4247
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_grep_opts_argv (guestfs_h *g,\n"
|
|
" const char *regex,\n"
|
|
" const char *path,\n"
|
|
" const struct guestfs_grep_opts_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4253
|
|
msgid "This is the \"argv variant\" of L</guestfs_grep_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4257
|
|
msgid "guestfs_grepi"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4259
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_grepi (guestfs_h *g,\n"
|
|
" const char *regex,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4283
|
|
msgid "guestfs_grub_install"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4285
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_grub_install (guestfs_h *g,\n"
|
|
" const char *root,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4328
|
|
msgid "(Added in 1.0.17)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4330
|
|
msgid "guestfs_head"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4332
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_head (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4348
|
|
msgid "guestfs_head_n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4350
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_head_n (guestfs_h *g,\n"
|
|
" int nrlines,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4372
|
|
msgid "guestfs_hexdump"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4374
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_hexdump (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4387 ../src/guestfs-actions.pod:11528 ../src/guestfs-actions.pod:11583
|
|
msgid "(Added in 1.0.22)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4389
|
|
msgid "guestfs_hivex_close"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4391
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_hivex_close (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4400 ../src/guestfs-actions.pod:4419 ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:4464 ../src/guestfs-actions.pod:4480 ../src/guestfs-actions.pod:4497 ../src/guestfs-actions.pod:4512 ../src/guestfs-actions.pod:4526 ../src/guestfs-actions.pod:4545 ../src/guestfs-actions.pod:4561 ../src/guestfs-actions.pod:4587 ../src/guestfs-actions.pod:4622 ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4651 ../src/guestfs-actions.pod:4672 ../src/guestfs-actions.pod:4691
|
|
msgid "(Added in 1.19.35)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4402
|
|
msgid "guestfs_hivex_commit"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4404
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_hivex_commit (guestfs_h *g,\n"
|
|
" const char *filename);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4421
|
|
msgid "guestfs_hivex_node_add_child"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4423
|
|
#, no-wrap
|
|
msgid ""
|
|
" int64_t\n"
|
|
" guestfs_hivex_node_add_child (guestfs_h *g,\n"
|
|
" int64_t parent,\n"
|
|
" const char *name);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4436
|
|
msgid "guestfs_hivex_node_children"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4438
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_hivex_node_list *\n"
|
|
" guestfs_hivex_node_children (guestfs_h *g,\n"
|
|
" int64_t nodeh);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4446
|
|
msgid ""
|
|
"This function returns a C<struct guestfs_hivex_node_list *>, or NULL if "
|
|
"there was an error. I<The caller must call C<guestfs_free_hivex_node_list> "
|
|
"after use>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4452
|
|
msgid "guestfs_hivex_node_delete_child"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4454
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_hivex_node_delete_child (guestfs_h *g,\n"
|
|
" int64_t nodeh);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4466
|
|
msgid "guestfs_hivex_node_get_child"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4468
|
|
#, no-wrap
|
|
msgid ""
|
|
" int64_t\n"
|
|
" guestfs_hivex_node_get_child (guestfs_h *g,\n"
|
|
" int64_t nodeh,\n"
|
|
" const char *name);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4482
|
|
msgid "guestfs_hivex_node_get_value"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4484
|
|
#, no-wrap
|
|
msgid ""
|
|
" int64_t\n"
|
|
" guestfs_hivex_node_get_value (guestfs_h *g,\n"
|
|
" int64_t nodeh,\n"
|
|
" const char *key);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4499
|
|
msgid "guestfs_hivex_node_name"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4501
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_hivex_node_name (guestfs_h *g,\n"
|
|
" int64_t nodeh);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4514
|
|
msgid "guestfs_hivex_node_parent"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4516
|
|
#, no-wrap
|
|
msgid ""
|
|
" int64_t\n"
|
|
" guestfs_hivex_node_parent (guestfs_h *g,\n"
|
|
" int64_t nodeh);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4528
|
|
msgid "guestfs_hivex_node_set_value"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4530
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_hivex_node_set_value (guestfs_h *g,\n"
|
|
" int64_t nodeh,\n"
|
|
" const char *key,\n"
|
|
" int64_t t,\n"
|
|
" const char *val,\n"
|
|
" size_t val_size);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4547
|
|
msgid "guestfs_hivex_node_values"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4549
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_hivex_value_list *\n"
|
|
" guestfs_hivex_node_values (guestfs_h *g,\n"
|
|
" int64_t nodeh);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4557
|
|
msgid ""
|
|
"This function returns a C<struct guestfs_hivex_value_list *>, or NULL if "
|
|
"there was an error. I<The caller must call C<guestfs_free_hivex_value_list> "
|
|
"after use>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4563
|
|
msgid "guestfs_hivex_open"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4565
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_hivex_open (guestfs_h *g,\n"
|
|
" const char *filename,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4575
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_HIVEX_OPEN_VERBOSE, int verbose,\n"
|
|
" GUESTFS_HIVEX_OPEN_DEBUG, int debug,\n"
|
|
" GUESTFS_HIVEX_OPEN_WRITE, int write,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4589
|
|
msgid "guestfs_hivex_open_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4591
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_hivex_open_va (guestfs_h *g,\n"
|
|
" const char *filename,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4596
|
|
msgid "This is the \"va_list variant\" of L</guestfs_hivex_open>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4600
|
|
msgid "guestfs_hivex_open_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4602
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_hivex_open_argv (guestfs_h *g,\n"
|
|
" const char *filename,\n"
|
|
" const struct guestfs_hivex_open_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4607
|
|
msgid "This is the \"argv variant\" of L</guestfs_hivex_open>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4611
|
|
msgid "guestfs_hivex_root"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4613
|
|
#, no-wrap
|
|
msgid ""
|
|
" int64_t\n"
|
|
" guestfs_hivex_root (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4624
|
|
msgid "guestfs_hivex_value_key"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4626
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_hivex_value_key (guestfs_h *g,\n"
|
|
" int64_t valueh);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4639
|
|
msgid "guestfs_hivex_value_type"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4641
|
|
#, no-wrap
|
|
msgid ""
|
|
" int64_t\n"
|
|
" guestfs_hivex_value_type (guestfs_h *g,\n"
|
|
" int64_t valueh);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4653
|
|
msgid "guestfs_hivex_value_utf8"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4655
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_hivex_value_utf8 (guestfs_h *g,\n"
|
|
" int64_t valueh);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4659
|
|
msgid ""
|
|
"This calls C<guestfs_hivex_value_value> (which returns the data field from a "
|
|
"hivex value tuple). It then assumes that the field is a UTF-16LE string and "
|
|
"converts the result to UTF-8 (or if this is not possible, it returns an "
|
|
"error)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4674
|
|
msgid "guestfs_hivex_value_value"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4676
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_hivex_value_value (guestfs_h *g,\n"
|
|
" int64_t valueh,\n"
|
|
" size_t *size_r);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4685
|
|
msgid "See also: C<guestfs_hivex_value_utf8>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4693
|
|
msgid "guestfs_initrd_cat"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4695
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_initrd_cat (guestfs_h *g,\n"
|
|
" const char *initrdpath,\n"
|
|
" const char *filename,\n"
|
|
" size_t *size_r);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4711
|
|
msgid "See also C<guestfs_initrd_list>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4722
|
|
msgid "guestfs_initrd_list"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4724
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_initrd_list (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4744
|
|
msgid "guestfs_inotify_add_watch"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4746
|
|
#, no-wrap
|
|
msgid ""
|
|
" int64_t\n"
|
|
" guestfs_inotify_add_watch (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" int mask);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4765
|
|
msgid "guestfs_inotify_close"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4767
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_inotify_close (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4778
|
|
msgid "guestfs_inotify_files"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4780
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_inotify_files (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4783
|
|
msgid ""
|
|
"This function is a helpful wrapper around C<guestfs_inotify_read> which just "
|
|
"returns a list of pathnames of objects that were touched. The returned "
|
|
"pathnames are sorted and deduplicated."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4793
|
|
msgid "guestfs_inotify_init"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4795
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_inotify_init (guestfs_h *g,\n"
|
|
" int maxevents);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4803
|
|
msgid ""
|
|
"C<maxevents> is the maximum number of events which will be queued up between "
|
|
"calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
|
|
"passed as C<0>, then the kernel (or previously set) default is used. For "
|
|
"Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
|
|
"throws away events, but records the fact that it threw them away by setting "
|
|
"a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
|
|
"C<guestfs_inotify_read>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4813
|
|
msgid ""
|
|
"Before any events are generated, you have to add some watches to the "
|
|
"internal watch list. See: C<guestfs_inotify_add_watch> and "
|
|
"C<guestfs_inotify_rm_watch>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4817
|
|
msgid ""
|
|
"Queued up events should be read periodically by calling "
|
|
"C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
|
|
"wrapper around C<guestfs_inotify_read>). If you don't read the events out "
|
|
"often enough then you risk the internal queue overflowing."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4824
|
|
msgid ""
|
|
"The handle should be closed after use by calling C<guestfs_inotify_close>. "
|
|
"This also removes any watches automatically."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4837
|
|
msgid "guestfs_inotify_read"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4839
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_inotify_event_list *\n"
|
|
" guestfs_inotify_read (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4853
|
|
msgid ""
|
|
"This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
|
|
"there was an error. I<The caller must call "
|
|
"C<guestfs_free_inotify_event_list> after use>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4859
|
|
msgid "guestfs_inotify_rm_watch"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4861
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_inotify_rm_watch (guestfs_h *g,\n"
|
|
" int wd);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4865
|
|
msgid ""
|
|
"Remove a previously defined inotify watch. See "
|
|
"C<guestfs_inotify_add_watch>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4872
|
|
msgid "guestfs_inspect_get_arch"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4874
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_inspect_get_arch (guestfs_h *g,\n"
|
|
" const char *root);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:4878
|
|
msgid ""
|
|
"This returns the architecture of the inspected operating system. The "
|
|
"possible return values are listed under C<guestfs_file_architecture>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:4892
|
|
msgid "guestfs_inspect_get_distro"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:4894
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_inspect_get_distro (guestfs_h *g,\n"
|
|
" const char *root);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5018
|
|
msgid "guestfs_inspect_get_drive_mappings"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5020
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
|
|
" const char *root);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5049
|
|
msgid ""
|
|
"Please read L<guestfs(3)/INSPECTION> for more details. See also "
|
|
"C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5059 ../src/guestfs-actions.pod:5532
|
|
msgid "(Added in 1.9.17)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5061
|
|
msgid "guestfs_inspect_get_filesystems"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5063
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_inspect_get_filesystems (guestfs_h *g,\n"
|
|
" const char *root);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5075
|
|
msgid ""
|
|
"Please read L<guestfs(3)/INSPECTION> for more details. See also "
|
|
"C<guestfs_inspect_get_mountpoints>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5084
|
|
msgid "guestfs_inspect_get_format"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5086
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_inspect_get_format (guestfs_h *g,\n"
|
|
" const char *root);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5120 ../src/guestfs-actions.pod:5568 ../src/guestfs-actions.pod:5584 ../src/guestfs-actions.pod:5602 ../src/guestfs-actions.pod:10201
|
|
msgid "(Added in 1.9.4)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5122
|
|
msgid "guestfs_inspect_get_hostname"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5124
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_inspect_get_hostname (guestfs_h *g,\n"
|
|
" const char *root);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5139
|
|
msgid "(Added in 1.7.9)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5141
|
|
msgid "guestfs_inspect_get_icon"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5143
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_inspect_get_icon (guestfs_h *g,\n"
|
|
" const char *root,\n"
|
|
" size_t *size_r,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5154
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
|
|
" GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5221 ../src/guestfs-actions.pod:6823 ../src/guestfs-actions.pod:8721
|
|
msgid "(Added in 1.11.12)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5223
|
|
msgid "guestfs_inspect_get_icon_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5225
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_inspect_get_icon_va (guestfs_h *g,\n"
|
|
" const char *root,\n"
|
|
" size_t *size_r,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5231
|
|
msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5235
|
|
msgid "guestfs_inspect_get_icon_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5237
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
|
|
" const char *root,\n"
|
|
" size_t *size_r,\n"
|
|
" const struct guestfs_inspect_get_icon_argv "
|
|
"*optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5243
|
|
msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5247
|
|
msgid "guestfs_inspect_get_major_version"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5249
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_inspect_get_major_version (guestfs_h *g,\n"
|
|
" const char *root);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5271
|
|
msgid "guestfs_inspect_get_minor_version"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5273
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_inspect_get_minor_version (guestfs_h *g,\n"
|
|
" const char *root);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5282
|
|
msgid ""
|
|
"Please read L<guestfs(3)/INSPECTION> for more details. See also "
|
|
"C<guestfs_inspect_get_major_version>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5289
|
|
msgid "guestfs_inspect_get_mountpoints"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5291
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
|
|
" const char *root);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5312
|
|
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 "
|
|
"information about the mapping of drive letters to partitions, see "
|
|
"C<guestfs_inspect_get_drive_mappings>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5318
|
|
msgid ""
|
|
"Please read L<guestfs(3)/INSPECTION> for more details. See also "
|
|
"C<guestfs_inspect_get_filesystems>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5329
|
|
msgid "guestfs_inspect_get_package_format"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5331
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_inspect_get_package_format (guestfs_h *g,\n"
|
|
" const char *root);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5335
|
|
msgid ""
|
|
"This function and C<guestfs_inspect_get_package_management> return the "
|
|
"package format and package management tool used by the inspected operating "
|
|
"system. For example for Fedora these functions would return C<rpm> (package "
|
|
"format) and C<yum> (package management)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5354 ../src/guestfs-actions.pod:5382
|
|
msgid "(Added in 1.7.5)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5356
|
|
msgid "guestfs_inspect_get_package_management"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5358
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_inspect_get_package_management (guestfs_h *g,\n"
|
|
" const char *root);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5362
|
|
msgid ""
|
|
"C<guestfs_inspect_get_package_format> and this function return the package "
|
|
"format and package management tool used by the inspected operating system. "
|
|
"For example for Fedora these functions would return C<rpm> (package format) "
|
|
"and C<yum> (package management)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5384
|
|
msgid "guestfs_inspect_get_product_name"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5386
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_inspect_get_product_name (guestfs_h *g,\n"
|
|
" const char *root);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5405
|
|
msgid "guestfs_inspect_get_product_variant"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5407
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_inspect_get_product_variant (guestfs_h *g,\n"
|
|
" const char *root);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5430
|
|
msgid ""
|
|
"Please read L<guestfs(3)/INSPECTION> for more details. See also "
|
|
"C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5437
|
|
msgid "(Added in 1.9.13)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5439
|
|
msgid "guestfs_inspect_get_roots"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5441
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_inspect_get_roots (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5444
|
|
msgid ""
|
|
"This function is a convenient way to get the list of root devices, as "
|
|
"returned from a previous call to C<guestfs_inspect_os>, but without redoing "
|
|
"the whole inspection process."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5448
|
|
msgid ""
|
|
"This returns an empty list if either no root devices were found or the "
|
|
"caller has not called C<guestfs_inspect_os>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5457
|
|
msgid "(Added in 1.7.3)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5459
|
|
msgid "guestfs_inspect_get_type"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5461
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_inspect_get_type (guestfs_h *g,\n"
|
|
" const char *root);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5514
|
|
msgid "guestfs_inspect_get_windows_current_control_set"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5516
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
|
|
" const char *root);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5534
|
|
msgid "guestfs_inspect_get_windows_systemroot"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5536
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
|
|
" const char *root);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5552
|
|
msgid "(Added in 1.5.25)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5554
|
|
msgid "guestfs_inspect_is_live"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5556
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_inspect_is_live (guestfs_h *g,\n"
|
|
" const char *root);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5560
|
|
msgid ""
|
|
"If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
|
|
"disk), then this returns true if a live image was detected on the disk."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5570
|
|
msgid "guestfs_inspect_is_multipart"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5572
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_inspect_is_multipart (guestfs_h *g,\n"
|
|
" const char *root);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5576
|
|
msgid ""
|
|
"If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
|
|
"disk), then this returns true if the disk is part of a set."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5586
|
|
msgid "guestfs_inspect_is_netinst"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5588
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_inspect_is_netinst (guestfs_h *g,\n"
|
|
" const char *root);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5592
|
|
msgid ""
|
|
"If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
|
|
"disk), then this returns true if the disk is a network installer, ie. not a "
|
|
"self-contained install CD but one which is likely to require network access "
|
|
"to complete the install."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5604
|
|
msgid "guestfs_inspect_list_applications"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5606
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_application_list *\n"
|
|
" guestfs_inspect_list_applications (guestfs_h *g,\n"
|
|
" const char *root);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5610
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the "
|
|
"L</guestfs_inspect_list_applications2> call instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5619 ../src/guestfs-actions.pod:5723
|
|
msgid ""
|
|
"I<Note:> This call works differently from other parts of the inspection "
|
|
"API. You have to call C<guestfs_inspect_os>, then "
|
|
"C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
|
|
"this. Listing applications is a significantly more difficult operation "
|
|
"which requires access to the full filesystem. Also note that unlike the "
|
|
"other C<guestfs_inspect_get_*> calls which are just returning data cached in "
|
|
"the libguestfs handle, this call actually reads parts of the mounted "
|
|
"filesystems during the call."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5709
|
|
msgid ""
|
|
"This function returns a C<struct guestfs_application_list *>, or NULL if "
|
|
"there was an error. I<The caller must call C<guestfs_free_application_list> "
|
|
"after use>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5713
|
|
msgid "(Added in 1.7.8)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5715
|
|
msgid "guestfs_inspect_list_applications2"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5717
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_application2_list *\n"
|
|
" guestfs_inspect_list_applications2 (guestfs_h *g,\n"
|
|
" const char *root);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5819
|
|
msgid ""
|
|
"This function returns a C<struct guestfs_application2_list *>, or NULL if "
|
|
"there was an error. I<The caller must call "
|
|
"C<guestfs_free_application2_list> after use>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5823 ../src/guestfs-actions.pod:8348
|
|
msgid "(Added in 1.19.56)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5825
|
|
msgid "guestfs_inspect_os"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5827
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_inspect_os (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5843
|
|
msgid ""
|
|
"You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
|
|
"functions in order to query further information about each operating system, "
|
|
"such as the name and version."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5848
|
|
msgid ""
|
|
"This function uses other libguestfs features such as C<guestfs_mount_ro> and "
|
|
"C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
|
|
"the contents. This should be called with no disks currently mounted. The "
|
|
"function may also use Augeas, so any existing Augeas handle will be closed."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5860 ../src/guestfs-actions.pod:6834 ../src/guestfs-actions.pod:6985
|
|
msgid "See also C<guestfs_list_filesystems>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5868
|
|
msgid "guestfs_is_blockdev"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5870
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_blockdev (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5874
|
|
msgid ""
|
|
"This function is provided for backwards compatibility with earlier versions "
|
|
"of libguestfs. It simply calls L</guestfs_is_blockdev_opts> with no "
|
|
"optional arguments."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5878 ../src/guestfs-actions.pod:5954 ../src/guestfs-actions.pod:6093 ../src/guestfs-actions.pod:6259 ../src/guestfs-actions.pod:6324
|
|
msgid "(Added in 1.5.10)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5881
|
|
msgid "guestfs_is_blockdev_opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5883
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_blockdev_opts (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5893
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_IS_BLOCKDEV_OPTS_FOLLOWSYMLINKS, int followsymlinks,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5902 ../src/guestfs-actions.pod:5978 ../src/guestfs-actions.pod:6055 ../src/guestfs-actions.pod:6117 ../src/guestfs-actions.pod:6180 ../src/guestfs-actions.pod:6283 ../src/guestfs-actions.pod:6320
|
|
msgid "See also C<guestfs_stat>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5906 ../src/guestfs-actions.pod:5982 ../src/guestfs-actions.pod:6059 ../src/guestfs-actions.pod:6121 ../src/guestfs-actions.pod:6184 ../src/guestfs-actions.pod:6287
|
|
msgid "(Added in 1.23.4)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5908
|
|
msgid "guestfs_is_blockdev_opts_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5910
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_blockdev_opts_va (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5915
|
|
msgid "This is the \"va_list variant\" of L</guestfs_is_blockdev_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5919
|
|
msgid "guestfs_is_blockdev_opts_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5921
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_blockdev_opts_argv (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" const struct guestfs_is_blockdev_opts_argv "
|
|
"*optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5926
|
|
msgid "This is the \"argv variant\" of L</guestfs_is_blockdev_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5930
|
|
msgid "guestfs_is_busy"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5932
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_busy (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5935
|
|
msgid ""
|
|
"This always returns false. This function is deprecated with no "
|
|
"replacement. Do not use this function."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5944
|
|
msgid "guestfs_is_chardev"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5946
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_chardev (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5950
|
|
msgid ""
|
|
"This function is provided for backwards compatibility with earlier versions "
|
|
"of libguestfs. It simply calls L</guestfs_is_chardev_opts> with no optional "
|
|
"arguments."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5957
|
|
msgid "guestfs_is_chardev_opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5959
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_chardev_opts (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5969
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_IS_CHARDEV_OPTS_FOLLOWSYMLINKS, int followsymlinks,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5984
|
|
msgid "guestfs_is_chardev_opts_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5986
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_chardev_opts_va (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:5991
|
|
msgid "This is the \"va_list variant\" of L</guestfs_is_chardev_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:5995
|
|
msgid "guestfs_is_chardev_opts_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:5997
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_chardev_opts_argv (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" const struct guestfs_is_chardev_opts_argv "
|
|
"*optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6002
|
|
msgid "This is the \"argv variant\" of L</guestfs_is_chardev_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6006
|
|
msgid "guestfs_is_config"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6008
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_config (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6020
|
|
msgid "guestfs_is_dir"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6022
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_dir (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6026
|
|
msgid ""
|
|
"This function is provided for backwards compatibility with earlier versions "
|
|
"of libguestfs. It simply calls L</guestfs_is_dir_opts> with no optional "
|
|
"arguments."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6033
|
|
msgid "guestfs_is_dir_opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6035
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_dir_opts (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6045
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_IS_DIR_OPTS_FOLLOWSYMLINKS, int followsymlinks,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6061
|
|
msgid "guestfs_is_dir_opts_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6063
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_dir_opts_va (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6068
|
|
msgid "This is the \"va_list variant\" of L</guestfs_is_dir_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6072
|
|
msgid "guestfs_is_dir_opts_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6074
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_dir_opts_argv (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" const struct guestfs_is_dir_opts_argv "
|
|
"*optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6079
|
|
msgid "This is the \"argv variant\" of L</guestfs_is_dir_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6083
|
|
msgid "guestfs_is_fifo"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6085
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_fifo (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6089
|
|
msgid ""
|
|
"This function is provided for backwards compatibility with earlier versions "
|
|
"of libguestfs. It simply calls L</guestfs_is_fifo_opts> with no optional "
|
|
"arguments."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6096
|
|
msgid "guestfs_is_fifo_opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6098
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_fifo_opts (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6108
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_IS_FIFO_OPTS_FOLLOWSYMLINKS, int followsymlinks,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6123
|
|
msgid "guestfs_is_fifo_opts_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6125
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_fifo_opts_va (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6130
|
|
msgid "This is the \"va_list variant\" of L</guestfs_is_fifo_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6134
|
|
msgid "guestfs_is_fifo_opts_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6136
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_fifo_opts_argv (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" const struct guestfs_is_fifo_opts_argv "
|
|
"*optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6141
|
|
msgid "This is the \"argv variant\" of L</guestfs_is_fifo_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6145
|
|
msgid "guestfs_is_file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6147
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_file (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6151
|
|
msgid ""
|
|
"This function is provided for backwards compatibility with earlier versions "
|
|
"of libguestfs. It simply calls L</guestfs_is_file_opts> with no optional "
|
|
"arguments."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6158
|
|
msgid "guestfs_is_file_opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6160
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_file_opts (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6170
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_IS_FILE_OPTS_FOLLOWSYMLINKS, int followsymlinks,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6186
|
|
msgid "guestfs_is_file_opts_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6188
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_file_opts_va (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6193
|
|
msgid "This is the \"va_list variant\" of L</guestfs_is_file_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6197
|
|
msgid "guestfs_is_file_opts_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6199
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_file_opts_argv (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" const struct guestfs_is_file_opts_argv "
|
|
"*optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6204
|
|
msgid "This is the \"argv variant\" of L</guestfs_is_file_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6208
|
|
msgid "guestfs_is_launching"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6210
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_launching (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6213
|
|
msgid ""
|
|
"This returns true iff this handle is launching the subprocess (in the "
|
|
"C<LAUNCHING> state)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6222
|
|
msgid "guestfs_is_lv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6224
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_lv (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6235
|
|
msgid "guestfs_is_ready"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6237
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_ready (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6240
|
|
msgid ""
|
|
"This returns true iff this handle is ready to accept commands (in the "
|
|
"C<READY> state)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6249
|
|
msgid "guestfs_is_socket"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6251
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_socket (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6255
|
|
msgid ""
|
|
"This function is provided for backwards compatibility with earlier versions "
|
|
"of libguestfs. It simply calls L</guestfs_is_socket_opts> with no optional "
|
|
"arguments."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6262
|
|
msgid "guestfs_is_socket_opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6264
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_socket_opts (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6274
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_IS_SOCKET_OPTS_FOLLOWSYMLINKS, int followsymlinks,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6289
|
|
msgid "guestfs_is_socket_opts_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6291
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_socket_opts_va (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6296
|
|
msgid "This is the \"va_list variant\" of L</guestfs_is_socket_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6300
|
|
msgid "guestfs_is_socket_opts_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6302
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_socket_opts_argv (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" const struct guestfs_is_socket_opts_argv "
|
|
"*optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6307
|
|
msgid "This is the \"argv variant\" of L</guestfs_is_socket_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6311
|
|
msgid "guestfs_is_symlink"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6313
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_symlink (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6326
|
|
msgid "guestfs_is_whole_device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6328
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_whole_device (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6337
|
|
msgid "(Added in 1.21.9)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6339
|
|
msgid "guestfs_is_zero"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6341
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_zero (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6350 ../src/guestfs-actions.pod:6364
|
|
msgid "(Added in 1.11.8)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6352
|
|
msgid "guestfs_is_zero_device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6354
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_is_zero_device (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6366 ../src/guestfs-structs.pod:376
|
|
msgid "guestfs_isoinfo"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6368
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_isoinfo *\n"
|
|
" guestfs_isoinfo (guestfs_h *g,\n"
|
|
" const char *isofile);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6372
|
|
msgid ""
|
|
"This is the same as C<guestfs_isoinfo_device> except that it works for an "
|
|
"ISO file located inside some other mounted filesystem. Note that in the "
|
|
"common case where you have added an ISO file as a libguestfs device, you "
|
|
"would I<not> call this. Instead you would call C<guestfs_isoinfo_device>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6378 ../src/guestfs-actions.pod:6401
|
|
msgid ""
|
|
"This function returns a C<struct guestfs_isoinfo *>, or NULL if there was an "
|
|
"error. I<The caller must call C<guestfs_free_isoinfo> after use>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6382 ../src/guestfs-actions.pod:6405
|
|
msgid "(Added in 1.17.19)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6384
|
|
msgid "guestfs_isoinfo_device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6386
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_isoinfo *\n"
|
|
" guestfs_isoinfo_device (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6407
|
|
msgid "guestfs_journal_close"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6409
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_journal_close (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6416 ../src/guestfs-actions.pod:6443 ../src/guestfs-actions.pod:6459 ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6496 ../src/guestfs-actions.pod:6513 ../src/guestfs-actions.pod:6531
|
|
msgid "(Added in 1.23.11)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6418
|
|
msgid "guestfs_journal_get"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6420
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_xattr_list *\n"
|
|
" guestfs_journal_get (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6431
|
|
msgid ""
|
|
"The length of data may be truncated to the data threshold (see: "
|
|
"C<guestfs_journal_set_data_threshold>, "
|
|
"C<guestfs_journal_get_data_threshold>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6445
|
|
msgid "guestfs_journal_get_data_threshold"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6447
|
|
#, no-wrap
|
|
msgid ""
|
|
" int64_t\n"
|
|
" guestfs_journal_get_data_threshold (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6455
|
|
msgid "See also C<guestfs_journal_set_data_threshold>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6461
|
|
msgid "guestfs_journal_next"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6463
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_journal_next (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6470
|
|
msgid ""
|
|
"The returned boolean tells you if there are any more journal records to "
|
|
"read. C<true> means you can read the next record (eg. using "
|
|
"C<guestfs_journal_get_data>), and C<false> means you have reached the end of "
|
|
"the journal."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6479
|
|
msgid "guestfs_journal_open"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6481
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_journal_open (guestfs_h *g,\n"
|
|
" const char *directory);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6488
|
|
msgid ""
|
|
"The contents of the journal can be read using C<guestfs_journal_next> and "
|
|
"C<guestfs_journal_get>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6491
|
|
msgid ""
|
|
"After you have finished using the journal, you should close the handle by "
|
|
"calling C<guestfs_journal_close>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6498
|
|
msgid "guestfs_journal_set_data_threshold"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6500
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_journal_set_data_threshold (guestfs_h *g,\n"
|
|
" int64_t threshold);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6509
|
|
msgid "See also C<guestfs_journal_get_data_threshold>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6515
|
|
msgid "guestfs_journal_skip"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6517
|
|
#, no-wrap
|
|
msgid ""
|
|
" int64_t\n"
|
|
" guestfs_journal_skip (guestfs_h *g,\n"
|
|
" int64_t skip);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6533
|
|
msgid "guestfs_kill_subprocess"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6535
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_kill_subprocess (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6538
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_shutdown> "
|
|
"call instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6547
|
|
msgid "Do not call this. See: C<guestfs_shutdown> instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6553
|
|
msgid "guestfs_launch"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6555
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_launch (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6561
|
|
msgid ""
|
|
"Do not call C<guestfs_launch> twice on the same handle. Although it will "
|
|
"not give an error (for historical reasons), the precise behaviour when you "
|
|
"do this is not well defined. Handles are very cheap to create, so create a "
|
|
"new one for each launch."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6575
|
|
msgid "guestfs_lchown"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6577
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_lchown (guestfs_h *g,\n"
|
|
" int owner,\n"
|
|
" int group,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6583
|
|
msgid ""
|
|
"Change the file owner to C<owner> and group to C<group>. This is like "
|
|
"C<guestfs_chown> but if C<path> is a symlink then the link itself is "
|
|
"changed, not the target."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6595
|
|
msgid "guestfs_ldmtool_create_all"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6597
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_ldmtool_create_all (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6604
|
|
msgid ""
|
|
"Call C<guestfs_list_ldm_volumes> and C<guestfs_list_ldm_partitions> to "
|
|
"return all devices."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6607
|
|
msgid ""
|
|
"Note that you B<don't> normally need to call this explicitly, since it is "
|
|
"done automatically at C<guestfs_launch> time. However you might want to "
|
|
"call this function if you have hotplugged disks or have just created a "
|
|
"Windows dynamic disk."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6614 ../src/guestfs-actions.pod:6630 ../src/guestfs-actions.pod:6645 ../src/guestfs-actions.pod:6661 ../src/guestfs-actions.pod:6674 ../src/guestfs-actions.pod:6692 ../src/guestfs-actions.pod:6711 ../src/guestfs-actions.pod:6728 ../src/guestfs-actions.pod:6744 ../src/guestfs-actions.pod:6763 ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6958
|
|
msgid "(Added in 1.20.0)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6616
|
|
msgid "guestfs_ldmtool_diskgroup_disks"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6618
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_ldmtool_diskgroup_disks (guestfs_h *g,\n"
|
|
" const char *diskgroup);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6622
|
|
msgid ""
|
|
"Return the disks in a Windows dynamic disk group. The C<diskgroup> "
|
|
"parameter should be the GUID of a disk group, one element from the list "
|
|
"returned by C<guestfs_ldmtool_scan>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6632
|
|
msgid "guestfs_ldmtool_diskgroup_name"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6634
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_ldmtool_diskgroup_name (guestfs_h *g,\n"
|
|
" const char *diskgroup);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6638
|
|
msgid ""
|
|
"Return the name of a Windows dynamic disk group. The C<diskgroup> parameter "
|
|
"should be the GUID of a disk group, one element from the list returned by "
|
|
"C<guestfs_ldmtool_scan>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6647
|
|
msgid "guestfs_ldmtool_diskgroup_volumes"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6649
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_ldmtool_diskgroup_volumes (guestfs_h *g,\n"
|
|
" const char *diskgroup);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6653
|
|
msgid ""
|
|
"Return the volumes in a Windows dynamic disk group. The C<diskgroup> "
|
|
"parameter should be the GUID of a disk group, one element from the list "
|
|
"returned by C<guestfs_ldmtool_scan>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6663
|
|
msgid "guestfs_ldmtool_remove_all"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6665
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_ldmtool_remove_all (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6668
|
|
msgid ""
|
|
"This is essentially the opposite of C<guestfs_ldmtool_create_all>. It "
|
|
"removes the device mapper mappings for all Windows dynamic disk volumes"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6676
|
|
msgid "guestfs_ldmtool_scan"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6678
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_ldmtool_scan (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6681 ../src/guestfs-actions.pod:6700
|
|
msgid ""
|
|
"This function scans for Windows dynamic disks. It returns a list of "
|
|
"identifiers (GUIDs) for all disk groups that were found. These identifiers "
|
|
"can be passed to other C<guestfs_ldmtool_*> functions."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6685
|
|
msgid ""
|
|
"This function scans all block devices. To scan a subset of block devices, "
|
|
"call C<guestfs_ldmtool_scan_devices> instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6694
|
|
msgid "guestfs_ldmtool_scan_devices"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6696
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_ldmtool_scan_devices (guestfs_h *g,\n"
|
|
" char *const *devices);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6713
|
|
msgid "guestfs_ldmtool_volume_hint"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6715
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_ldmtool_volume_hint (guestfs_h *g,\n"
|
|
" const char *diskgroup,\n"
|
|
" const char *volume);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6730
|
|
msgid "guestfs_ldmtool_volume_partitions"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6732
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_ldmtool_volume_partitions (guestfs_h *g,\n"
|
|
" const char *diskgroup,\n"
|
|
" const char *volume);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6746
|
|
msgid "guestfs_ldmtool_volume_type"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6748
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_ldmtool_volume_type (guestfs_h *g,\n"
|
|
" const char *diskgroup,\n"
|
|
" const char *volume);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6765
|
|
msgid "guestfs_lgetxattr"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6767
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_lgetxattr (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" const char *name,\n"
|
|
" size_t *size_r);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6787
|
|
msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6795
|
|
msgid "guestfs_lgetxattrs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6797
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_xattr_list *\n"
|
|
" guestfs_lgetxattrs (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6801
|
|
msgid ""
|
|
"This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
|
|
"then it returns the extended attributes of the link itself."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6811
|
|
msgid "guestfs_list_9p"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6813
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_list_9p (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6825
|
|
msgid "guestfs_list_devices"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6827
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_list_devices (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6842
|
|
msgid "guestfs_list_disk_labels"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6844
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_list_disk_labels (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6847
|
|
msgid ""
|
|
"If you add drives using the optional C<label> parameter of "
|
|
"C<guestfs_add_drive_opts>, you can use this call to map between disk labels, "
|
|
"and raw block device and partition names (like C</dev/sda> and "
|
|
"C</dev/sda1>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6863 ../src/guestfs-actions.pod:10134
|
|
msgid "(Added in 1.19.49)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6865
|
|
msgid "guestfs_list_dm_devices"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6867
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_list_dm_devices (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6872
|
|
msgid ""
|
|
"The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
|
|
"previous call to C<guestfs_luks_open>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6875
|
|
msgid ""
|
|
"Device mapper devices which correspond to logical volumes are I<not> "
|
|
"returned in this list. Call C<guestfs_lvs> if you want to list logical "
|
|
"volumes."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6883 ../src/guestfs-actions.pod:9181
|
|
msgid "(Added in 1.11.15)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6885
|
|
msgid "guestfs_list_filesystems"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6887
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_list_filesystems (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6903
|
|
msgid ""
|
|
"The key is not necessarily a block device. It may also be an opaque "
|
|
"'mountable' string which can be passed to C<guestfs_mount>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6910
|
|
msgid ""
|
|
"This command runs other libguestfs commands, which might include "
|
|
"C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
|
|
"soon after launch and only when nothing is mounted."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6914
|
|
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 "
|
|
"each filesystem found is valid and mountable, and some filesystems might be "
|
|
"mountable but require special options. Filesystems may not all belong to a "
|
|
"single logical operating system (use C<guestfs_inspect_os> to look for "
|
|
"OSes)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6928 ../src/guestfs-actions.pod:9632
|
|
msgid "(Added in 1.5.15)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6930
|
|
msgid "guestfs_list_ldm_partitions"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6932
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_list_ldm_partitions (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6945
|
|
msgid "guestfs_list_ldm_volumes"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6947
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_list_ldm_volumes (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6960
|
|
msgid "guestfs_list_md_devices"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6962
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_list_md_devices (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6971 ../src/guestfs-actions.pod:12166
|
|
msgid "(Added in 1.15.4)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6973
|
|
msgid "guestfs_list_partitions"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6975
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_list_partitions (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:6982
|
|
msgid ""
|
|
"This does not return logical volumes. For that you will need to call "
|
|
"C<guestfs_lvs>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:6993
|
|
msgid "guestfs_ll"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:6995
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_ll (guestfs_h *g,\n"
|
|
" const char *directory);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7010
|
|
msgid "guestfs_llz"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7012
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_llz (guestfs_h *g,\n"
|
|
" const char *directory);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7024 ../src/guestfs-actions.pod:12927
|
|
msgid "(Added in 1.17.6)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7026
|
|
msgid "guestfs_ln"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7028
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_ln (guestfs_h *g,\n"
|
|
" const char *target,\n"
|
|
" const char *linkname);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7039
|
|
msgid "guestfs_ln_f"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7041
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_ln_f (guestfs_h *g,\n"
|
|
" const char *target,\n"
|
|
" const char *linkname);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7053
|
|
msgid "guestfs_ln_s"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7055
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_ln_s (guestfs_h *g,\n"
|
|
" const char *target,\n"
|
|
" const char *linkname);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7066
|
|
msgid "guestfs_ln_sf"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7068
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_ln_sf (guestfs_h *g,\n"
|
|
" const char *target,\n"
|
|
" const char *linkname);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7080
|
|
msgid "guestfs_lremovexattr"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7082
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_lremovexattr (guestfs_h *g,\n"
|
|
" const char *xattr,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7087
|
|
msgid ""
|
|
"This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
|
|
"link, then it removes an extended attribute of the link itself."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7095
|
|
msgid "guestfs_ls"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7097
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_ls (guestfs_h *g,\n"
|
|
" const char *directory);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7111
|
|
msgid "guestfs_ls0"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7113
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_ls0 (guestfs_h *g,\n"
|
|
" const char *dir,\n"
|
|
" const char *filenames);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7130
|
|
msgid "guestfs_lsetxattr"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7132
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_lsetxattr (guestfs_h *g,\n"
|
|
" const char *xattr,\n"
|
|
" const char *val,\n"
|
|
" int vallen,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7139
|
|
msgid ""
|
|
"This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
|
|
"then it sets an extended attribute of the link itself."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7147
|
|
msgid "guestfs_lstat"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7149
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_stat *\n"
|
|
" guestfs_lstat (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7155
|
|
msgid ""
|
|
"This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
|
|
"link, then the link is stat-ed, not the file it refers to."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7161 ../src/guestfs-actions.pod:11488
|
|
msgid ""
|
|
"This function returns a C<struct guestfs_stat *>, or NULL if there was an "
|
|
"error. I<The caller must call C<guestfs_free_stat> after use>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7165 ../src/guestfs-actions.pod:11492 ../src/guestfs-actions.pod:11510 ../src/guestfs-actions.pod:12210
|
|
msgid "(Added in 0.9.2)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7167
|
|
msgid "guestfs_lstatlist"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7169
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_stat_list *\n"
|
|
" guestfs_lstatlist (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" char *const *names);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7174
|
|
msgid ""
|
|
"This call allows you to perform the C<guestfs_lstat> operation on multiple "
|
|
"files, where all files are in the directory C<path>. C<names> is the list "
|
|
"of files from this directory."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7183
|
|
msgid ""
|
|
"This call is intended for programs that want to efficiently list a directory "
|
|
"contents without making many round-trips. See also C<guestfs_lxattrlist> "
|
|
"for a similarly efficient call for getting extended attributes."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7188
|
|
msgid ""
|
|
"This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
|
|
"an error. I<The caller must call C<guestfs_free_stat_list> after use>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7194
|
|
msgid "guestfs_luks_add_key"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7196
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_luks_add_key (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const char *key,\n"
|
|
" const char *newkey,\n"
|
|
" int keyslot);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7208
|
|
msgid ""
|
|
"Note that if C<keyslot> already contains a key, then this command will "
|
|
"fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7214 ../src/guestfs-actions.pod:7251 ../src/guestfs-actions.pod:7271 ../src/guestfs-actions.pod:7291 ../src/guestfs-actions.pod:7326 ../src/guestfs-actions.pod:7345
|
|
msgid ""
|
|
"This function takes a key or passphrase parameter which could contain "
|
|
"sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
|
|
"information."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7218 ../src/guestfs-actions.pod:7255 ../src/guestfs-actions.pod:7275 ../src/guestfs-actions.pod:7295
|
|
msgid "(Added in 1.5.2)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7220
|
|
msgid "guestfs_luks_close"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7222
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_luks_close (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7226
|
|
msgid ""
|
|
"This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
|
|
"or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
|
|
"LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
|
|
"underlying block device."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7234 ../src/guestfs-actions.pod:7330 ../src/guestfs-actions.pod:7349 ../src/guestfs-actions.pod:7416 ../src/guestfs-actions.pod:7461
|
|
msgid "(Added in 1.5.1)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7236
|
|
msgid "guestfs_luks_format"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7238
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_luks_format (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const char *key,\n"
|
|
" int keyslot);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7257
|
|
msgid "guestfs_luks_format_cipher"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7259
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_luks_format_cipher (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const char *key,\n"
|
|
" int keyslot,\n"
|
|
" const char *cipher);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7266
|
|
msgid ""
|
|
"This command is the same as C<guestfs_luks_format> but it also allows you to "
|
|
"set the C<cipher> used."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7277
|
|
msgid "guestfs_luks_kill_slot"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7279
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_luks_kill_slot (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const char *key,\n"
|
|
" int keyslot);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7297
|
|
msgid "guestfs_luks_open"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7299
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_luks_open (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const char *key,\n"
|
|
" const char *mapname);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7317
|
|
msgid ""
|
|
"If this block device contains LVM volume groups, then calling "
|
|
"C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
|
|
"visible."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7321
|
|
msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7332
|
|
msgid "guestfs_luks_open_ro"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7334
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_luks_open_ro (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const char *key,\n"
|
|
" const char *mapname);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7340
|
|
msgid ""
|
|
"This is the same as C<guestfs_luks_open> except that a read-only mapping is "
|
|
"created."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7351
|
|
msgid "guestfs_lvcreate"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7353
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_lvcreate (guestfs_h *g,\n"
|
|
" const char *logvol,\n"
|
|
" const char *volgroup,\n"
|
|
" int mbytes);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7366
|
|
msgid "guestfs_lvcreate_free"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7368
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_lvcreate_free (guestfs_h *g,\n"
|
|
" const char *logvol,\n"
|
|
" const char *volgroup,\n"
|
|
" int percent);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7381 ../src/guestfs-actions.pod:13313
|
|
msgid "(Added in 1.17.18)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7383
|
|
msgid "guestfs_lvm_canonical_lv_name"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7385
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
|
|
" const char *lvname);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7396
|
|
msgid "See also C<guestfs_is_lv>, C<guestfs_canonical_device_name>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7401
|
|
msgid "(Added in 1.5.24)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7403
|
|
msgid "guestfs_lvm_clear_filter"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7405
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_lvm_clear_filter (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7408
|
|
msgid ""
|
|
"This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
|
|
"see every block device."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7418
|
|
msgid "guestfs_lvm_remove_all"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7420
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_lvm_remove_all (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7430
|
|
msgid "guestfs_lvm_set_filter"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7432
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_lvm_set_filter (guestfs_h *g,\n"
|
|
" char *const *devices);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7463
|
|
msgid "guestfs_lvremove"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7465
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_lvremove (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7477 ../src/guestfs-actions.pod:9770 ../src/guestfs-actions.pod:12771
|
|
msgid "(Added in 1.0.13)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7479
|
|
msgid "guestfs_lvrename"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7481
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_lvrename (guestfs_h *g,\n"
|
|
" const char *logvol,\n"
|
|
" const char *newlogvol);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7490 ../src/guestfs-actions.pod:12784
|
|
msgid "(Added in 1.0.83)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7492
|
|
msgid "guestfs_lvresize"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7494
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_lvresize (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" int mbytes);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7507
|
|
msgid "guestfs_lvresize_free"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7509
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_lvresize_free (guestfs_h *g,\n"
|
|
" const char *lv,\n"
|
|
" int percent);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7522
|
|
msgid "(Added in 1.3.3)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7524
|
|
msgid "guestfs_lvs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7526
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_lvs (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7535
|
|
msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7543
|
|
msgid "guestfs_lvs_full"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7545
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_lvm_lv_list *\n"
|
|
" guestfs_lvs_full (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7551
|
|
msgid ""
|
|
"This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
|
|
"was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after "
|
|
"use>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7557
|
|
msgid "guestfs_lvuuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7559
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_lvuuid (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7570
|
|
msgid "guestfs_lxattrlist"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7572
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_xattr_list *\n"
|
|
" guestfs_lxattrlist (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" char *const *names);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7591
|
|
msgid ""
|
|
"This call is intended for programs that want to efficiently list a directory "
|
|
"contents without making many round-trips. See also C<guestfs_lstatlist> for "
|
|
"a similarly efficient call for getting standard stats."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7602
|
|
msgid "guestfs_max_disks"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7604
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_max_disks (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7607
|
|
msgid ""
|
|
"Return the maximum number of disks that may be added to a handle (eg. by "
|
|
"C<guestfs_add_drive_opts> and similar calls)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7620
|
|
msgid "guestfs_md_create"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7622
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_md_create (guestfs_h *g,\n"
|
|
" const char *name,\n"
|
|
" char *const *devices,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7633
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_MD_CREATE_MISSINGBITMAP, int64_t missingbitmap,\n"
|
|
" GUESTFS_MD_CREATE_NRDEVICES, int nrdevices,\n"
|
|
" GUESTFS_MD_CREATE_SPARE, int spare,\n"
|
|
" GUESTFS_MD_CREATE_CHUNK, int64_t chunk,\n"
|
|
" GUESTFS_MD_CREATE_LEVEL, const char *level,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7695 ../src/guestfs-actions.pod:7761 ../src/guestfs-actions.pod:7831
|
|
msgid "(Added in 1.15.6)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7697
|
|
msgid "guestfs_md_create_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7699
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_md_create_va (guestfs_h *g,\n"
|
|
" const char *name,\n"
|
|
" char *const *devices,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7705
|
|
msgid "This is the \"va_list variant\" of L</guestfs_md_create>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7709
|
|
msgid "guestfs_md_create_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7711
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_md_create_argv (guestfs_h *g,\n"
|
|
" const char *name,\n"
|
|
" char *const *devices,\n"
|
|
" const struct guestfs_md_create_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7717
|
|
msgid "This is the \"argv variant\" of L</guestfs_md_create>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7721
|
|
msgid "guestfs_md_detail"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7723
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_md_detail (guestfs_h *g,\n"
|
|
" const char *md);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7763
|
|
msgid "guestfs_md_stat"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7765
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_mdstat_list *\n"
|
|
" guestfs_md_stat (guestfs_h *g,\n"
|
|
" const char *md);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7772
|
|
msgid "To get a list of software RAID devices, call C<guestfs_list_md_devices>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7814
|
|
msgid ""
|
|
"This function returns a C<struct guestfs_mdstat_list *>, or NULL if there "
|
|
"was an error. I<The caller must call C<guestfs_free_mdstat_list> after "
|
|
"use>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7818
|
|
msgid "(Added in 1.17.21)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7820
|
|
msgid "guestfs_md_stop"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7822
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_md_stop (guestfs_h *g,\n"
|
|
" const char *md);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7833
|
|
msgid "guestfs_mkdir"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7835
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mkdir (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7845
|
|
msgid "guestfs_mkdir_mode"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7847
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mkdir_mode (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" int mode);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7859
|
|
msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7865
|
|
msgid "guestfs_mkdir_p"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7867
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mkdir_p (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7878
|
|
msgid "guestfs_mkdtemp"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7880
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_mkdtemp (guestfs_h *g,\n"
|
|
" const char *tmpl);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7908
|
|
msgid "guestfs_mke2fs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7910
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mke2fs (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7920
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_MKE2FS_BLOCKSCOUNT, int64_t blockscount,\n"
|
|
" GUESTFS_MKE2FS_BLOCKSIZE, int64_t blocksize,\n"
|
|
" GUESTFS_MKE2FS_FRAGSIZE, int64_t fragsize,\n"
|
|
" GUESTFS_MKE2FS_BLOCKSPERGROUP, int64_t blockspergroup,\n"
|
|
" GUESTFS_MKE2FS_NUMBEROFGROUPS, int64_t numberofgroups,\n"
|
|
" GUESTFS_MKE2FS_BYTESPERINODE, int64_t bytesperinode,\n"
|
|
" GUESTFS_MKE2FS_INODESIZE, int64_t inodesize,\n"
|
|
" GUESTFS_MKE2FS_JOURNALSIZE, int64_t journalsize,\n"
|
|
" GUESTFS_MKE2FS_NUMBEROFINODES, int64_t numberofinodes,\n"
|
|
" GUESTFS_MKE2FS_STRIDESIZE, int64_t stridesize,\n"
|
|
" GUESTFS_MKE2FS_STRIPEWIDTH, int64_t stripewidth,\n"
|
|
" GUESTFS_MKE2FS_MAXONLINERESIZE, int64_t maxonlineresize,\n"
|
|
" GUESTFS_MKE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
|
|
" GUESTFS_MKE2FS_MMPUPDATEINTERVAL, int mmpupdateinterval,\n"
|
|
" GUESTFS_MKE2FS_JOURNALDEVICE, const char *journaldevice,\n"
|
|
" GUESTFS_MKE2FS_LABEL, const char *label,\n"
|
|
" GUESTFS_MKE2FS_LASTMOUNTEDDIR, const char *lastmounteddir,\n"
|
|
" GUESTFS_MKE2FS_CREATOROS, const char *creatoros,\n"
|
|
" GUESTFS_MKE2FS_FSTYPE, const char *fstype,\n"
|
|
" GUESTFS_MKE2FS_USAGETYPE, const char *usagetype,\n"
|
|
" GUESTFS_MKE2FS_UUID, const char *uuid,\n"
|
|
" GUESTFS_MKE2FS_FORCECREATE, int forcecreate,\n"
|
|
" GUESTFS_MKE2FS_WRITESBANDGROUPONLY, int writesbandgrouponly,\n"
|
|
" GUESTFS_MKE2FS_LAZYITABLEINIT, int lazyitableinit,\n"
|
|
" GUESTFS_MKE2FS_LAZYJOURNALINIT, int lazyjournalinit,\n"
|
|
" GUESTFS_MKE2FS_TESTFS, int testfs,\n"
|
|
" GUESTFS_MKE2FS_DISCARD, int discard,\n"
|
|
" GUESTFS_MKE2FS_QUOTATYPE, int quotatype,\n"
|
|
" GUESTFS_MKE2FS_EXTENT, int extent,\n"
|
|
" GUESTFS_MKE2FS_FILETYPE, int filetype,\n"
|
|
" GUESTFS_MKE2FS_FLEXBG, int flexbg,\n"
|
|
" GUESTFS_MKE2FS_HASJOURNAL, int hasjournal,\n"
|
|
" GUESTFS_MKE2FS_JOURNALDEV, int journaldev,\n"
|
|
" GUESTFS_MKE2FS_LARGEFILE, int largefile,\n"
|
|
" GUESTFS_MKE2FS_QUOTA, int quota,\n"
|
|
" GUESTFS_MKE2FS_RESIZEINODE, int resizeinode,\n"
|
|
" GUESTFS_MKE2FS_SPARSESUPER, int sparsesuper,\n"
|
|
" GUESTFS_MKE2FS_UNINITBG, int uninitbg,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7969
|
|
msgid "(Added in 1.19.44)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7971
|
|
msgid "guestfs_mke2fs_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7973
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mke2fs_va (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7978
|
|
msgid "This is the \"va_list variant\" of L</guestfs_mke2fs>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7982
|
|
msgid "guestfs_mke2fs_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7984
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mke2fs_argv (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const struct guestfs_mke2fs_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:7989
|
|
msgid "This is the \"argv variant\" of L</guestfs_mke2fs>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:7993
|
|
msgid "guestfs_mke2fs_J"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:7995
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mke2fs_J (guestfs_h *g,\n"
|
|
" const char *fstype,\n"
|
|
" int blocksize,\n"
|
|
" const char *device,\n"
|
|
" const char *journal);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8002 ../src/guestfs-actions.pod:8030 ../src/guestfs-actions.pod:8055 ../src/guestfs-actions.pod:8078 ../src/guestfs-actions.pod:8102 ../src/guestfs-actions.pod:8123
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_mke2fs> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8015
|
|
msgid "See also C<guestfs_mke2journal>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8019 ../src/guestfs-actions.pod:8044 ../src/guestfs-actions.pod:8069 ../src/guestfs-actions.pod:8092 ../src/guestfs-actions.pod:8113 ../src/guestfs-actions.pod:8134 ../src/guestfs-actions.pod:8279 ../src/guestfs-actions.pod:8662
|
|
msgid "(Added in 1.0.68)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8021
|
|
msgid "guestfs_mke2fs_JL"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8023
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mke2fs_JL (guestfs_h *g,\n"
|
|
" const char *fstype,\n"
|
|
" int blocksize,\n"
|
|
" const char *device,\n"
|
|
" const char *label);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8040
|
|
msgid "See also C<guestfs_mke2journal_L>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8046
|
|
msgid "guestfs_mke2fs_JU"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8048
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mke2fs_JU (guestfs_h *g,\n"
|
|
" const char *fstype,\n"
|
|
" int blocksize,\n"
|
|
" const char *device,\n"
|
|
" const char *uuid);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8065
|
|
msgid "See also C<guestfs_mke2journal_U>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8071
|
|
msgid "guestfs_mke2journal"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8073
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mke2journal (guestfs_h *g,\n"
|
|
" int blocksize,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8094
|
|
msgid "guestfs_mke2journal_L"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8096
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mke2journal_L (guestfs_h *g,\n"
|
|
" int blocksize,\n"
|
|
" const char *label,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8115
|
|
msgid "guestfs_mke2journal_U"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8117
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mke2journal_U (guestfs_h *g,\n"
|
|
" int blocksize,\n"
|
|
" const char *uuid,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8136
|
|
msgid "guestfs_mkfifo"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8138
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mkfifo (guestfs_h *g,\n"
|
|
" int mode,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8143
|
|
msgid ""
|
|
"This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
|
|
"is just a convenient wrapper around C<guestfs_mknod>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8153
|
|
msgid "guestfs_mkfs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8155
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mkfs (guestfs_h *g,\n"
|
|
" const char *fstype,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8160
|
|
msgid ""
|
|
"This function is provided for backwards compatibility with earlier versions "
|
|
"of libguestfs. It simply calls L</guestfs_mkfs_opts> with no optional "
|
|
"arguments."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8167
|
|
msgid "guestfs_mkfs_opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8169
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mkfs_opts (guestfs_h *g,\n"
|
|
" const char *fstype,\n"
|
|
" const char *device,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8180
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
|
|
" GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
|
|
" GUESTFS_MKFS_OPTS_INODE, int inode,\n"
|
|
" GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8228
|
|
msgid "(Added in 1.7.19)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8230
|
|
msgid "guestfs_mkfs_opts_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8232
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mkfs_opts_va (guestfs_h *g,\n"
|
|
" const char *fstype,\n"
|
|
" const char *device,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8238
|
|
msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8242
|
|
msgid "guestfs_mkfs_opts_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8244
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mkfs_opts_argv (guestfs_h *g,\n"
|
|
" const char *fstype,\n"
|
|
" const char *device,\n"
|
|
" const struct guestfs_mkfs_opts_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8250
|
|
msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8254
|
|
msgid "guestfs_mkfs_b"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8256
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mkfs_b (guestfs_h *g,\n"
|
|
" const char *fstype,\n"
|
|
" int blocksize,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8269
|
|
msgid ""
|
|
"This call is similar to C<guestfs_mkfs>, but it allows you to control the "
|
|
"block size of the resulting filesystem. Supported block sizes depend on the "
|
|
"filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8281
|
|
msgid "guestfs_mkfs_btrfs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8283
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mkfs_btrfs (guestfs_h *g,\n"
|
|
" char *const *devices,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8293
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_MKFS_BTRFS_ALLOCSTART, int64_t allocstart,\n"
|
|
" GUESTFS_MKFS_BTRFS_BYTECOUNT, int64_t bytecount,\n"
|
|
" GUESTFS_MKFS_BTRFS_DATATYPE, const char *datatype,\n"
|
|
" GUESTFS_MKFS_BTRFS_LEAFSIZE, int leafsize,\n"
|
|
" GUESTFS_MKFS_BTRFS_LABEL, const char *label,\n"
|
|
" GUESTFS_MKFS_BTRFS_METADATA, const char *metadata,\n"
|
|
" GUESTFS_MKFS_BTRFS_NODESIZE, int nodesize,\n"
|
|
" GUESTFS_MKFS_BTRFS_SECTORSIZE, int sectorsize,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8308
|
|
msgid "To create general filesystems, use C<guestfs_mkfs>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8312
|
|
msgid "(Added in 1.17.25)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8314
|
|
msgid "guestfs_mkfs_btrfs_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8316
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mkfs_btrfs_va (guestfs_h *g,\n"
|
|
" char *const *devices,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8321
|
|
msgid "This is the \"va_list variant\" of L</guestfs_mkfs_btrfs>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8325
|
|
msgid "guestfs_mkfs_btrfs_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8327
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mkfs_btrfs_argv (guestfs_h *g,\n"
|
|
" char *const *devices,\n"
|
|
" const struct guestfs_mkfs_btrfs_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8332
|
|
msgid "This is the \"argv variant\" of L</guestfs_mkfs_btrfs>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8336
|
|
msgid "guestfs_mklost_and_found"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8338
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mklost_and_found (guestfs_h *g,\n"
|
|
" const char *mountpoint);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8350
|
|
msgid "guestfs_mkmountpoint"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8352
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mkmountpoint (guestfs_h *g,\n"
|
|
" const char *exemptpath);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8356
|
|
msgid ""
|
|
"C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
|
|
"that can be used to create extra mountpoints before mounting the first "
|
|
"filesystem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8380
|
|
msgid ""
|
|
"C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
|
|
"may get unexpected errors if you try to mix these calls. It is safest to "
|
|
"manually unmount filesystems and remove mountpoints after use."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8384
|
|
msgid ""
|
|
"C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
|
|
"first, so for this to work for manual mountpoints, you must ensure that the "
|
|
"innermost mountpoints have the longest pathnames, as in the example code "
|
|
"above."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8391
|
|
msgid ""
|
|
"Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
|
|
"can cause C<guestfs_umount_all> to be called when the handle is closed which "
|
|
"can also trigger these issues."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8397 ../src/guestfs-actions.pod:8921 ../src/guestfs-actions.pod:10288
|
|
msgid "(Added in 1.0.62)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8399
|
|
msgid "guestfs_mknod"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8401
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mknod (guestfs_h *g,\n"
|
|
" int mode,\n"
|
|
" int devmajor,\n"
|
|
" int devminor,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8416
|
|
msgid ""
|
|
"Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
|
|
"S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
|
|
"regular file). These constants are available in the standard Linux header "
|
|
"files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
|
|
"C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
|
|
"the appropriate constant for you."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8430
|
|
msgid "guestfs_mknod_b"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8432
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mknod_b (guestfs_h *g,\n"
|
|
" int mode,\n"
|
|
" int devmajor,\n"
|
|
" int devminor,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8439
|
|
msgid ""
|
|
"This call creates a block device node called C<path> with mode C<mode> and "
|
|
"device major/minor C<devmajor> and C<devminor>. It is just a convenient "
|
|
"wrapper around C<guestfs_mknod>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8449
|
|
msgid "guestfs_mknod_c"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8451
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mknod_c (guestfs_h *g,\n"
|
|
" int mode,\n"
|
|
" int devmajor,\n"
|
|
" int devminor,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8458
|
|
msgid ""
|
|
"This call creates a char device node called C<path> with mode C<mode> and "
|
|
"device major/minor C<devmajor> and C<devminor>. It is just a convenient "
|
|
"wrapper around C<guestfs_mknod>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8468
|
|
msgid "guestfs_mkswap"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8470
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mkswap (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8474
|
|
msgid ""
|
|
"This function is provided for backwards compatibility with earlier versions "
|
|
"of libguestfs. It simply calls L</guestfs_mkswap_opts> with no optional "
|
|
"arguments."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8481
|
|
msgid "guestfs_mkswap_opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8483
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mkswap_opts (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8493
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_MKSWAP_OPTS_LABEL, const char *label,\n"
|
|
" GUESTFS_MKSWAP_OPTS_UUID, const char *uuid,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8503
|
|
msgid "(Added in 1.19.34)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8505
|
|
msgid "guestfs_mkswap_opts_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8507
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mkswap_opts_va (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8512
|
|
msgid "This is the \"va_list variant\" of L</guestfs_mkswap_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8516
|
|
msgid "guestfs_mkswap_opts_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8518
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mkswap_opts_argv (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const struct guestfs_mkswap_opts_argv "
|
|
"*optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8523
|
|
msgid "This is the \"argv variant\" of L</guestfs_mkswap_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8527
|
|
msgid "guestfs_mkswap_L"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8529
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mkswap_L (guestfs_h *g,\n"
|
|
" const char *label,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8534 ../src/guestfs-actions.pod:8558
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_mkswap> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8551
|
|
msgid "guestfs_mkswap_U"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8553
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mkswap_U (guestfs_h *g,\n"
|
|
" const char *uuid,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8571
|
|
msgid "guestfs_mkswap_file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8573
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mkswap_file (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8579
|
|
msgid ""
|
|
"This command just writes a swap file signature to an existing file. To "
|
|
"create the file itself, use something like C<guestfs_fallocate>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8586
|
|
msgid "guestfs_mktemp"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8588
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_mktemp (guestfs_h *g,\n"
|
|
" const char *tmpl,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8598
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_MKTEMP_SUFFIX, const char *suffix,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8620
|
|
msgid "See also: C<guestfs_mkdtemp>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8625 ../src/guestfs-actions.pod:9245 ../src/guestfs-actions.pod:9264
|
|
msgid "(Added in 1.19.53)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8627
|
|
msgid "guestfs_mktemp_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8629
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_mktemp_va (guestfs_h *g,\n"
|
|
" const char *tmpl,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8634
|
|
msgid "This is the \"va_list variant\" of L</guestfs_mktemp>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8638
|
|
msgid "guestfs_mktemp_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8640
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_mktemp_argv (guestfs_h *g,\n"
|
|
" const char *tmpl,\n"
|
|
" const struct guestfs_mktemp_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8645
|
|
msgid "This is the \"argv variant\" of L</guestfs_mktemp>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8649
|
|
msgid "guestfs_modprobe"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8651
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_modprobe (guestfs_h *g,\n"
|
|
" const char *modulename);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8664
|
|
msgid "guestfs_mount"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8666
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mount (guestfs_h *g,\n"
|
|
" const char *mountable,\n"
|
|
" const char *mountpoint);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8671
|
|
msgid ""
|
|
"Mount a guest disk at a position in the filesystem. Block devices are named "
|
|
"C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
|
|
"those block devices contain partitions, they will have the usual names "
|
|
"(eg. C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used, or "
|
|
"'mountable' strings returned by C<guestfs_list_filesystems> or "
|
|
"C<guestfs_inspect_get_mountpoints>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8686
|
|
msgid ""
|
|
"Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
|
|
"and C<noatime>. The C<sync> option greatly slowed writes and caused many "
|
|
"problems for users. If your program might need to work with older versions "
|
|
"of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
|
|
"for the first parameter if you don't want any options)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8697
|
|
msgid "guestfs_mount_9p"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8699
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mount_9p (guestfs_h *g,\n"
|
|
" const char *mounttag,\n"
|
|
" const char *mountpoint,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8710
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8723
|
|
msgid "guestfs_mount_9p_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8725
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mount_9p_va (guestfs_h *g,\n"
|
|
" const char *mounttag,\n"
|
|
" const char *mountpoint,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8731
|
|
msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8735
|
|
msgid "guestfs_mount_9p_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8737
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mount_9p_argv (guestfs_h *g,\n"
|
|
" const char *mounttag,\n"
|
|
" const char *mountpoint,\n"
|
|
" const struct guestfs_mount_9p_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8743
|
|
msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8747
|
|
msgid "guestfs_mount_local"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8749
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mount_local (guestfs_h *g,\n"
|
|
" const char *localmountpoint,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8759
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_MOUNT_LOCAL_READONLY, int readonly,\n"
|
|
" GUESTFS_MOUNT_LOCAL_OPTIONS, const char *options,\n"
|
|
" GUESTFS_MOUNT_LOCAL_CACHETIMEOUT, int cachetimeout,\n"
|
|
" GUESTFS_MOUNT_LOCAL_DEBUGCALLS, int debugcalls,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8782
|
|
msgid ""
|
|
"When C<guestfs_mount_local> returns, the filesystem is ready, but is not "
|
|
"processing requests (access to it will block). You have to call "
|
|
"C<guestfs_mount_local_run> to run the main loop."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8790 ../src/guestfs-actions.pod:8838 ../src/guestfs-actions.pod:12372
|
|
msgid "(Added in 1.17.22)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8792
|
|
msgid "guestfs_mount_local_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8794
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mount_local_va (guestfs_h *g,\n"
|
|
" const char *localmountpoint,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8799
|
|
msgid "This is the \"va_list variant\" of L</guestfs_mount_local>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8803
|
|
msgid "guestfs_mount_local_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8805
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mount_local_argv (guestfs_h *g,\n"
|
|
" const char *localmountpoint,\n"
|
|
" const struct guestfs_mount_local_argv "
|
|
"*optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8810
|
|
msgid "This is the \"argv variant\" of L</guestfs_mount_local>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8814
|
|
msgid "guestfs_mount_local_run"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8816
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mount_local_run (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8822
|
|
msgid ""
|
|
"This should only be called after C<guestfs_mount_local> returns "
|
|
"successfully. The call will not return until the filesystem is unmounted."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8829
|
|
msgid ""
|
|
"You may call this from a different thread than the one which called "
|
|
"C<guestfs_mount_local>, subject to the usual rules for threads and "
|
|
"libguestfs (see L<guestfs(3)/MULTIPLE HANDLES AND MULTIPLE THREADS>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8840
|
|
msgid "guestfs_mount_loop"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8842
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mount_loop (guestfs_h *g,\n"
|
|
" const char *file,\n"
|
|
" const char *mountpoint);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8855
|
|
msgid "guestfs_mount_options"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8857
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mount_options (guestfs_h *g,\n"
|
|
" const char *options,\n"
|
|
" const char *mountable,\n"
|
|
" const char *mountpoint);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8863
|
|
msgid ""
|
|
"This is the same as the C<guestfs_mount> command, but it allows you to set "
|
|
"the mount options as for the L<mount(8)> I<-o> flag."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8873 ../src/guestfs-actions.pod:8887 ../src/guestfs-actions.pod:8904
|
|
msgid "(Added in 1.0.10)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8875
|
|
msgid "guestfs_mount_ro"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8877
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mount_ro (guestfs_h *g,\n"
|
|
" const char *mountable,\n"
|
|
" const char *mountpoint);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8882
|
|
msgid ""
|
|
"This is the same as the C<guestfs_mount> command, but it mounts the "
|
|
"filesystem with the read-only (I<-o ro>) flag."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8889
|
|
msgid "guestfs_mount_vfs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8891
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mount_vfs (guestfs_h *g,\n"
|
|
" const char *options,\n"
|
|
" const char *vfstype,\n"
|
|
" const char *mountable,\n"
|
|
" const char *mountpoint);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8898
|
|
msgid ""
|
|
"This is the same as the C<guestfs_mount> command, but it allows you to set "
|
|
"both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
|
|
"I<-t> flags."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8906
|
|
msgid "guestfs_mountpoints"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8908
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_mountpoints (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8911
|
|
msgid ""
|
|
"This call is similar to C<guestfs_mounts>. That call returns a list of "
|
|
"devices. This one returns a hash table (map) of device name to directory "
|
|
"where the device is mounted."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8923
|
|
msgid "guestfs_mounts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8925
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_mounts (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8933
|
|
msgid "See also: C<guestfs_mountpoints>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8941
|
|
msgid "guestfs_mv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8943
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_mv (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8951
|
|
msgid "See also: C<guestfs_rename>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8957
|
|
msgid "guestfs_nr_devices"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8959
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_nr_devices (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8962
|
|
msgid ""
|
|
"This returns the number of whole block devices that were added. This is the "
|
|
"same as the number of devices that would be returned if you called "
|
|
"C<guestfs_list_devices>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8966
|
|
msgid ""
|
|
"To find out the maximum number of devices that could be added, call "
|
|
"C<guestfs_max_disks>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8971
|
|
msgid "(Added in 1.19.15)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8973
|
|
msgid "guestfs_ntfs_3g_probe"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8975
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_ntfs_3g_probe (guestfs_h *g,\n"
|
|
" int rw,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:8994
|
|
msgid "(Added in 1.0.43)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:8996
|
|
msgid "guestfs_ntfsclone_in"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:8998
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_ntfsclone_in (guestfs_h *g,\n"
|
|
" const char *backupfile,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9003
|
|
msgid ""
|
|
"Restore the C<backupfile> (from a previous call to C<guestfs_ntfsclone_out>) "
|
|
"to C<device>, overwriting any existing contents of this device."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9009 ../src/guestfs-actions.pod:9047 ../src/guestfs-actions.pod:9099 ../src/guestfs-actions.pod:10878
|
|
msgid "(Added in 1.17.9)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9011
|
|
msgid "guestfs_ntfsclone_out"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9013
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_ntfsclone_out (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const char *backupfile,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9024
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_NTFSCLONE_OUT_METADATAONLY, int metadataonly,\n"
|
|
" GUESTFS_NTFSCLONE_OUT_RESCUE, int rescue,\n"
|
|
" GUESTFS_NTFSCLONE_OUT_IGNOREFSCHECK, int ignorefscheck,\n"
|
|
" GUESTFS_NTFSCLONE_OUT_PRESERVETIMESTAMPS, int preservetimestamps,\n"
|
|
" GUESTFS_NTFSCLONE_OUT_FORCE, int force,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9042
|
|
msgid "Use C<guestfs_ntfsclone_in> to restore the file back to a libguestfs device."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9049
|
|
msgid "guestfs_ntfsclone_out_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9051
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_ntfsclone_out_va (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const char *backupfile,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9057
|
|
msgid "This is the \"va_list variant\" of L</guestfs_ntfsclone_out>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9061
|
|
msgid "guestfs_ntfsclone_out_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9063
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_ntfsclone_out_argv (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const char *backupfile,\n"
|
|
" const struct guestfs_ntfsclone_out_argv "
|
|
"*optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9069
|
|
msgid "This is the \"argv variant\" of L</guestfs_ntfsclone_out>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9073
|
|
msgid "guestfs_ntfsfix"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9075
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_ntfsfix (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9085
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_NTFSFIX_CLEARBADSECTORS, int clearbadsectors,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9101
|
|
msgid "guestfs_ntfsfix_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9103
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_ntfsfix_va (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9108
|
|
msgid "This is the \"va_list variant\" of L</guestfs_ntfsfix>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9112
|
|
msgid "guestfs_ntfsfix_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9114
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_ntfsfix_argv (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const struct guestfs_ntfsfix_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9119
|
|
msgid "This is the \"argv variant\" of L</guestfs_ntfsfix>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9123
|
|
msgid "guestfs_ntfsresize"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9125
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_ntfsresize (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9129
|
|
msgid ""
|
|
"This function is provided for backwards compatibility with earlier versions "
|
|
"of libguestfs. It simply calls L</guestfs_ntfsresize_opts> with no optional "
|
|
"arguments."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9136
|
|
msgid "guestfs_ntfsresize_opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9138
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_ntfsresize_opts (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9148
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
|
|
" GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9168
|
|
msgid ""
|
|
"After the resize operation, the filesystem is always marked as requiring a "
|
|
"consistency check (for safety). You have to boot into Windows to perform "
|
|
"this check and clear this condition. If you I<don't> set the C<force> "
|
|
"option then it is not possible to call C<guestfs_ntfsresize> multiple times "
|
|
"on a single filesystem without booting into Windows between each resize."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9183
|
|
msgid "guestfs_ntfsresize_opts_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9185
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9190
|
|
msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9194
|
|
msgid "guestfs_ntfsresize_opts_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9196
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const struct guestfs_ntfsresize_opts_argv "
|
|
"*optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9201
|
|
msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9205
|
|
msgid "guestfs_ntfsresize_size"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9207
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_ntfsresize_size (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" int64_t size);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9212
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_ntfsresize> "
|
|
"call instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9219
|
|
msgid ""
|
|
"This command is the same as C<guestfs_ntfsresize> except that it allows you "
|
|
"to specify the new size (in bytes) explicitly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9224 ../src/guestfs-actions.pod:9797 ../src/guestfs-actions.pod:9870 ../src/guestfs-actions.pod:10217 ../src/guestfs-actions.pod:12944
|
|
msgid "(Added in 1.3.14)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9226
|
|
msgid "guestfs_parse_environment"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9228
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_parse_environment (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9235
|
|
msgid ""
|
|
"I<Most programs do not need to call this>. It is done implicitly when you "
|
|
"call C<guestfs_create>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9238
|
|
msgid ""
|
|
"See L<guestfs(3)/ENVIRONMENT VARIABLES> for a list of environment variables "
|
|
"that can affect libguestfs handles. See also "
|
|
"L<guestfs(3)/guestfs_create_flags>, and C<guestfs_parse_environment_list>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9247
|
|
msgid "guestfs_parse_environment_list"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9249
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_parse_environment_list (guestfs_h *g,\n"
|
|
" char *const *environment);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9258
|
|
msgid ""
|
|
"This is the same as C<guestfs_parse_environment> except that it parses an "
|
|
"explicit list of strings instead of the program's environment."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9266
|
|
msgid "guestfs_part_add"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9268
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_part_add (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const char *prlogex,\n"
|
|
" int64_t startsect,\n"
|
|
" int64_t endsect);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9275
|
|
msgid ""
|
|
"This command adds a partition to C<device>. If there is no partition table "
|
|
"on the device, call C<guestfs_part_init> first."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9287
|
|
msgid ""
|
|
"Creating a partition which covers the whole disk is not so easy. Use "
|
|
"C<guestfs_part_disk> to do that."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9292 ../src/guestfs-actions.pod:9327 ../src/guestfs-actions.pod:9412 ../src/guestfs-actions.pod:9496 ../src/guestfs-actions.pod:9534 ../src/guestfs-actions.pod:9553 ../src/guestfs-actions.pod:9612
|
|
msgid "(Added in 1.0.78)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9294
|
|
msgid "guestfs_part_del"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9296
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_part_del (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" int partnum);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9311
|
|
msgid "guestfs_part_disk"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9313
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_part_disk (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const char *parttype);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9318
|
|
msgid ""
|
|
"This command is simply a combination of C<guestfs_part_init> followed by "
|
|
"C<guestfs_part_add> to create a single primary partition covering the whole "
|
|
"disk."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9322
|
|
msgid ""
|
|
"C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
|
|
"possible values are described in C<guestfs_part_init>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9329
|
|
msgid "guestfs_part_get_bootable"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9331
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_part_get_bootable (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" int partnum);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9339
|
|
msgid "See also C<guestfs_part_set_bootable>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9345
|
|
msgid "guestfs_part_get_gpt_type"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9347
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_part_get_gpt_type (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" int partnum);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9359 ../src/guestfs-actions.pod:9572
|
|
msgid "(Added in 1.21.1)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9361
|
|
msgid "guestfs_part_get_mbr_id"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9363
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_part_get_mbr_id (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" int partnum);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9371 ../src/guestfs-actions.pod:9588
|
|
msgid ""
|
|
"Note that only MBR (old DOS-style) partitions have type bytes. You will get "
|
|
"undefined results for other partition table types (see "
|
|
"C<guestfs_part_get_parttype>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9379
|
|
msgid "guestfs_part_get_name"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9381
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_part_get_name (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" int partnum);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9395
|
|
msgid "guestfs_part_get_parttype"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9397
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_part_get_parttype (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9404
|
|
msgid ""
|
|
"Common return values include: C<msdos> (a DOS/Windows style MBR partition "
|
|
"table), C<gpt> (a GPT/EFI-style partition table). Other values are "
|
|
"possible, although unusual. See C<guestfs_part_init> for a full list."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9414
|
|
msgid "guestfs_part_init"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9416
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_part_init (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const char *parttype);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9425
|
|
msgid ""
|
|
"Initially there are no partitions. Following this, you should call "
|
|
"C<guestfs_part_add> for each partition required."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9498
|
|
msgid "guestfs_part_list"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9500
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_partition_list *\n"
|
|
" guestfs_part_list (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9517
|
|
msgid ""
|
|
"Start of the partition I<in bytes>. To get sectors you have to divide by "
|
|
"the device's sector size, see C<guestfs_blockdev_getss>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9530
|
|
msgid ""
|
|
"This function returns a C<struct guestfs_partition_list *>, or NULL if there "
|
|
"was an error. I<The caller must call C<guestfs_free_partition_list> after "
|
|
"use>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9536
|
|
msgid "guestfs_part_set_bootable"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9538
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_part_set_bootable (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" int partnum,\n"
|
|
" int bootable);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9555
|
|
msgid "guestfs_part_set_gpt_type"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9557
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_part_set_gpt_type (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" int partnum,\n"
|
|
" const char *guid);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9574
|
|
msgid "guestfs_part_set_mbr_id"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9576
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_part_set_mbr_id (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" int partnum,\n"
|
|
" int idbyte);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9596
|
|
msgid "guestfs_part_set_name"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9598
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_part_set_name (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" int partnum,\n"
|
|
" const char *name);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9614
|
|
msgid "guestfs_part_to_dev"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9616
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_part_to_dev (guestfs_h *g,\n"
|
|
" const char *partition);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9624 ../src/guestfs-actions.pod:9643
|
|
msgid ""
|
|
"The named partition must exist, for example as a string returned from "
|
|
"C<guestfs_list_partitions>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9627
|
|
msgid "See also C<guestfs_part_to_partnum>, C<guestfs_device_index>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9634
|
|
msgid "guestfs_part_to_partnum"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9636
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_part_to_partnum (guestfs_h *g,\n"
|
|
" const char *partition);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9646
|
|
msgid "See also C<guestfs_part_to_dev>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9652
|
|
msgid "guestfs_ping_daemon"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9654
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_ping_daemon (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9666
|
|
msgid "guestfs_pread"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9668
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_pread (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" int count,\n"
|
|
" int64_t offset,\n"
|
|
" size_t *size_r);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9681
|
|
msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9692
|
|
msgid "guestfs_pread_device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9694
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_pread_device (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" int count,\n"
|
|
" int64_t offset,\n"
|
|
" size_t *size_r);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9707
|
|
msgid "See also C<guestfs_pread>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9716
|
|
msgid "(Added in 1.5.21)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9718
|
|
msgid "guestfs_pvchange_uuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9720
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_pvchange_uuid (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9728 ../src/guestfs-actions.pod:9739 ../src/guestfs-actions.pod:12672 ../src/guestfs-actions.pod:12683
|
|
msgid "(Added in 1.19.26)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9730
|
|
msgid "guestfs_pvchange_uuid_all"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9732
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_pvchange_uuid_all (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9741
|
|
msgid "guestfs_pvcreate"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9743
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_pvcreate (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9755
|
|
msgid "guestfs_pvremove"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9757
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_pvremove (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9772
|
|
msgid "guestfs_pvresize"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9774
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_pvresize (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9785
|
|
msgid "guestfs_pvresize_size"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9787
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_pvresize_size (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" int64_t size);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9792
|
|
msgid ""
|
|
"This command is the same as C<guestfs_pvresize> except that it allows you to "
|
|
"specify the new size (in bytes) explicitly."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9799
|
|
msgid "guestfs_pvs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9801
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_pvs (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9810
|
|
msgid "See also C<guestfs_pvs_full>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9818
|
|
msgid "guestfs_pvs_full"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9820
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_lvm_pv_list *\n"
|
|
" guestfs_pvs_full (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9826
|
|
msgid ""
|
|
"This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
|
|
"was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after "
|
|
"use>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9832
|
|
msgid "guestfs_pvuuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9834
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_pvuuid (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9845
|
|
msgid "guestfs_pwrite"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9847
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_pwrite (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" const char *content,\n"
|
|
" size_t content_size,\n"
|
|
" int64_t offset);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9863
|
|
msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9872
|
|
msgid "guestfs_pwrite_device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9874
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_pwrite_device (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const char *content,\n"
|
|
" size_t content_size,\n"
|
|
" int64_t offset);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9889
|
|
msgid "See also C<guestfs_pwrite>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9896
|
|
msgid "(Added in 1.5.20)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9898
|
|
msgid "guestfs_read_file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9900
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_read_file (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" size_t *size_r);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9908
|
|
msgid ""
|
|
"Unlike C<guestfs_cat>, this function can correctly handle files that contain "
|
|
"embedded ASCII NUL characters."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9915
|
|
msgid "(Added in 1.0.63)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9917
|
|
msgid "guestfs_read_lines"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9919
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_read_lines (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9928
|
|
msgid ""
|
|
"Note that this function cannot correctly handle binary files (specifically, "
|
|
"files containing C<\\0> character which is treated as end of string). For "
|
|
"those you need to use the C<guestfs_read_file> function and split the buffer "
|
|
"into lines yourself."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:9939
|
|
msgid "guestfs_readdir"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:9941
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_dirent_list *\n"
|
|
" guestfs_readdir (guestfs_h *g,\n"
|
|
" const char *dir);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9995
|
|
msgid ""
|
|
"This function is primarily intended for use by programs. To get a simple "
|
|
"list of names, use C<guestfs_ls>. To get a printable directory for human "
|
|
"consumption, use C<guestfs_ll>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:9999
|
|
msgid ""
|
|
"This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
|
|
"was an error. I<The caller must call C<guestfs_free_dirent_list> after "
|
|
"use>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10008
|
|
msgid "guestfs_readlink"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10010
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_readlink (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10021
|
|
msgid "guestfs_readlinklist"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10023
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_readlinklist (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" char *const *names);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10052
|
|
msgid "guestfs_realpath"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10054
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_realpath (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10066
|
|
msgid "guestfs_remount"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10068
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_remount (guestfs_h *g,\n"
|
|
" const char *mountpoint,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10078
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_REMOUNT_RW, int rw,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10089
|
|
msgid "(Added in 1.23.2)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10091
|
|
msgid "guestfs_remount_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10093
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_remount_va (guestfs_h *g,\n"
|
|
" const char *mountpoint,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10098
|
|
msgid "This is the \"va_list variant\" of L</guestfs_remount>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10102
|
|
msgid "guestfs_remount_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10104
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_remount_argv (guestfs_h *g,\n"
|
|
" const char *mountpoint,\n"
|
|
" const struct guestfs_remount_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10109
|
|
msgid "This is the \"argv variant\" of L</guestfs_remount>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10113
|
|
msgid "guestfs_remove_drive"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10115
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_remove_drive (guestfs_h *g,\n"
|
|
" const char *label);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10119
|
|
msgid ""
|
|
"This function is conceptually the opposite of C<guestfs_add_drive_opts>. It "
|
|
"removes the drive that was previously added with label C<label>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10122
|
|
msgid ""
|
|
"Note that in order to remove drives, you have to add them with labels (see "
|
|
"the optional C<label> argument to C<guestfs_add_drive_opts>). If you didn't "
|
|
"use a label, then they cannot be removed."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10136
|
|
msgid "guestfs_removexattr"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10138
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_removexattr (guestfs_h *g,\n"
|
|
" const char *xattr,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10146
|
|
msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10152
|
|
msgid "guestfs_rename"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10154
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_rename (guestfs_h *g,\n"
|
|
" const char *oldpath,\n"
|
|
" const char *newpath);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10159
|
|
msgid ""
|
|
"Rename a file to a new place on the same filesystem. This is the same as "
|
|
"the Linux L<rename(2)> system call. In most cases you are better to use "
|
|
"C<guestfs_mv> instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10165
|
|
msgid "(Added in 1.21.5)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10167
|
|
msgid "guestfs_resize2fs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10169
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_resize2fs (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10182
|
|
msgid "guestfs_resize2fs_M"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10184
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_resize2fs_M (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10188
|
|
msgid ""
|
|
"This command is the same as C<guestfs_resize2fs>, but the filesystem is "
|
|
"resized to its minimum size. This works like the I<-M> option to the "
|
|
"C<resize2fs> command."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10192
|
|
msgid ""
|
|
"To get the resulting size of the filesystem you should call "
|
|
"C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
|
|
"These two numbers, multiplied together, give the resulting size of the "
|
|
"minimal filesystem in bytes."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10203
|
|
msgid "guestfs_resize2fs_size"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10205
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_resize2fs_size (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" int64_t size);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10210
|
|
msgid ""
|
|
"This command is the same as C<guestfs_resize2fs> except that it allows you "
|
|
"to specify the new size (in bytes) explicitly."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10219
|
|
msgid "guestfs_rm"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10221
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_rm (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10231
|
|
msgid "guestfs_rm_f"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10233
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_rm_f (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10242
|
|
msgid ""
|
|
"This call cannot remove directories. Use C<guestfs_rmdir> to remove an "
|
|
"empty directory, or C<guestfs_rm_rf> to remove directories recursively."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10248
|
|
msgid "(Added in 1.19.42)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10250
|
|
msgid "guestfs_rm_rf"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10252
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_rm_rf (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10264
|
|
msgid "guestfs_rmdir"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10266
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_rmdir (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10276
|
|
msgid "guestfs_rmmountpoint"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10278
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_rmmountpoint (guestfs_h *g,\n"
|
|
" const char *exemptpath);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10282
|
|
msgid ""
|
|
"This calls removes a mountpoint that was previously created with "
|
|
"C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10290
|
|
msgid "guestfs_rsync"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10292
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_rsync (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10303
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_RSYNC_ARCHIVE, int archive,\n"
|
|
" GUESTFS_RSYNC_DELETEDEST, int deletedest,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10331 ../src/guestfs-actions.pod:10393 ../src/guestfs-actions.pod:10462
|
|
msgid "(Added in 1.19.29)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10333
|
|
msgid "guestfs_rsync_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10335
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_rsync_va (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10341
|
|
msgid "This is the \"va_list variant\" of L</guestfs_rsync>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10345
|
|
msgid "guestfs_rsync_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10347
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_rsync_argv (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *dest,\n"
|
|
" const struct guestfs_rsync_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10353
|
|
msgid "This is the \"argv variant\" of L</guestfs_rsync>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10357
|
|
msgid "guestfs_rsync_in"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10359
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_rsync_in (guestfs_h *g,\n"
|
|
" const char *remote,\n"
|
|
" const char *dest,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10370
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_RSYNC_IN_ARCHIVE, int archive,\n"
|
|
" GUESTFS_RSYNC_IN_DELETEDEST, int deletedest,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10378 ../src/guestfs-actions.pod:10440
|
|
msgid ""
|
|
"This call only works if the network is enabled. See C<guestfs_set_network> "
|
|
"or the I<--network> option to various tools like L<guestfish(1)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10389 ../src/guestfs-actions.pod:10451
|
|
msgid "The optional arguments are the same as those of C<guestfs_rsync>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10395
|
|
msgid "guestfs_rsync_in_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10397
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_rsync_in_va (guestfs_h *g,\n"
|
|
" const char *remote,\n"
|
|
" const char *dest,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10403
|
|
msgid "This is the \"va_list variant\" of L</guestfs_rsync_in>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10407
|
|
msgid "guestfs_rsync_in_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10409
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_rsync_in_argv (guestfs_h *g,\n"
|
|
" const char *remote,\n"
|
|
" const char *dest,\n"
|
|
" const struct guestfs_rsync_in_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10415
|
|
msgid "This is the \"argv variant\" of L</guestfs_rsync_in>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10419
|
|
msgid "guestfs_rsync_out"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10421
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_rsync_out (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *remote,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10432
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_RSYNC_OUT_ARCHIVE, int archive,\n"
|
|
" GUESTFS_RSYNC_OUT_DELETEDEST, int deletedest,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10453
|
|
msgid ""
|
|
"Globbing does not happen on the C<src> parameter. In programs which use the "
|
|
"API directly you have to expand wildcards yourself (see "
|
|
"C<guestfs_glob_expand>). In guestfish you can use the C<glob> command (see "
|
|
"L<guestfish(1)/glob>), for example:"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10464
|
|
msgid "guestfs_rsync_out_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10466
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_rsync_out_va (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *remote,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10472
|
|
msgid "This is the \"va_list variant\" of L</guestfs_rsync_out>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10476
|
|
msgid "guestfs_rsync_out_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10478
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_rsync_out_argv (guestfs_h *g,\n"
|
|
" const char *src,\n"
|
|
" const char *remote,\n"
|
|
" const struct guestfs_rsync_out_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10484
|
|
msgid "This is the \"argv variant\" of L</guestfs_rsync_out>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10488
|
|
msgid "guestfs_scrub_device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10490
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_scrub_device (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10502 ../src/guestfs-actions.pod:10520 ../src/guestfs-actions.pod:10539
|
|
msgid "(Added in 1.0.52)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10504
|
|
msgid "guestfs_scrub_file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10506
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_scrub_file (guestfs_h *g,\n"
|
|
" const char *file);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10522
|
|
msgid "guestfs_scrub_freespace"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10524
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_scrub_freespace (guestfs_h *g,\n"
|
|
" const char *dir);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10528
|
|
msgid ""
|
|
"This command creates the directory C<dir> and then fills it with files until "
|
|
"the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
|
|
"and deletes them. The intention is to scrub any free space on the partition "
|
|
"containing C<dir>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10541
|
|
msgid "guestfs_set_append"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10543
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_append (guestfs_h *g,\n"
|
|
" const char *append);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10560
|
|
msgid "guestfs_set_attach_method"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10562
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_attach_method (guestfs_h *g,\n"
|
|
" const char *backend);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10566
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_set_backend> "
|
|
"call instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10582
|
|
msgid "guestfs_set_autosync"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10584
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_autosync (guestfs_h *g,\n"
|
|
" int autosync);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10600
|
|
msgid "guestfs_set_backend"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10602
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_backend (guestfs_h *g,\n"
|
|
" const char *backend);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10617
|
|
msgid "guestfs_set_backend_settings"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10619
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_backend_settings (guestfs_h *g,\n"
|
|
" char *const *settings);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10637
|
|
msgid "guestfs_set_cachedir"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10639
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_cachedir (guestfs_h *g,\n"
|
|
" const char *cachedir);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10657
|
|
msgid "guestfs_set_direct"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10659
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_direct (guestfs_h *g,\n"
|
|
" int direct);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10667
|
|
msgid ""
|
|
"One consequence of this is that log messages aren't caught by the library "
|
|
"and handled by C<guestfs_set_log_message_callback>, but go straight to "
|
|
"stdout."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10680
|
|
msgid "guestfs_set_e2attrs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10682
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_e2attrs (guestfs_h *g,\n"
|
|
" const char *file,\n"
|
|
" const char *attrs,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10693
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_SET_E2ATTRS_CLEAR, int clear,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10698
|
|
msgid ""
|
|
"C<attrs> is a string of characters representing file attributes. See "
|
|
"C<guestfs_get_e2attrs> for a list of possible attributes. Not all "
|
|
"attributes can be changed."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10719
|
|
msgid "guestfs_set_e2attrs_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10721
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_e2attrs_va (guestfs_h *g,\n"
|
|
" const char *file,\n"
|
|
" const char *attrs,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10727
|
|
msgid "This is the \"va_list variant\" of L</guestfs_set_e2attrs>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10731
|
|
msgid "guestfs_set_e2attrs_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10733
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_e2attrs_argv (guestfs_h *g,\n"
|
|
" const char *file,\n"
|
|
" const char *attrs,\n"
|
|
" const struct guestfs_set_e2attrs_argv "
|
|
"*optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10739
|
|
msgid "This is the \"argv variant\" of L</guestfs_set_e2attrs>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10743
|
|
msgid "guestfs_set_e2generation"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10745
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_e2generation (guestfs_h *g,\n"
|
|
" const char *file,\n"
|
|
" int64_t generation);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10752
|
|
msgid "See C<guestfs_get_e2generation>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10758
|
|
msgid "guestfs_set_e2label"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10760
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_e2label (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const char *label);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10765
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_set_label> "
|
|
"call instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10776
|
|
msgid ""
|
|
"You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
|
|
"the existing label on a filesystem."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10783
|
|
msgid "guestfs_set_e2uuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10785
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_e2uuid (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const char *uuid);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10790
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_set_uuid> "
|
|
"call instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10802
|
|
msgid "You can use C<guestfs_vfs_uuid> to return the existing UUID of a filesystem."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10809
|
|
msgid "guestfs_set_hv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10811
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_hv (guestfs_h *g,\n"
|
|
" const char *hv);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10838
|
|
msgid "guestfs_set_label"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10840
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_label (guestfs_h *g,\n"
|
|
" const char *mountable,\n"
|
|
" const char *label);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10874
|
|
msgid "To read the label on a filesystem, call C<guestfs_vfs_label>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10880
|
|
msgid "guestfs_set_libvirt_requested_credential"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10882
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_libvirt_requested_credential (guestfs_h *g,\n"
|
|
" int index,\n"
|
|
" const char *cred,\n"
|
|
" size_t cred_size);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10897
|
|
msgid "guestfs_set_libvirt_supported_credentials"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10899
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_libvirt_supported_credentials (guestfs_h *g,\n"
|
|
" char *const *creds);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10940
|
|
msgid "guestfs_set_memsize"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10942
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_memsize (guestfs_h *g,\n"
|
|
" int memsize);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10946
|
|
msgid ""
|
|
"This sets the memory size in megabytes allocated to the hypervisor. This "
|
|
"only has any effect if called before C<guestfs_launch>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10961
|
|
msgid "guestfs_set_network"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10963
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_network (guestfs_h *g,\n"
|
|
" int network);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:10973
|
|
msgid ""
|
|
"You must call this before calling C<guestfs_launch>, otherwise it has no "
|
|
"effect."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10980
|
|
msgid "guestfs_set_path"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10982
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_path (guestfs_h *g,\n"
|
|
" const char *searchpath);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:10997
|
|
msgid "guestfs_set_pgroup"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:10999
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_pgroup (guestfs_h *g,\n"
|
|
" int pgroup);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11009
|
|
msgid ""
|
|
"The default for this flag is false, because usually you want C<^C> to kill "
|
|
"the subprocess. Guestfish sets this flag to true when used interactively, "
|
|
"so that C<^C> can cancel long-running commands gracefully (see "
|
|
"C<guestfs_user_cancel>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11018
|
|
msgid "guestfs_set_program"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11020
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_program (guestfs_h *g,\n"
|
|
" const char *program);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11035
|
|
msgid "guestfs_set_qemu"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11037
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_qemu (guestfs_h *g,\n"
|
|
" const char *hv);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11041
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_set_hv> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11070
|
|
msgid "guestfs_set_recovery_proc"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11072
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_recovery_proc (guestfs_h *g,\n"
|
|
" int recoveryproc);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11076
|
|
msgid ""
|
|
"If this is called with the parameter C<false> then C<guestfs_launch> does "
|
|
"not create a recovery process. The purpose of the recovery process is to "
|
|
"stop runaway hypervisor processes in the case where the main program aborts "
|
|
"abruptly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11081
|
|
msgid ""
|
|
"This only has any effect if called before C<guestfs_launch>, and the default "
|
|
"is true."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11094
|
|
msgid "guestfs_set_selinux"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11096
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_selinux (guestfs_h *g,\n"
|
|
" int selinux);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11113
|
|
msgid "guestfs_set_smp"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11115
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_smp (guestfs_h *g,\n"
|
|
" int smp);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11123
|
|
msgid "This function must be called before C<guestfs_launch>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11129
|
|
msgid "guestfs_set_tmpdir"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11131
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_tmpdir (guestfs_h *g,\n"
|
|
" const char *tmpdir);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11146
|
|
msgid "guestfs_set_trace"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11148
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_trace (guestfs_h *g,\n"
|
|
" int trace);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11162
|
|
msgid ""
|
|
"Trace messages are normally sent to C<stderr>, unless you register a "
|
|
"callback to send them somewhere else (see C<guestfs_set_event_callback>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11170
|
|
msgid "guestfs_set_uuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11172
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_uuid (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const char *uuid);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11181
|
|
msgid "To read the UUID on a filesystem, call C<guestfs_vfs_uuid>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11187
|
|
msgid "guestfs_set_verbose"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11189
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_set_verbose (guestfs_h *g,\n"
|
|
" int verbose);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11198
|
|
msgid ""
|
|
"Verbose messages are normally sent to C<stderr>, unless you register a "
|
|
"callback to send them somewhere else (see C<guestfs_set_event_callback>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11206
|
|
msgid "guestfs_setcon"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11208
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_setcon (guestfs_h *g,\n"
|
|
" const char *context);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11221
|
|
msgid "guestfs_setxattr"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11223
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_setxattr (guestfs_h *g,\n"
|
|
" const char *xattr,\n"
|
|
" const char *val,\n"
|
|
" int vallen,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11234
|
|
msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11240
|
|
msgid "guestfs_sfdisk"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11242
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_sfdisk (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" int cyls,\n"
|
|
" int heads,\n"
|
|
" int sectors,\n"
|
|
" char *const *lines);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11250 ../src/guestfs-actions.pod:11291 ../src/guestfs-actions.pod:11322
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
|
|
"call instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11277
|
|
msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11284
|
|
msgid "guestfs_sfdiskM"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11286
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_sfdiskM (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" char *const *lines);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11298
|
|
msgid ""
|
|
"This is a simplified interface to the C<guestfs_sfdisk> command, where "
|
|
"partition sizes are specified in megabytes only (rounded to the nearest "
|
|
"cylinder) and you don't need to specify the cyls, heads and sectors "
|
|
"parameters which were rarely if ever used anyway."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11304
|
|
msgid ""
|
|
"See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
|
|
"C<guestfs_part_disk>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11311
|
|
msgid "guestfs_sfdisk_N"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11313
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_sfdisk_N (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" int partnum,\n"
|
|
" int cyls,\n"
|
|
" int heads,\n"
|
|
" int sectors,\n"
|
|
" const char *line);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11332
|
|
msgid ""
|
|
"For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
|
|
"for the cyls/heads/sectors parameters."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11335
|
|
msgid "See also: C<guestfs_part_add>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11341
|
|
msgid "guestfs_sfdisk_disk_geometry"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11343
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11347
|
|
msgid ""
|
|
"This displays the disk geometry of C<device> read from the partition table. "
|
|
"Especially in the case where the underlying block device has been resized, "
|
|
"this can be different from the kernel's idea of the geometry (see "
|
|
"C<guestfs_sfdisk_kernel_geometry>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11360
|
|
msgid "guestfs_sfdisk_kernel_geometry"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11362
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11376
|
|
msgid "guestfs_sfdisk_l"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11378
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_sfdisk_l (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11382
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
|
|
"call instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11393
|
|
msgid "See also: C<guestfs_part_list>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11400
|
|
msgid "guestfs_sh"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11402
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_sh (guestfs_h *g,\n"
|
|
" const char *command);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11409
|
|
msgid "This is like C<guestfs_command>, but passes the command to:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11417
|
|
msgid "All the provisos about C<guestfs_command> apply to this call."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11424
|
|
msgid "guestfs_sh_lines"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11426
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_sh_lines (guestfs_h *g,\n"
|
|
" const char *command);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11430
|
|
msgid ""
|
|
"This is the same as C<guestfs_sh>, but splits the result into a list of "
|
|
"lines."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11433
|
|
msgid "See also: C<guestfs_command_lines>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11441
|
|
msgid "guestfs_shutdown"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11443
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_shutdown (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11446
|
|
msgid ""
|
|
"This is the opposite of C<guestfs_launch>. It performs an orderly shutdown "
|
|
"of the backend process(es). If the autosync flag is set (which is the "
|
|
"default) then the disk image is synchronized."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11456
|
|
msgid ""
|
|
"This call does I<not> close or free up the handle. You still need to call "
|
|
"C<guestfs_close> afterwards."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11459
|
|
msgid ""
|
|
"C<guestfs_close> will call this if you don't do it explicitly, but note that "
|
|
"any errors are ignored in that case."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11464
|
|
msgid "(Added in 1.19.16)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11466
|
|
msgid "guestfs_sleep"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11468
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_sleep (guestfs_h *g,\n"
|
|
" int secs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11476
|
|
msgid "(Added in 1.0.41)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11478 ../src/guestfs-structs.pod:133
|
|
msgid "guestfs_stat"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11480
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_stat *\n"
|
|
" guestfs_stat (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11494 ../src/guestfs-structs.pod:165
|
|
msgid "guestfs_statvfs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11496
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_statvfs *\n"
|
|
" guestfs_statvfs (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11506
|
|
msgid ""
|
|
"This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
|
|
"error. I<The caller must call C<guestfs_free_statvfs> after use>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11512
|
|
msgid "guestfs_strings"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11514
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_strings (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11530
|
|
msgid "guestfs_strings_e"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11532
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_strings_e (guestfs_h *g,\n"
|
|
" const char *encoding,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11537
|
|
msgid ""
|
|
"This is like the C<guestfs_strings> command, but allows you to specify the "
|
|
"encoding of strings that are looked for in the source file C<path>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11547
|
|
msgid ""
|
|
"Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
|
|
"ISO-8859-X (this is what C<guestfs_strings> uses)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11585
|
|
msgid "guestfs_swapoff_device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11587
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_swapoff_device (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11591
|
|
msgid ""
|
|
"This command disables the libguestfs appliance swap device or partition "
|
|
"named C<device>. See C<guestfs_swapon_device>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11599
|
|
msgid "guestfs_swapoff_file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11601
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_swapoff_file (guestfs_h *g,\n"
|
|
" const char *file);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11611
|
|
msgid "guestfs_swapoff_label"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11613
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_swapoff_label (guestfs_h *g,\n"
|
|
" const char *label);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11624
|
|
msgid "guestfs_swapoff_uuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11626
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_swapoff_uuid (guestfs_h *g,\n"
|
|
" const char *uuid);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11637
|
|
msgid "guestfs_swapon_device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11639
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_swapon_device (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11643
|
|
msgid ""
|
|
"This command enables the libguestfs appliance to use the swap device or "
|
|
"partition named C<device>. The increased memory is made available for all "
|
|
"commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11659
|
|
msgid "guestfs_swapon_file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11661
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_swapon_file (guestfs_h *g,\n"
|
|
" const char *file);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11665
|
|
msgid ""
|
|
"This command enables swap to a file. See C<guestfs_swapon_device> for other "
|
|
"notes."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11672
|
|
msgid "guestfs_swapon_label"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11674
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_swapon_label (guestfs_h *g,\n"
|
|
" const char *label);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11678
|
|
msgid ""
|
|
"This command enables swap to a labeled swap partition. See "
|
|
"C<guestfs_swapon_device> for other notes."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11685
|
|
msgid "guestfs_swapon_uuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11687
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_swapon_uuid (guestfs_h *g,\n"
|
|
" const char *uuid);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11691
|
|
msgid ""
|
|
"This command enables swap to a swap partition with the given UUID. See "
|
|
"C<guestfs_swapon_device> for other notes."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11698
|
|
msgid "guestfs_sync"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11700
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_sync (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11713
|
|
msgid "guestfs_syslinux"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11715
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_syslinux (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11725
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_SYSLINUX_DIRECTORY, const char *directory,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11729
|
|
msgid ""
|
|
"The device parameter must be either a whole disk formatted as a FAT "
|
|
"filesystem, or a partition formatted as a FAT filesystem. In the latter "
|
|
"case, the partition should be marked as \"active\" "
|
|
"(C<guestfs_part_set_bootable>) and a Master Boot Record must be installed "
|
|
"(eg. using C<guestfs_pwrite_device>) on the first sector of the whole disk. "
|
|
"The SYSLINUX package comes with some suitable Master Boot Records. See the "
|
|
"L<syslinux(1)> man page for further information."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11755
|
|
msgid "See also C<guestfs_extlinux>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11761
|
|
msgid "guestfs_syslinux_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11763
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_syslinux_va (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11768
|
|
msgid "This is the \"va_list variant\" of L</guestfs_syslinux>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11772
|
|
msgid "guestfs_syslinux_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11774
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_syslinux_argv (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const struct guestfs_syslinux_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11779
|
|
msgid "This is the \"argv variant\" of L</guestfs_syslinux>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11783
|
|
msgid "guestfs_tail"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11785
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_tail (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11801
|
|
msgid "guestfs_tail_n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11803
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_tail_n (guestfs_h *g,\n"
|
|
" int nrlines,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11825
|
|
msgid "guestfs_tar_in"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11827
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_tar_in (guestfs_h *g,\n"
|
|
" const char *tarfile,\n"
|
|
" const char *directory);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11832
|
|
msgid ""
|
|
"This function is provided for backwards compatibility with earlier versions "
|
|
"of libguestfs. It simply calls L</guestfs_tar_in_opts> with no optional "
|
|
"arguments."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11836 ../src/guestfs-actions.pod:11902 ../src/guestfs-actions.pod:11995 ../src/guestfs-actions.pod:12016
|
|
msgid "(Added in 1.0.3)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11839
|
|
msgid "guestfs_tar_in_opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11841
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_tar_in_opts (guestfs_h *g,\n"
|
|
" const char *tarfile,\n"
|
|
" const char *directory,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11852
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_TAR_IN_OPTS_COMPRESS, const char *compress,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11865 ../src/guestfs-actions.pod:11950
|
|
msgid "(Added in 1.19.30)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11867
|
|
msgid "guestfs_tar_in_opts_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11869
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_tar_in_opts_va (guestfs_h *g,\n"
|
|
" const char *tarfile,\n"
|
|
" const char *directory,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11875
|
|
msgid "This is the \"va_list variant\" of L</guestfs_tar_in_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11879
|
|
msgid "guestfs_tar_in_opts_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11881
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_tar_in_opts_argv (guestfs_h *g,\n"
|
|
" const char *tarfile,\n"
|
|
" const char *directory,\n"
|
|
" const struct guestfs_tar_in_opts_argv "
|
|
"*optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11887
|
|
msgid "This is the \"argv variant\" of L</guestfs_tar_in_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11891
|
|
msgid "guestfs_tar_out"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11893
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_tar_out (guestfs_h *g,\n"
|
|
" const char *directory,\n"
|
|
" const char *tarfile);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11898
|
|
msgid ""
|
|
"This function is provided for backwards compatibility with earlier versions "
|
|
"of libguestfs. It simply calls L</guestfs_tar_out_opts> with no optional "
|
|
"arguments."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11905
|
|
msgid "guestfs_tar_out_opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11907
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_tar_out_opts (guestfs_h *g,\n"
|
|
" const char *directory,\n"
|
|
" const char *tarfile,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11918
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_TAR_OUT_OPTS_COMPRESS, const char *compress,\n"
|
|
" GUESTFS_TAR_OUT_OPTS_NUMERICOWNER, int numericowner,\n"
|
|
" GUESTFS_TAR_OUT_OPTS_EXCLUDES, char *const *excludes,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11952
|
|
msgid "guestfs_tar_out_opts_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11954
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_tar_out_opts_va (guestfs_h *g,\n"
|
|
" const char *directory,\n"
|
|
" const char *tarfile,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11960
|
|
msgid "This is the \"va_list variant\" of L</guestfs_tar_out_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11964
|
|
msgid "guestfs_tar_out_opts_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11966
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_tar_out_opts_argv (guestfs_h *g,\n"
|
|
" const char *directory,\n"
|
|
" const char *tarfile,\n"
|
|
" const struct guestfs_tar_out_opts_argv "
|
|
"*optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11972
|
|
msgid "This is the \"argv variant\" of L</guestfs_tar_out_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11976
|
|
msgid "guestfs_tgz_in"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11978
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_tgz_in (guestfs_h *g,\n"
|
|
" const char *tarball,\n"
|
|
" const char *directory);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:11983 ../src/guestfs-actions.pod:12219
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_tar_in> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:11997
|
|
msgid "guestfs_tgz_out"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:11999
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_tgz_out (guestfs_h *g,\n"
|
|
" const char *directory,\n"
|
|
" const char *tarball);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12004 ../src/guestfs-actions.pod:12240
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_tar_out> "
|
|
"call instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12018
|
|
msgid "guestfs_touch"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12020
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_touch (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12035
|
|
msgid "guestfs_truncate"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12037
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_truncate (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12048
|
|
msgid "guestfs_truncate_size"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12050
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_truncate_size (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" int64_t size);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12058
|
|
msgid ""
|
|
"If the current file size is less than C<size> then the file is extended to "
|
|
"the required size with zero bytes. This creates a sparse file (ie. disk "
|
|
"blocks are not allocated for the file until you write to it). To create a "
|
|
"non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12068
|
|
msgid "guestfs_tune2fs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12070
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_tune2fs (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12080
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_TUNE2FS_FORCE, int force,\n"
|
|
" GUESTFS_TUNE2FS_MAXMOUNTCOUNT, int maxmountcount,\n"
|
|
" GUESTFS_TUNE2FS_MOUNTCOUNT, int mountcount,\n"
|
|
" GUESTFS_TUNE2FS_ERRORBEHAVIOR, const char *errorbehavior,\n"
|
|
" GUESTFS_TUNE2FS_GROUP, int64_t group,\n"
|
|
" GUESTFS_TUNE2FS_INTERVALBETWEENCHECKS, int intervalbetweenchecks,\n"
|
|
" GUESTFS_TUNE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
|
|
" GUESTFS_TUNE2FS_LASTMOUNTEDDIRECTORY, const char *lastmounteddirectory,\n"
|
|
" GUESTFS_TUNE2FS_RESERVEDBLOCKSCOUNT, int64_t reservedblockscount,\n"
|
|
" GUESTFS_TUNE2FS_USER, int64_t user,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12160
|
|
msgid ""
|
|
"To get the current values of filesystem parameters, see "
|
|
"C<guestfs_tune2fs_l>. For precise details of how tune2fs works, see the "
|
|
"L<tune2fs(8)> man page."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12168
|
|
msgid "guestfs_tune2fs_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12170
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_tune2fs_va (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12175
|
|
msgid "This is the \"va_list variant\" of L</guestfs_tune2fs>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12179
|
|
msgid "guestfs_tune2fs_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12181
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_tune2fs_argv (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const struct guestfs_tune2fs_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12186
|
|
msgid "This is the \"argv variant\" of L</guestfs_tune2fs>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12190
|
|
msgid "guestfs_tune2fs_l"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12192
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_tune2fs_l (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12212
|
|
msgid "guestfs_txz_in"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12214
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_txz_in (guestfs_h *g,\n"
|
|
" const char *tarball,\n"
|
|
" const char *directory);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12233
|
|
msgid "guestfs_txz_out"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12235
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_txz_out (guestfs_h *g,\n"
|
|
" const char *directory,\n"
|
|
" const char *tarball);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12254
|
|
msgid "guestfs_umask"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12256
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_umask (guestfs_h *g,\n"
|
|
" int mask);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12272
|
|
msgid ""
|
|
"See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
|
|
"C<guestfs_mkdir>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12281
|
|
msgid "guestfs_umount"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12283
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_umount (guestfs_h *g,\n"
|
|
" const char *pathordevice);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12287
|
|
msgid ""
|
|
"This function is provided for backwards compatibility with earlier versions "
|
|
"of libguestfs. It simply calls L</guestfs_umount_opts> with no optional "
|
|
"arguments."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12294
|
|
msgid "guestfs_umount_opts"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12296
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_umount_opts (guestfs_h *g,\n"
|
|
" const char *pathordevice,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12306
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_UMOUNT_OPTS_FORCE, int force,\n"
|
|
" GUESTFS_UMOUNT_OPTS_LAZYUNMOUNT, int lazyunmount,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12315
|
|
msgid "(Added in 1.19.25)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12317
|
|
msgid "guestfs_umount_opts_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12319
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_umount_opts_va (guestfs_h *g,\n"
|
|
" const char *pathordevice,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12324
|
|
msgid "This is the \"va_list variant\" of L</guestfs_umount_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12328
|
|
msgid "guestfs_umount_opts_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12330
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_umount_opts_argv (guestfs_h *g,\n"
|
|
" const char *pathordevice,\n"
|
|
" const struct guestfs_umount_opts_argv "
|
|
"*optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12335
|
|
msgid "This is the \"argv variant\" of L</guestfs_umount_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12339
|
|
msgid "guestfs_umount_all"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12341
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_umount_all (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12352
|
|
msgid "guestfs_umount_local"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12354
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_umount_local (guestfs_h *g,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12363
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_UMOUNT_LOCAL_RETRY, int retry,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12374
|
|
msgid "guestfs_umount_local_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12376
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_umount_local_va (guestfs_h *g,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12380
|
|
msgid "This is the \"va_list variant\" of L</guestfs_umount_local>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12384
|
|
msgid "guestfs_umount_local_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12386
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_umount_local_argv (guestfs_h *g,\n"
|
|
" const struct guestfs_umount_local_argv "
|
|
"*optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12390
|
|
msgid "This is the \"argv variant\" of L</guestfs_umount_local>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12394
|
|
msgid "guestfs_upload"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12396
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_upload (guestfs_h *g,\n"
|
|
" const char *filename,\n"
|
|
" const char *remotefilename);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12406
|
|
msgid "See also C<guestfs_download>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12417
|
|
msgid "guestfs_upload_offset"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12419
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_upload_offset (guestfs_h *g,\n"
|
|
" const char *filename,\n"
|
|
" const char *remotefilename,\n"
|
|
" int64_t offset);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12435
|
|
msgid ""
|
|
"Note that there is no limit on the amount of data that can be uploaded with "
|
|
"this call, unlike with C<guestfs_pwrite>, and this call always writes the "
|
|
"full amount unless an error occurs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12440
|
|
msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12451
|
|
msgid "guestfs_user_cancel"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12453
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_user_cancel (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12472
|
|
msgid "There are two common places that you might call C<guestfs_user_cancel>:"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12487
|
|
msgid "guestfs_utimens"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12489
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_utimens (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" int64_t atsecs,\n"
|
|
" int64_t atnsecs,\n"
|
|
" int64_t mtsecs,\n"
|
|
" int64_t mtnsecs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12518 ../src/guestfs-structs.pod:500
|
|
msgid "guestfs_utsname"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12520
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_utsname *\n"
|
|
" guestfs_utsname (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12527
|
|
msgid ""
|
|
"This function returns a C<struct guestfs_utsname *>, or NULL if there was an "
|
|
"error. I<The caller must call C<guestfs_free_utsname> after use>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12531
|
|
msgid "(Added in 1.19.27)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12533 ../src/guestfs-structs.pod:217
|
|
msgid "guestfs_version"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12535
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_version *\n"
|
|
" guestfs_version (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12563
|
|
msgid ""
|
|
"I<Note:> Don't use this call to test for availability of features. In "
|
|
"enterprise distributions we backport features from later versions into "
|
|
"earlier versions, making this an unreliable way to test for features. Use "
|
|
"C<guestfs_available> or C<guestfs_feature_available> instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12569
|
|
msgid ""
|
|
"This function returns a C<struct guestfs_version *>, or NULL if there was an "
|
|
"error. I<The caller must call C<guestfs_free_version> after use>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12573
|
|
msgid "(Added in 1.0.58)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12575
|
|
msgid "guestfs_vfs_label"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12577
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_vfs_label (guestfs_h *g,\n"
|
|
" const char *mountable);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12585
|
|
msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12590 ../src/guestfs-actions.pod:12626
|
|
msgid "(Added in 1.3.18)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12592
|
|
msgid "guestfs_vfs_type"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12594
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_vfs_type (guestfs_h *g,\n"
|
|
" const char *mountable);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12611
|
|
msgid "guestfs_vfs_uuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12613
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_vfs_uuid (guestfs_h *g,\n"
|
|
" const char *mountable);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12621
|
|
msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12628
|
|
msgid "guestfs_vg_activate"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12630
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_vg_activate (guestfs_h *g,\n"
|
|
" int activate,\n"
|
|
" char *const *volgroups);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12647
|
|
msgid "guestfs_vg_activate_all"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12649
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_vg_activate_all (guestfs_h *g,\n"
|
|
" int activate);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12662
|
|
msgid "guestfs_vgchange_uuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12664
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_vgchange_uuid (guestfs_h *g,\n"
|
|
" const char *vg);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12674
|
|
msgid "guestfs_vgchange_uuid_all"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12676
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_vgchange_uuid_all (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12685
|
|
msgid "guestfs_vgcreate"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12687
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_vgcreate (guestfs_h *g,\n"
|
|
" const char *volgroup,\n"
|
|
" char *const *physvols);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12699
|
|
msgid "guestfs_vglvuuids"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12701
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_vglvuuids (guestfs_h *g,\n"
|
|
" const char *vgname);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12708
|
|
msgid ""
|
|
"You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
|
|
"associate logical volumes and volume groups."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12711
|
|
msgid "See also C<guestfs_vgpvuuids>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12719
|
|
msgid "guestfs_vgmeta"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12721
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_vgmeta (guestfs_h *g,\n"
|
|
" const char *vgname,\n"
|
|
" size_t *size_r);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12736
|
|
msgid "(Added in 1.17.20)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12738
|
|
msgid "guestfs_vgpvuuids"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12740
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_vgpvuuids (guestfs_h *g,\n"
|
|
" const char *vgname);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12747
|
|
msgid ""
|
|
"You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
|
|
"associate physical volumes and volume groups."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12750
|
|
msgid "See also C<guestfs_vglvuuids>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12758
|
|
msgid "guestfs_vgremove"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12760
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_vgremove (guestfs_h *g,\n"
|
|
" const char *vgname);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12773
|
|
msgid "guestfs_vgrename"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12775
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_vgrename (guestfs_h *g,\n"
|
|
" const char *volgroup,\n"
|
|
" const char *newvolgroup);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12786
|
|
msgid "guestfs_vgs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12788
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_vgs (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12797
|
|
msgid "See also C<guestfs_vgs_full>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12805
|
|
msgid "guestfs_vgs_full"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12807
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_lvm_vg_list *\n"
|
|
" guestfs_vgs_full (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12813
|
|
msgid ""
|
|
"This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
|
|
"was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after "
|
|
"use>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12819
|
|
msgid "guestfs_vgscan"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12821
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_vgscan (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12831
|
|
msgid "guestfs_vguuid"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12833
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_vguuid (guestfs_h *g,\n"
|
|
" const char *vgname);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12844
|
|
msgid "guestfs_wait_ready"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12846
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_wait_ready (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12849
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12856
|
|
msgid "This function is a no op."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12858
|
|
msgid ""
|
|
"In versions of the API E<lt> 1.0.71 you had to call this function just after "
|
|
"calling C<guestfs_launch> to wait for the launch to complete. However this "
|
|
"is no longer necessary because C<guestfs_launch> now does the waiting."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12863
|
|
msgid ""
|
|
"If you see any calls to this function in code then you can just remove them, "
|
|
"unless you want to retain compatibility with older versions of the API."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12871
|
|
msgid "guestfs_wc_c"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12873
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_wc_c (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12884
|
|
msgid "guestfs_wc_l"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12886
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_wc_l (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12897
|
|
msgid "guestfs_wc_w"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12899
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_wc_w (guestfs_h *g,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12910
|
|
msgid "guestfs_wipefs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12912
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_wipefs (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12922
|
|
msgid "Compare with C<guestfs_zero> which zeroes the first few blocks of a device."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12929
|
|
msgid "guestfs_write"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12931
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_write (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" const char *content,\n"
|
|
" size_t content_size);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12940
|
|
msgid "See also C<guestfs_write_append>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12946
|
|
msgid "guestfs_write_append"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12948
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_write_append (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" const char *content,\n"
|
|
" size_t content_size);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12957
|
|
msgid "See also C<guestfs_write>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12963
|
|
msgid "guestfs_write_file"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12965
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_write_file (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" const char *content,\n"
|
|
" int size);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:12971
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_write> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:12996
|
|
msgid "guestfs_xfs_admin"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:12998
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_xfs_admin (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:13008
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_XFS_ADMIN_EXTUNWRITTEN, int extunwritten,\n"
|
|
" GUESTFS_XFS_ADMIN_IMGFILE, int imgfile,\n"
|
|
" GUESTFS_XFS_ADMIN_V2LOG, int v2log,\n"
|
|
" GUESTFS_XFS_ADMIN_PROJID32BIT, int projid32bit,\n"
|
|
" GUESTFS_XFS_ADMIN_LAZYCOUNTER, int lazycounter,\n"
|
|
" GUESTFS_XFS_ADMIN_LABEL, const char *label,\n"
|
|
" GUESTFS_XFS_ADMIN_UUID, const char *uuid,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:13022
|
|
msgid ""
|
|
"Some of the parameters of a mounted filesystem can be examined and modified "
|
|
"using the C<guestfs_xfs_info> and C<guestfs_xfs_growfs> calls."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:13028
|
|
msgid "(Added in 1.19.33)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:13030
|
|
msgid "guestfs_xfs_admin_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:13032
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_xfs_admin_va (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:13037
|
|
msgid "This is the \"va_list variant\" of L</guestfs_xfs_admin>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:13041
|
|
msgid "guestfs_xfs_admin_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:13043
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_xfs_admin_argv (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const struct guestfs_xfs_admin_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:13048
|
|
msgid "This is the \"argv variant\" of L</guestfs_xfs_admin>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:13052
|
|
msgid "guestfs_xfs_growfs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:13054
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_xfs_growfs (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:13064
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_XFS_GROWFS_DATASEC, int datasec,\n"
|
|
" GUESTFS_XFS_GROWFS_LOGSEC, int logsec,\n"
|
|
" GUESTFS_XFS_GROWFS_RTSEC, int rtsec,\n"
|
|
" GUESTFS_XFS_GROWFS_DATASIZE, int64_t datasize,\n"
|
|
" GUESTFS_XFS_GROWFS_LOGSIZE, int64_t logsize,\n"
|
|
" GUESTFS_XFS_GROWFS_RTSIZE, int64_t rtsize,\n"
|
|
" GUESTFS_XFS_GROWFS_RTEXTSIZE, int64_t rtextsize,\n"
|
|
" GUESTFS_XFS_GROWFS_MAXPCT, int maxpct,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:13083
|
|
msgid "guestfs_xfs_growfs_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:13085
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_xfs_growfs_va (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:13090
|
|
msgid "This is the \"va_list variant\" of L</guestfs_xfs_growfs>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:13094
|
|
msgid "guestfs_xfs_growfs_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:13096
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_xfs_growfs_argv (guestfs_h *g,\n"
|
|
" const char *path,\n"
|
|
" const struct guestfs_xfs_growfs_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:13101
|
|
msgid "This is the \"argv variant\" of L</guestfs_xfs_growfs>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:13105
|
|
msgid "guestfs_xfs_info"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:13107
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_xfsinfo *\n"
|
|
" guestfs_xfs_info (guestfs_h *g,\n"
|
|
" const char *pathordevice);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:13118
|
|
msgid ""
|
|
"This function returns a C<struct guestfs_xfsinfo *>, or NULL if there was an "
|
|
"error. I<The caller must call C<guestfs_free_xfsinfo> after use>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:13122
|
|
msgid "(Added in 1.19.21)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:13124
|
|
msgid "guestfs_xfs_repair"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:13126
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_xfs_repair (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:13136
|
|
#, no-wrap
|
|
msgid ""
|
|
" GUESTFS_XFS_REPAIR_FORCELOGZERO, int forcelogzero,\n"
|
|
" GUESTFS_XFS_REPAIR_NOMODIFY, int nomodify,\n"
|
|
" GUESTFS_XFS_REPAIR_NOPREFETCH, int noprefetch,\n"
|
|
" GUESTFS_XFS_REPAIR_FORCEGEOMETRY, int forcegeometry,\n"
|
|
" GUESTFS_XFS_REPAIR_MAXMEM, int64_t maxmem,\n"
|
|
" GUESTFS_XFS_REPAIR_IHASHSIZE, int64_t ihashsize,\n"
|
|
" GUESTFS_XFS_REPAIR_BHASHSIZE, int64_t bhashsize,\n"
|
|
" GUESTFS_XFS_REPAIR_AGSTRIDE, int64_t agstride,\n"
|
|
" GUESTFS_XFS_REPAIR_LOGDEV, const char *logdev,\n"
|
|
" GUESTFS_XFS_REPAIR_RTDEV, const char *rtdev,\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:13163
|
|
msgid "(Added in 1.19.36)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:13165
|
|
msgid "guestfs_xfs_repair_va"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:13167
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_xfs_repair_va (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:13172
|
|
msgid "This is the \"va_list variant\" of L</guestfs_xfs_repair>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:13176
|
|
msgid "guestfs_xfs_repair_argv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:13178
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_xfs_repair_argv (guestfs_h *g,\n"
|
|
" const char *device,\n"
|
|
" const struct guestfs_xfs_repair_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:13183
|
|
msgid "This is the \"argv variant\" of L</guestfs_xfs_repair>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:13187
|
|
msgid "guestfs_zegrep"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:13189
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_zegrep (guestfs_h *g,\n"
|
|
" const char *regex,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:13213
|
|
msgid "guestfs_zegrepi"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:13215
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_zegrepi (guestfs_h *g,\n"
|
|
" const char *regex,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:13239
|
|
msgid "guestfs_zero"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:13241
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_zero (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:13255
|
|
msgid ""
|
|
"See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
|
|
"C<guestfs_is_zero_device>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:13267
|
|
msgid "guestfs_zero_device"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:13269
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_zero_device (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:13273
|
|
msgid ""
|
|
"This command writes zeroes over the entire C<device>. Compare with "
|
|
"C<guestfs_zero> which just zeroes the first few blocks of a device."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:13288
|
|
msgid "(Added in 1.3.1)"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:13290
|
|
msgid "guestfs_zero_free_space"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:13292
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_zero_free_space (guestfs_h *g,\n"
|
|
" const char *directory);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:13302
|
|
msgid ""
|
|
"Free space is not \"trimmed\". You may want to call C<guestfs_fstrim> "
|
|
"either as an alternative to this, or after calling this, depending on your "
|
|
"requirements."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:13315
|
|
msgid "guestfs_zerofree"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:13317
|
|
#, no-wrap
|
|
msgid ""
|
|
" int\n"
|
|
" guestfs_zerofree (guestfs_h *g,\n"
|
|
" const char *device);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:13336
|
|
msgid "guestfs_zfgrep"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:13338
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_zfgrep (guestfs_h *g,\n"
|
|
" const char *pattern,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:13362
|
|
msgid "guestfs_zfgrepi"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:13364
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_zfgrepi (guestfs_h *g,\n"
|
|
" const char *pattern,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:13388
|
|
msgid "guestfs_zfile"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:13390
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *\n"
|
|
" guestfs_zfile (guestfs_h *g,\n"
|
|
" const char *meth,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:13395
|
|
msgid ""
|
|
"I<This function is deprecated.> In new code, use the L</guestfs_file> call "
|
|
"instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-actions.pod:13407
|
|
msgid ""
|
|
"Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
|
|
"files."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:13415
|
|
msgid "guestfs_zgrep"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:13417
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_zgrep (guestfs_h *g,\n"
|
|
" const char *regex,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-actions.pod:13441
|
|
msgid "guestfs_zgrepi"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-actions.pod:13443
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **\n"
|
|
" guestfs_zgrepi (guestfs_h *g,\n"
|
|
" const char *regex,\n"
|
|
" const char *path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:3
|
|
msgid "B<acl>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:5
|
|
msgid ""
|
|
"The following functions: L</guestfs_acl_delete_def_file> "
|
|
"L</guestfs_acl_get_file> L</guestfs_acl_set_file>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:10
|
|
msgid "B<augeas>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:12
|
|
msgid ""
|
|
"The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
|
|
"L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
|
|
"L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_label> "
|
|
"L</guestfs_aug_load> L</guestfs_aug_ls> L</guestfs_aug_match> "
|
|
"L</guestfs_aug_mv> L</guestfs_aug_rm> L</guestfs_aug_save> "
|
|
"L</guestfs_aug_set> L</guestfs_aug_setm>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:30
|
|
msgid "B<btrfs>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:32
|
|
msgid ""
|
|
"The following functions: L</guestfs_btrfs_device_add> "
|
|
"L</guestfs_btrfs_device_delete> L</guestfs_btrfs_filesystem_balance> "
|
|
"L</guestfs_btrfs_filesystem_resize> L</guestfs_btrfs_filesystem_sync> "
|
|
"L</guestfs_btrfs_fsck> L</guestfs_btrfs_set_seeding> "
|
|
"L</guestfs_btrfs_subvolume_create> L</guestfs_btrfs_subvolume_delete> "
|
|
"L</guestfs_btrfs_subvolume_list> L</guestfs_btrfs_subvolume_set_default> "
|
|
"L</guestfs_btrfs_subvolume_snapshot> L</guestfs_mkfs_btrfs>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:47
|
|
msgid "B<extlinux>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:49
|
|
msgid "The following functions: L</guestfs_extlinux>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:52
|
|
msgid "B<fstrim>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:54
|
|
msgid "The following functions: L</guestfs_fstrim>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:57
|
|
msgid "B<gdisk>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:59
|
|
msgid ""
|
|
"The following functions: L</guestfs_part_get_gpt_type> "
|
|
"L</guestfs_part_get_name> L</guestfs_part_set_gpt_type>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:64
|
|
msgid "B<grub>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:66
|
|
msgid "The following functions: L</guestfs_grub_install>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:69
|
|
msgid "B<hivex>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:71
|
|
msgid ""
|
|
"The following functions: L</guestfs_hivex_close> L</guestfs_hivex_commit> "
|
|
"L</guestfs_hivex_node_add_child> L</guestfs_hivex_node_children> "
|
|
"L</guestfs_hivex_node_delete_child> L</guestfs_hivex_node_get_child> "
|
|
"L</guestfs_hivex_node_get_value> L</guestfs_hivex_node_name> "
|
|
"L</guestfs_hivex_node_parent> L</guestfs_hivex_node_set_value> "
|
|
"L</guestfs_hivex_node_values> L</guestfs_hivex_open> L</guestfs_hivex_root> "
|
|
"L</guestfs_hivex_value_key> L</guestfs_hivex_value_type> "
|
|
"L</guestfs_hivex_value_value>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:89
|
|
msgid "B<inotify>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:91
|
|
msgid ""
|
|
"The following functions: L</guestfs_inotify_add_watch> "
|
|
"L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
|
|
"L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:99
|
|
msgid "B<journal>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:101
|
|
msgid ""
|
|
"The following functions: L</guestfs_internal_journal_get> "
|
|
"L</guestfs_journal_close> L</guestfs_journal_get_data_threshold> "
|
|
"L</guestfs_journal_next> L</guestfs_journal_open> "
|
|
"L</guestfs_journal_set_data_threshold> L</guestfs_journal_skip>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:110
|
|
msgid "B<ldm>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:112
|
|
msgid ""
|
|
"The following functions: L</guestfs_ldmtool_create_all> "
|
|
"L</guestfs_ldmtool_diskgroup_disks> L</guestfs_ldmtool_diskgroup_name> "
|
|
"L</guestfs_ldmtool_diskgroup_volumes> L</guestfs_ldmtool_remove_all> "
|
|
"L</guestfs_ldmtool_scan> L</guestfs_ldmtool_scan_devices> "
|
|
"L</guestfs_ldmtool_volume_hint> L</guestfs_ldmtool_volume_partitions> "
|
|
"L</guestfs_ldmtool_volume_type> L</guestfs_list_ldm_partitions> "
|
|
"L</guestfs_list_ldm_volumes>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:126
|
|
msgid "B<linuxcaps>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:128
|
|
msgid "The following functions: L</guestfs_cap_get_file> L</guestfs_cap_set_file>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:132
|
|
msgid "B<linuxfsuuid>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:134
|
|
msgid ""
|
|
"The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
|
|
"L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:141
|
|
msgid "B<linuxmodules>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:143
|
|
msgid "The following functions: L</guestfs_modprobe>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:146
|
|
msgid "B<linuxxattrs>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:148
|
|
msgid ""
|
|
"The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
|
|
"L</guestfs_internal_lxattrlist> L</guestfs_lgetxattr> L</guestfs_lgetxattrs> "
|
|
"L</guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_removexattr> "
|
|
"L</guestfs_setxattr>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:159
|
|
msgid "B<luks>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:161
|
|
msgid ""
|
|
"The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
|
|
"L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
|
|
"L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:170
|
|
msgid "B<lvm2>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:172
|
|
msgid ""
|
|
"The following functions: L</guestfs_lvcreate> L</guestfs_lvcreate_free> "
|
|
"L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
|
|
"L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
|
|
"L</guestfs_lvs_full> L</guestfs_pvchange_uuid> L</guestfs_pvchange_uuid_all> "
|
|
"L</guestfs_pvcreate> L</guestfs_pvremove> L</guestfs_pvresize> "
|
|
"L</guestfs_pvresize_size> L</guestfs_pvs> L</guestfs_pvs_full> "
|
|
"L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
|
|
"L</guestfs_vgchange_uuid> L</guestfs_vgchange_uuid_all> L</guestfs_vgcreate> "
|
|
"L</guestfs_vgmeta> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:200
|
|
msgid "B<mdadm>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:202
|
|
msgid ""
|
|
"The following functions: L</guestfs_md_create> L</guestfs_md_detail> "
|
|
"L</guestfs_md_stat> L</guestfs_md_stop>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:208
|
|
msgid "B<mknod>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:210
|
|
msgid ""
|
|
"The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
|
|
"L</guestfs_mknod_b> L</guestfs_mknod_c>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:216
|
|
msgid "B<ntfs3g>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:218
|
|
msgid ""
|
|
"The following functions: L</guestfs_ntfs_3g_probe> L</guestfs_ntfsclone_in> "
|
|
"L</guestfs_ntfsclone_out> L</guestfs_ntfsfix>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:224
|
|
msgid "B<ntfsprogs>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:226
|
|
msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:230
|
|
msgid "B<realpath>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:232
|
|
msgid "The following functions: L</guestfs_realpath>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:235
|
|
msgid "B<rsync>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:237
|
|
msgid ""
|
|
"The following functions: L</guestfs_rsync> L</guestfs_rsync_in> "
|
|
"L</guestfs_rsync_out>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:242
|
|
msgid "B<scrub>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:244
|
|
msgid ""
|
|
"The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
|
|
"L</guestfs_scrub_freespace>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:249
|
|
msgid "B<selinux>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:251
|
|
msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:255
|
|
msgid "B<syslinux>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:257
|
|
msgid "The following functions: L</guestfs_syslinux>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:260
|
|
msgid "B<wipefs>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:262
|
|
msgid "The following functions: L</guestfs_wipefs>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:265
|
|
msgid "B<xfs>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:267
|
|
msgid ""
|
|
"The following functions: L</guestfs_xfs_admin> L</guestfs_xfs_growfs> "
|
|
"L</guestfs_xfs_info> L</guestfs_xfs_repair>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:273
|
|
msgid "B<xz>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:275
|
|
msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs-availability.pod:279
|
|
msgid "B<zerofree>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs-availability.pod:281
|
|
msgid "The following functions: L</guestfs_zerofree>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-structs.pod:1
|
|
msgid "guestfs_int_bool"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:3
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_int_bool {\n"
|
|
" int32_t i;\n"
|
|
" int32_t b;\n"
|
|
" };\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:8
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_int_bool_list {\n"
|
|
" uint32_t len; /* Number of elements in list. */\n"
|
|
" struct guestfs_int_bool *val; /* Elements. */\n"
|
|
" };\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:13
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_compare_int_bool (const struct guestfs_int_bool *, const struct "
|
|
"guestfs_int_bool *);\n"
|
|
" int guestfs_compare_int_bool_list (const struct guestfs_int_bool_list *, "
|
|
"const struct guestfs_int_bool_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:16
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_int_bool *guestfs_copy_int_bool (const struct "
|
|
"guestfs_int_bool *);\n"
|
|
" struct guestfs_int_bool_list *guestfs_copy_int_bool_list (const struct "
|
|
"guestfs_int_bool_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:19
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_free_int_bool (struct guestfs_int_bool *);\n"
|
|
" void guestfs_free_int_bool_list (struct guestfs_int_bool_list *);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-structs.pod:22
|
|
msgid "guestfs_lvm_pv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:24
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_lvm_pv {\n"
|
|
" char *pv_name;\n"
|
|
" /* The next field is NOT nul-terminated, be careful when printing it: "
|
|
"*/\n"
|
|
" char pv_uuid[32];\n"
|
|
" char *pv_fmt;\n"
|
|
" uint64_t pv_size;\n"
|
|
" uint64_t dev_size;\n"
|
|
" uint64_t pv_free;\n"
|
|
" uint64_t pv_used;\n"
|
|
" char *pv_attr;\n"
|
|
" int64_t pv_pe_count;\n"
|
|
" int64_t pv_pe_alloc_count;\n"
|
|
" char *pv_tags;\n"
|
|
" uint64_t pe_start;\n"
|
|
" int64_t pv_mda_count;\n"
|
|
" uint64_t pv_mda_free;\n"
|
|
" };\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:42
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_lvm_pv_list {\n"
|
|
" uint32_t len; /* Number of elements in list. */\n"
|
|
" struct guestfs_lvm_pv *val; /* Elements. */\n"
|
|
" };\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:47
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_compare_lvm_pv (const struct guestfs_lvm_pv *, const struct "
|
|
"guestfs_lvm_pv *);\n"
|
|
" int guestfs_compare_lvm_pv_list (const struct guestfs_lvm_pv_list *, const "
|
|
"struct guestfs_lvm_pv_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:50
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_lvm_pv *guestfs_copy_lvm_pv (const struct guestfs_lvm_pv "
|
|
"*);\n"
|
|
" struct guestfs_lvm_pv_list *guestfs_copy_lvm_pv_list (const struct "
|
|
"guestfs_lvm_pv_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:53
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_free_lvm_pv (struct guestfs_lvm_pv *);\n"
|
|
" void guestfs_free_lvm_pv_list (struct guestfs_lvm_pv_list *);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-structs.pod:56
|
|
msgid "guestfs_lvm_vg"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:58
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_lvm_vg {\n"
|
|
" char *vg_name;\n"
|
|
" /* The next field is NOT nul-terminated, be careful when printing it: "
|
|
"*/\n"
|
|
" char vg_uuid[32];\n"
|
|
" char *vg_fmt;\n"
|
|
" char *vg_attr;\n"
|
|
" uint64_t vg_size;\n"
|
|
" uint64_t vg_free;\n"
|
|
" char *vg_sysid;\n"
|
|
" uint64_t vg_extent_size;\n"
|
|
" int64_t vg_extent_count;\n"
|
|
" int64_t vg_free_count;\n"
|
|
" int64_t max_lv;\n"
|
|
" int64_t max_pv;\n"
|
|
" int64_t pv_count;\n"
|
|
" int64_t lv_count;\n"
|
|
" int64_t snap_count;\n"
|
|
" int64_t vg_seqno;\n"
|
|
" char *vg_tags;\n"
|
|
" int64_t vg_mda_count;\n"
|
|
" uint64_t vg_mda_free;\n"
|
|
" };\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:81
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_lvm_vg_list {\n"
|
|
" uint32_t len; /* Number of elements in list. */\n"
|
|
" struct guestfs_lvm_vg *val; /* Elements. */\n"
|
|
" };\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:86
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_compare_lvm_vg (const struct guestfs_lvm_vg *, const struct "
|
|
"guestfs_lvm_vg *);\n"
|
|
" int guestfs_compare_lvm_vg_list (const struct guestfs_lvm_vg_list *, const "
|
|
"struct guestfs_lvm_vg_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:89
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_lvm_vg *guestfs_copy_lvm_vg (const struct guestfs_lvm_vg "
|
|
"*);\n"
|
|
" struct guestfs_lvm_vg_list *guestfs_copy_lvm_vg_list (const struct "
|
|
"guestfs_lvm_vg_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:92
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_free_lvm_vg (struct guestfs_lvm_vg *);\n"
|
|
" void guestfs_free_lvm_vg_list (struct guestfs_lvm_vg_list *);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-structs.pod:95
|
|
msgid "guestfs_lvm_lv"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:97
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_lvm_lv {\n"
|
|
" char *lv_name;\n"
|
|
" /* The next field is NOT nul-terminated, be careful when printing it: "
|
|
"*/\n"
|
|
" char lv_uuid[32];\n"
|
|
" char *lv_attr;\n"
|
|
" int64_t lv_major;\n"
|
|
" int64_t lv_minor;\n"
|
|
" int64_t lv_kernel_major;\n"
|
|
" int64_t lv_kernel_minor;\n"
|
|
" uint64_t lv_size;\n"
|
|
" int64_t seg_count;\n"
|
|
" char *origin;\n"
|
|
" /* The next field is [0..100] or -1 meaning 'not present': */\n"
|
|
" float snap_percent;\n"
|
|
" /* The next field is [0..100] or -1 meaning 'not present': */\n"
|
|
" float copy_percent;\n"
|
|
" char *move_pv;\n"
|
|
" char *lv_tags;\n"
|
|
" char *mirror_log;\n"
|
|
" char *modules;\n"
|
|
" };\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:119
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_lvm_lv_list {\n"
|
|
" uint32_t len; /* Number of elements in list. */\n"
|
|
" struct guestfs_lvm_lv *val; /* Elements. */\n"
|
|
" };\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:124
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_compare_lvm_lv (const struct guestfs_lvm_lv *, const struct "
|
|
"guestfs_lvm_lv *);\n"
|
|
" int guestfs_compare_lvm_lv_list (const struct guestfs_lvm_lv_list *, const "
|
|
"struct guestfs_lvm_lv_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:127
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_lvm_lv *guestfs_copy_lvm_lv (const struct guestfs_lvm_lv "
|
|
"*);\n"
|
|
" struct guestfs_lvm_lv_list *guestfs_copy_lvm_lv_list (const struct "
|
|
"guestfs_lvm_lv_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:130
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_free_lvm_lv (struct guestfs_lvm_lv *);\n"
|
|
" void guestfs_free_lvm_lv_list (struct guestfs_lvm_lv_list *);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:135
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_stat {\n"
|
|
" int64_t dev;\n"
|
|
" int64_t ino;\n"
|
|
" int64_t mode;\n"
|
|
" int64_t nlink;\n"
|
|
" int64_t uid;\n"
|
|
" int64_t gid;\n"
|
|
" int64_t rdev;\n"
|
|
" int64_t size;\n"
|
|
" int64_t blksize;\n"
|
|
" int64_t blocks;\n"
|
|
" int64_t atime;\n"
|
|
" int64_t mtime;\n"
|
|
" int64_t ctime;\n"
|
|
" };\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:151
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_stat_list {\n"
|
|
" uint32_t len; /* Number of elements in list. */\n"
|
|
" struct guestfs_stat *val; /* Elements. */\n"
|
|
" };\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:156
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_compare_stat (const struct guestfs_stat *, const struct "
|
|
"guestfs_stat *);\n"
|
|
" int guestfs_compare_stat_list (const struct guestfs_stat_list *, const "
|
|
"struct guestfs_stat_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:159
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_stat *guestfs_copy_stat (const struct guestfs_stat *);\n"
|
|
" struct guestfs_stat_list *guestfs_copy_stat_list (const struct "
|
|
"guestfs_stat_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:162
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_free_stat (struct guestfs_stat *);\n"
|
|
" void guestfs_free_stat_list (struct guestfs_stat_list *);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:167
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_statvfs {\n"
|
|
" int64_t bsize;\n"
|
|
" int64_t frsize;\n"
|
|
" int64_t blocks;\n"
|
|
" int64_t bfree;\n"
|
|
" int64_t bavail;\n"
|
|
" int64_t files;\n"
|
|
" int64_t ffree;\n"
|
|
" int64_t favail;\n"
|
|
" int64_t fsid;\n"
|
|
" int64_t flag;\n"
|
|
" int64_t namemax;\n"
|
|
" };\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:181
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_statvfs_list {\n"
|
|
" uint32_t len; /* Number of elements in list. */\n"
|
|
" struct guestfs_statvfs *val; /* Elements. */\n"
|
|
" };\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:186
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_compare_statvfs (const struct guestfs_statvfs *, const struct "
|
|
"guestfs_statvfs *);\n"
|
|
" int guestfs_compare_statvfs_list (const struct guestfs_statvfs_list *, "
|
|
"const struct guestfs_statvfs_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:189
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_statvfs *guestfs_copy_statvfs (const struct guestfs_statvfs "
|
|
"*);\n"
|
|
" struct guestfs_statvfs_list *guestfs_copy_statvfs_list (const struct "
|
|
"guestfs_statvfs_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:192
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_free_statvfs (struct guestfs_statvfs *);\n"
|
|
" void guestfs_free_statvfs_list (struct guestfs_statvfs_list *);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-structs.pod:195
|
|
msgid "guestfs_dirent"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:197
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_dirent {\n"
|
|
" int64_t ino;\n"
|
|
" char ftyp;\n"
|
|
" char *name;\n"
|
|
" };\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:203
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_dirent_list {\n"
|
|
" uint32_t len; /* Number of elements in list. */\n"
|
|
" struct guestfs_dirent *val; /* Elements. */\n"
|
|
" };\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:208
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_compare_dirent (const struct guestfs_dirent *, const struct "
|
|
"guestfs_dirent *);\n"
|
|
" int guestfs_compare_dirent_list (const struct guestfs_dirent_list *, const "
|
|
"struct guestfs_dirent_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:211
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_dirent *guestfs_copy_dirent (const struct guestfs_dirent "
|
|
"*);\n"
|
|
" struct guestfs_dirent_list *guestfs_copy_dirent_list (const struct "
|
|
"guestfs_dirent_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:214
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_free_dirent (struct guestfs_dirent *);\n"
|
|
" void guestfs_free_dirent_list (struct guestfs_dirent_list *);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:219
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_version {\n"
|
|
" int64_t major;\n"
|
|
" int64_t minor;\n"
|
|
" int64_t release;\n"
|
|
" char *extra;\n"
|
|
" };\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:226
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_version_list {\n"
|
|
" uint32_t len; /* Number of elements in list. */\n"
|
|
" struct guestfs_version *val; /* Elements. */\n"
|
|
" };\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:231
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_compare_version (const struct guestfs_version *, const struct "
|
|
"guestfs_version *);\n"
|
|
" int guestfs_compare_version_list (const struct guestfs_version_list *, "
|
|
"const struct guestfs_version_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:234
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_version *guestfs_copy_version (const struct guestfs_version "
|
|
"*);\n"
|
|
" struct guestfs_version_list *guestfs_copy_version_list (const struct "
|
|
"guestfs_version_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:237
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_free_version (struct guestfs_version *);\n"
|
|
" void guestfs_free_version_list (struct guestfs_version_list *);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-structs.pod:240
|
|
msgid "guestfs_xattr"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:242
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_xattr {\n"
|
|
" char *attrname;\n"
|
|
" /* The next two fields describe a byte array. */\n"
|
|
" uint32_t attrval_len;\n"
|
|
" char *attrval;\n"
|
|
" };\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:249
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_xattr_list {\n"
|
|
" uint32_t len; /* Number of elements in list. */\n"
|
|
" struct guestfs_xattr *val; /* Elements. */\n"
|
|
" };\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:254
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_compare_xattr (const struct guestfs_xattr *, const struct "
|
|
"guestfs_xattr *);\n"
|
|
" int guestfs_compare_xattr_list (const struct guestfs_xattr_list *, const "
|
|
"struct guestfs_xattr_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:257
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_xattr *guestfs_copy_xattr (const struct guestfs_xattr *);\n"
|
|
" struct guestfs_xattr_list *guestfs_copy_xattr_list (const struct "
|
|
"guestfs_xattr_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:260
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_free_xattr (struct guestfs_xattr *);\n"
|
|
" void guestfs_free_xattr_list (struct guestfs_xattr_list *);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-structs.pod:263
|
|
msgid "guestfs_inotify_event"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:265
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_inotify_event {\n"
|
|
" int64_t in_wd;\n"
|
|
" uint32_t in_mask;\n"
|
|
" uint32_t in_cookie;\n"
|
|
" char *in_name;\n"
|
|
" };\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:272
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_inotify_event_list {\n"
|
|
" uint32_t len; /* Number of elements in list. */\n"
|
|
" struct guestfs_inotify_event *val; /* Elements. */\n"
|
|
" };\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:277
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_compare_inotify_event (const struct guestfs_inotify_event *, "
|
|
"const struct guestfs_inotify_event *);\n"
|
|
" int guestfs_compare_inotify_event_list (const struct "
|
|
"guestfs_inotify_event_list *, const struct guestfs_inotify_event_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:280
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_inotify_event *guestfs_copy_inotify_event (const struct "
|
|
"guestfs_inotify_event *);\n"
|
|
" struct guestfs_inotify_event_list *guestfs_copy_inotify_event_list (const "
|
|
"struct guestfs_inotify_event_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:283
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_free_inotify_event (struct guestfs_inotify_event *);\n"
|
|
" void guestfs_free_inotify_event_list (struct guestfs_inotify_event_list "
|
|
"*);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-structs.pod:286
|
|
msgid "guestfs_partition"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:288
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_partition {\n"
|
|
" int32_t part_num;\n"
|
|
" uint64_t part_start;\n"
|
|
" uint64_t part_end;\n"
|
|
" uint64_t part_size;\n"
|
|
" };\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:295
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_partition_list {\n"
|
|
" uint32_t len; /* Number of elements in list. */\n"
|
|
" struct guestfs_partition *val; /* Elements. */\n"
|
|
" };\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:300
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_compare_partition (const struct guestfs_partition *, const "
|
|
"struct guestfs_partition *);\n"
|
|
" int guestfs_compare_partition_list (const struct guestfs_partition_list *, "
|
|
"const struct guestfs_partition_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:303
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_partition *guestfs_copy_partition (const struct "
|
|
"guestfs_partition *);\n"
|
|
" struct guestfs_partition_list *guestfs_copy_partition_list (const struct "
|
|
"guestfs_partition_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:306
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_free_partition (struct guestfs_partition *);\n"
|
|
" void guestfs_free_partition_list (struct guestfs_partition_list *);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-structs.pod:309
|
|
msgid "guestfs_application"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:311
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_application {\n"
|
|
" char *app_name;\n"
|
|
" char *app_display_name;\n"
|
|
" int32_t app_epoch;\n"
|
|
" char *app_version;\n"
|
|
" char *app_release;\n"
|
|
" char *app_install_path;\n"
|
|
" char *app_trans_path;\n"
|
|
" char *app_publisher;\n"
|
|
" char *app_url;\n"
|
|
" char *app_source_package;\n"
|
|
" char *app_summary;\n"
|
|
" char *app_description;\n"
|
|
" };\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:326
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_application_list {\n"
|
|
" uint32_t len; /* Number of elements in list. */\n"
|
|
" struct guestfs_application *val; /* Elements. */\n"
|
|
" };\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:331
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_compare_application (const struct guestfs_application *, const "
|
|
"struct guestfs_application *);\n"
|
|
" int guestfs_compare_application_list (const struct guestfs_application_list "
|
|
"*, const struct guestfs_application_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:334
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_application *guestfs_copy_application (const struct "
|
|
"guestfs_application *);\n"
|
|
" struct guestfs_application_list *guestfs_copy_application_list (const "
|
|
"struct guestfs_application_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:337
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_free_application (struct guestfs_application *);\n"
|
|
" void guestfs_free_application_list (struct guestfs_application_list *);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-structs.pod:340
|
|
msgid "guestfs_application2"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:342
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_application2 {\n"
|
|
" char *app2_name;\n"
|
|
" char *app2_display_name;\n"
|
|
" int32_t app2_epoch;\n"
|
|
" char *app2_version;\n"
|
|
" char *app2_release;\n"
|
|
" char *app2_arch;\n"
|
|
" char *app2_install_path;\n"
|
|
" char *app2_trans_path;\n"
|
|
" char *app2_publisher;\n"
|
|
" char *app2_url;\n"
|
|
" char *app2_source_package;\n"
|
|
" char *app2_summary;\n"
|
|
" char *app2_description;\n"
|
|
" char *app2_spare1;\n"
|
|
" char *app2_spare2;\n"
|
|
" char *app2_spare3;\n"
|
|
" char *app2_spare4;\n"
|
|
" };\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:362
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_application2_list {\n"
|
|
" uint32_t len; /* Number of elements in list. */\n"
|
|
" struct guestfs_application2 *val; /* Elements. */\n"
|
|
" };\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:367
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_compare_application2 (const struct guestfs_application2 *, "
|
|
"const struct guestfs_application2 *);\n"
|
|
" int guestfs_compare_application2_list (const struct "
|
|
"guestfs_application2_list *, const struct guestfs_application2_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:370
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_application2 *guestfs_copy_application2 (const struct "
|
|
"guestfs_application2 *);\n"
|
|
" struct guestfs_application2_list *guestfs_copy_application2_list (const "
|
|
"struct guestfs_application2_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:373
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_free_application2 (struct guestfs_application2 *);\n"
|
|
" void guestfs_free_application2_list (struct guestfs_application2_list *);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:378
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_isoinfo {\n"
|
|
" char *iso_system_id;\n"
|
|
" char *iso_volume_id;\n"
|
|
" uint32_t iso_volume_space_size;\n"
|
|
" uint32_t iso_volume_set_size;\n"
|
|
" uint32_t iso_volume_sequence_number;\n"
|
|
" uint32_t iso_logical_block_size;\n"
|
|
" char *iso_volume_set_id;\n"
|
|
" char *iso_publisher_id;\n"
|
|
" char *iso_data_preparer_id;\n"
|
|
" char *iso_application_id;\n"
|
|
" char *iso_copyright_file_id;\n"
|
|
" char *iso_abstract_file_id;\n"
|
|
" char *iso_bibliographic_file_id;\n"
|
|
" int64_t iso_volume_creation_t;\n"
|
|
" int64_t iso_volume_modification_t;\n"
|
|
" int64_t iso_volume_expiration_t;\n"
|
|
" int64_t iso_volume_effective_t;\n"
|
|
" };\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:398
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_isoinfo_list {\n"
|
|
" uint32_t len; /* Number of elements in list. */\n"
|
|
" struct guestfs_isoinfo *val; /* Elements. */\n"
|
|
" };\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:403
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_compare_isoinfo (const struct guestfs_isoinfo *, const struct "
|
|
"guestfs_isoinfo *);\n"
|
|
" int guestfs_compare_isoinfo_list (const struct guestfs_isoinfo_list *, "
|
|
"const struct guestfs_isoinfo_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:406
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_isoinfo *guestfs_copy_isoinfo (const struct guestfs_isoinfo "
|
|
"*);\n"
|
|
" struct guestfs_isoinfo_list *guestfs_copy_isoinfo_list (const struct "
|
|
"guestfs_isoinfo_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:409
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_free_isoinfo (struct guestfs_isoinfo *);\n"
|
|
" void guestfs_free_isoinfo_list (struct guestfs_isoinfo_list *);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-structs.pod:412
|
|
msgid "guestfs_mdstat"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:414
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_mdstat {\n"
|
|
" char *mdstat_device;\n"
|
|
" int32_t mdstat_index;\n"
|
|
" char *mdstat_flags;\n"
|
|
" };\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:420
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_mdstat_list {\n"
|
|
" uint32_t len; /* Number of elements in list. */\n"
|
|
" struct guestfs_mdstat *val; /* Elements. */\n"
|
|
" };\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:425
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_compare_mdstat (const struct guestfs_mdstat *, const struct "
|
|
"guestfs_mdstat *);\n"
|
|
" int guestfs_compare_mdstat_list (const struct guestfs_mdstat_list *, const "
|
|
"struct guestfs_mdstat_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:428
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_mdstat *guestfs_copy_mdstat (const struct guestfs_mdstat "
|
|
"*);\n"
|
|
" struct guestfs_mdstat_list *guestfs_copy_mdstat_list (const struct "
|
|
"guestfs_mdstat_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:431
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_free_mdstat (struct guestfs_mdstat *);\n"
|
|
" void guestfs_free_mdstat_list (struct guestfs_mdstat_list *);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-structs.pod:434
|
|
msgid "guestfs_btrfssubvolume"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:436
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_btrfssubvolume {\n"
|
|
" uint64_t btrfssubvolume_id;\n"
|
|
" uint64_t btrfssubvolume_top_level_id;\n"
|
|
" char *btrfssubvolume_path;\n"
|
|
" };\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:442
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_btrfssubvolume_list {\n"
|
|
" uint32_t len; /* Number of elements in list. */\n"
|
|
" struct guestfs_btrfssubvolume *val; /* Elements. */\n"
|
|
" };\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:447
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_compare_btrfssubvolume (const struct guestfs_btrfssubvolume *, "
|
|
"const struct guestfs_btrfssubvolume *);\n"
|
|
" int guestfs_compare_btrfssubvolume_list (const struct "
|
|
"guestfs_btrfssubvolume_list *, const struct guestfs_btrfssubvolume_list "
|
|
"*);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:450
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_btrfssubvolume *guestfs_copy_btrfssubvolume (const struct "
|
|
"guestfs_btrfssubvolume *);\n"
|
|
" struct guestfs_btrfssubvolume_list *guestfs_copy_btrfssubvolume_list (const "
|
|
"struct guestfs_btrfssubvolume_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:453
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_free_btrfssubvolume (struct guestfs_btrfssubvolume *);\n"
|
|
" void guestfs_free_btrfssubvolume_list (struct guestfs_btrfssubvolume_list "
|
|
"*);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-structs.pod:456
|
|
msgid "guestfs_xfsinfo"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:458
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_xfsinfo {\n"
|
|
" char *xfs_mntpoint;\n"
|
|
" uint32_t xfs_inodesize;\n"
|
|
" uint32_t xfs_agcount;\n"
|
|
" uint32_t xfs_agsize;\n"
|
|
" uint32_t xfs_sectsize;\n"
|
|
" uint32_t xfs_attr;\n"
|
|
" uint32_t xfs_blocksize;\n"
|
|
" uint64_t xfs_datablocks;\n"
|
|
" uint32_t xfs_imaxpct;\n"
|
|
" uint32_t xfs_sunit;\n"
|
|
" uint32_t xfs_swidth;\n"
|
|
" uint32_t xfs_dirversion;\n"
|
|
" uint32_t xfs_dirblocksize;\n"
|
|
" uint32_t xfs_cimode;\n"
|
|
" char *xfs_logname;\n"
|
|
" uint32_t xfs_logblocksize;\n"
|
|
" uint32_t xfs_logblocks;\n"
|
|
" uint32_t xfs_logversion;\n"
|
|
" uint32_t xfs_logsectsize;\n"
|
|
" uint32_t xfs_logsunit;\n"
|
|
" uint32_t xfs_lazycount;\n"
|
|
" char *xfs_rtname;\n"
|
|
" uint32_t xfs_rtextsize;\n"
|
|
" uint64_t xfs_rtblocks;\n"
|
|
" uint64_t xfs_rtextents;\n"
|
|
" };\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:486
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_xfsinfo_list {\n"
|
|
" uint32_t len; /* Number of elements in list. */\n"
|
|
" struct guestfs_xfsinfo *val; /* Elements. */\n"
|
|
" };\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:491
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_compare_xfsinfo (const struct guestfs_xfsinfo *, const struct "
|
|
"guestfs_xfsinfo *);\n"
|
|
" int guestfs_compare_xfsinfo_list (const struct guestfs_xfsinfo_list *, "
|
|
"const struct guestfs_xfsinfo_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:494
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_xfsinfo *guestfs_copy_xfsinfo (const struct guestfs_xfsinfo "
|
|
"*);\n"
|
|
" struct guestfs_xfsinfo_list *guestfs_copy_xfsinfo_list (const struct "
|
|
"guestfs_xfsinfo_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:497
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_free_xfsinfo (struct guestfs_xfsinfo *);\n"
|
|
" void guestfs_free_xfsinfo_list (struct guestfs_xfsinfo_list *);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:502
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_utsname {\n"
|
|
" char *uts_sysname;\n"
|
|
" char *uts_release;\n"
|
|
" char *uts_version;\n"
|
|
" char *uts_machine;\n"
|
|
" };\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:509
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_utsname_list {\n"
|
|
" uint32_t len; /* Number of elements in list. */\n"
|
|
" struct guestfs_utsname *val; /* Elements. */\n"
|
|
" };\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:514
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_compare_utsname (const struct guestfs_utsname *, const struct "
|
|
"guestfs_utsname *);\n"
|
|
" int guestfs_compare_utsname_list (const struct guestfs_utsname_list *, "
|
|
"const struct guestfs_utsname_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:517
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_utsname *guestfs_copy_utsname (const struct guestfs_utsname "
|
|
"*);\n"
|
|
" struct guestfs_utsname_list *guestfs_copy_utsname_list (const struct "
|
|
"guestfs_utsname_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:520
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_free_utsname (struct guestfs_utsname *);\n"
|
|
" void guestfs_free_utsname_list (struct guestfs_utsname_list *);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-structs.pod:523
|
|
msgid "guestfs_hivex_node"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:525
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_hivex_node {\n"
|
|
" int64_t hivex_node_h;\n"
|
|
" };\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:529
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_hivex_node_list {\n"
|
|
" uint32_t len; /* Number of elements in list. */\n"
|
|
" struct guestfs_hivex_node *val; /* Elements. */\n"
|
|
" };\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:534
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_compare_hivex_node (const struct guestfs_hivex_node *, const "
|
|
"struct guestfs_hivex_node *);\n"
|
|
" int guestfs_compare_hivex_node_list (const struct guestfs_hivex_node_list "
|
|
"*, const struct guestfs_hivex_node_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:537
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_hivex_node *guestfs_copy_hivex_node (const struct "
|
|
"guestfs_hivex_node *);\n"
|
|
" struct guestfs_hivex_node_list *guestfs_copy_hivex_node_list (const struct "
|
|
"guestfs_hivex_node_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:540
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_free_hivex_node (struct guestfs_hivex_node *);\n"
|
|
" void guestfs_free_hivex_node_list (struct guestfs_hivex_node_list *);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-structs.pod:543
|
|
msgid "guestfs_hivex_value"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:545
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_hivex_value {\n"
|
|
" int64_t hivex_value_h;\n"
|
|
" };\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:549
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_hivex_value_list {\n"
|
|
" uint32_t len; /* Number of elements in list. */\n"
|
|
" struct guestfs_hivex_value *val; /* Elements. */\n"
|
|
" };\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:554
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_compare_hivex_value (const struct guestfs_hivex_value *, const "
|
|
"struct guestfs_hivex_value *);\n"
|
|
" int guestfs_compare_hivex_value_list (const struct guestfs_hivex_value_list "
|
|
"*, const struct guestfs_hivex_value_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:557
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_hivex_value *guestfs_copy_hivex_value (const struct "
|
|
"guestfs_hivex_value *);\n"
|
|
" struct guestfs_hivex_value_list *guestfs_copy_hivex_value_list (const "
|
|
"struct guestfs_hivex_value_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:560
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_free_hivex_value (struct guestfs_hivex_value *);\n"
|
|
" void guestfs_free_hivex_value_list (struct guestfs_hivex_value_list *);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs-structs.pod:563
|
|
msgid "guestfs_internal_mountable"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:565
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_internal_mountable {\n"
|
|
" int32_t im_type;\n"
|
|
" char *im_device;\n"
|
|
" char *im_volume;\n"
|
|
" };\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:571
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_internal_mountable_list {\n"
|
|
" uint32_t len; /* Number of elements in list. */\n"
|
|
" struct guestfs_internal_mountable *val; /* Elements. */\n"
|
|
" };\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:576
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_compare_internal_mountable (const struct "
|
|
"guestfs_internal_mountable *, const struct guestfs_internal_mountable *);\n"
|
|
" int guestfs_compare_internal_mountable_list (const struct "
|
|
"guestfs_internal_mountable_list *, const struct "
|
|
"guestfs_internal_mountable_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:579
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_internal_mountable *guestfs_copy_internal_mountable (const "
|
|
"struct guestfs_internal_mountable *);\n"
|
|
" struct guestfs_internal_mountable_list "
|
|
"*guestfs_copy_internal_mountable_list (const struct "
|
|
"guestfs_internal_mountable_list *);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs-structs.pod:582
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_free_internal_mountable (struct guestfs_internal_mountable "
|
|
"*);\n"
|
|
" void guestfs_free_internal_mountable_list (struct "
|
|
"guestfs_internal_mountable_list *);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:5
|
|
msgid "guestfs - Library for accessing and modifying virtual machine images"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_h *g = guestfs_create ();\n"
|
|
" guestfs_add_drive (g, \"guest.img\");\n"
|
|
" guestfs_launch (g);\n"
|
|
" guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
|
|
" guestfs_touch (g, \"/hello\");\n"
|
|
" guestfs_umount (g, \"/\");\n"
|
|
" guestfs_shutdown (g);\n"
|
|
" guestfs_close (g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:26
|
|
msgid ""
|
|
"Libguestfs is a library for accessing and modifying disk images and virtual "
|
|
"machines. This manual page documents the C API."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:29
|
|
msgid ""
|
|
"If you are looking for an introduction to libguestfs, see the web site: "
|
|
"L<http://libguestfs.org/>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:32
|
|
msgid ""
|
|
"Each virt tool has its own man page (for a full list, go to L</SEE ALSO> at "
|
|
"the end of this file)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:35
|
|
msgid "The libguestfs FAQ contains many useful answers: L<guestfs-faq(1)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:37
|
|
msgid ""
|
|
"For examples of using the API from C, see L<guestfs-examples(3)>. For "
|
|
"examples in other languages, see L</USING LIBGUESTFS WITH OTHER PROGRAMMING "
|
|
"LANGUAGES> below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:41
|
|
msgid "For tips and recipes, see L<guestfs-recipes(1)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:43
|
|
msgid ""
|
|
"If you are having performance problems, read L<guestfs-performance(1)>. To "
|
|
"help test libguestfs, read L<libguestfs-test-tool(1)> and "
|
|
"L<guestfs-testing(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../src/guestfs.pod:47
|
|
msgid "API OVERVIEW"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:49
|
|
msgid ""
|
|
"This section provides a gentler overview of the libguestfs API. We also try "
|
|
"to group API calls together, where that may not be obvious from reading "
|
|
"about the individual calls in the main section of this manual."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:54
|
|
msgid "HANDLES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:56
|
|
msgid ""
|
|
"Before you can use libguestfs calls, you have to create a handle. Then you "
|
|
"must add at least one disk image to the handle, followed by launching the "
|
|
"handle, then performing whatever operations you want, and finally closing "
|
|
"the handle. By convention we use the single letter C<g> for the name of the "
|
|
"handle variable, although of course you can use any name you want."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:63
|
|
msgid "The general structure of all libguestfs-using programs looks like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:66
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_h *g = guestfs_create ();\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:68
|
|
#, no-wrap
|
|
msgid ""
|
|
" /* Call guestfs_add_drive additional times if there are\n"
|
|
" * multiple disk images.\n"
|
|
" */\n"
|
|
" guestfs_add_drive (g, \"guest.img\");\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:73
|
|
#, no-wrap
|
|
msgid ""
|
|
" /* Most manipulation calls won't work until you've launched\n"
|
|
" * the handle 'g'. You have to do this _after_ adding drives\n"
|
|
" * and _before_ other commands.\n"
|
|
" */\n"
|
|
" guestfs_launch (g);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:79
|
|
#, no-wrap
|
|
msgid ""
|
|
" /* Either: examine what partitions, LVs etc are available: */\n"
|
|
" char **partitions = guestfs_list_partitions (g);\n"
|
|
" char **logvols = guestfs_lvs (g);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:83
|
|
#, no-wrap
|
|
msgid ""
|
|
" /* Or: ask libguestfs to find filesystems for you: */\n"
|
|
" char **filesystems = guestfs_list_filesystems (g);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:86
|
|
#, no-wrap
|
|
msgid ""
|
|
" /* Or: use inspection (see INSPECTION section below). */\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:88
|
|
#, no-wrap
|
|
msgid ""
|
|
" /* To access a filesystem in the image, you must mount it. */\n"
|
|
" guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:91
|
|
#, no-wrap
|
|
msgid ""
|
|
" /* Now you can perform filesystem actions on the guest\n"
|
|
" * disk image.\n"
|
|
" */\n"
|
|
" guestfs_touch (g, \"/hello\");\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:96
|
|
#, no-wrap
|
|
msgid ""
|
|
" /* Synchronize the disk. This is the opposite of guestfs_launch. */\n"
|
|
" guestfs_shutdown (g);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:99
|
|
#, no-wrap
|
|
msgid ""
|
|
" /* Close and free the handle 'g'. */\n"
|
|
" guestfs_close (g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:102
|
|
msgid ""
|
|
"The code above doesn't include any error checking. In real code you should "
|
|
"check return values carefully for errors. In general all functions that "
|
|
"return integers return C<-1> on error, and all functions that return "
|
|
"pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
|
|
"how to handle errors, and consult the documentation for each function call "
|
|
"below to see precisely how they return error indications. See "
|
|
"L<guestfs-examples(3)> for fully worked examples."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:111
|
|
msgid "DISK IMAGES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:113
|
|
msgid ""
|
|
"The image filename (C<\"guest.img\"> in the example above) could be a disk "
|
|
"image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
|
|
"actual block device, or simply an empty file of zeroes that you have created "
|
|
"through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
|
|
"of these."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:119
|
|
msgid ""
|
|
"The call you should use in modern code for adding drives is "
|
|
"L</guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
|
|
"specifying that the format is raw, do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:123
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_add_drive_opts (g, filename,\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
|
|
" -1);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:127
|
|
msgid "You can add a disk read-only using:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:129
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_add_drive_opts (g, filename,\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
|
|
" -1);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:134
|
|
msgid ""
|
|
"or by calling the older function L</guestfs_add_drive_ro>. If you use the "
|
|
"readonly flag, libguestfs won't modify the file. (See also L</DISK IMAGE "
|
|
"FORMATS> below)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:138
|
|
msgid ""
|
|
"Be extremely cautious if the disk image is in use, eg. if it is being used "
|
|
"by a virtual machine. Adding it read-write will almost certainly cause disk "
|
|
"corruption, but adding it read-only is safe."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:142
|
|
msgid ""
|
|
"You should usually add at least one disk image, and you may add multiple "
|
|
"disk images. If adding multiple disk images, they usually have to be "
|
|
"\"related\", ie. from the same guest. In the API, the disk images are "
|
|
"usually referred to as C</dev/sda> (for the first one you added), "
|
|
"C</dev/sdb> (for the second one you added), etc."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:148
|
|
msgid ""
|
|
"Once L</guestfs_launch> has been called you cannot add any more images. You "
|
|
"can call L</guestfs_list_devices> to get a list of the device names, in the "
|
|
"order that you added them. See also L</BLOCK DEVICE NAMING> below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:153
|
|
msgid ""
|
|
"There are slightly different rules when hotplugging disks (in libguestfs "
|
|
"E<ge> 1.20). See L</HOTPLUGGING> below."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:156
|
|
msgid "MOUNTING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:158
|
|
msgid ""
|
|
"Before you can read or write files, create directories and so on in a disk "
|
|
"image that contains filesystems, you have to mount those filesystems using "
|
|
"L</guestfs_mount> or L</guestfs_mount_ro>. If you already know that a disk "
|
|
"image contains (for example) one partition with a filesystem on that "
|
|
"partition, then you can mount it directly:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:165
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:167
|
|
msgid ""
|
|
"where C</dev/sda1> means literally the first partition (C<1>) of the first "
|
|
"disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
|
|
"logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
|
|
"that these are libguestfs virtual devices, and are nothing to do with host "
|
|
"devices."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:173
|
|
msgid ""
|
|
"If you are given a disk image and you don't know what it contains then you "
|
|
"have to find out. Libguestfs can do that too: use "
|
|
"L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
|
|
"and LVs, and either try mounting each to see what is mountable, or else "
|
|
"examine them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
|
|
"filesystems, use L</guestfs_list_filesystems>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:181
|
|
msgid ""
|
|
"Libguestfs also has a set of APIs for inspection of unknown disk images (see "
|
|
"L</INSPECTION> below). You might also want to look at higher level programs "
|
|
"built on top of libguestfs, in particular L<virt-inspector(1)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:186
|
|
msgid ""
|
|
"To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
|
|
"several other variations of the C<guestfs_mount_*> call."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:189
|
|
msgid "FILESYSTEM ACCESS AND MODIFICATION"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:191
|
|
msgid ""
|
|
"The majority of the libguestfs API consists of fairly low-level calls for "
|
|
"accessing and modifying the files, directories, symlinks etc on mounted "
|
|
"filesystems. There are over a hundred such calls which you can find listed "
|
|
"in detail below in this man page, and we don't even pretend to cover them "
|
|
"all in this overview."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:197
|
|
msgid ""
|
|
"Specify filenames as full paths, starting with C<\"/\"> and including the "
|
|
"mount point."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:200
|
|
msgid ""
|
|
"For example, if you mounted a filesystem at C<\"/\"> and you want to read "
|
|
"the file called C<\"etc/passwd\"> then you could do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:203
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *data = guestfs_cat (g, \"/etc/passwd\");\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:205
|
|
msgid ""
|
|
"This would return C<data> as a newly allocated buffer containing the full "
|
|
"content of that file (with some conditions: see also L</DOWNLOADING> below), "
|
|
"or C<NULL> if there was an error."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:209
|
|
msgid ""
|
|
"As another example, to create a top-level directory on that filesystem "
|
|
"called C<\"var\"> you would do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:212
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_mkdir (g, \"/var\");\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:214
|
|
msgid "To create a symlink you could do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:216
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
|
|
" \"/etc/rc3.d/S30portmap\");\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:219
|
|
msgid ""
|
|
"Libguestfs will reject attempts to use relative paths and there is no "
|
|
"concept of a current working directory."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:222
|
|
msgid ""
|
|
"Libguestfs can return errors in many situations: for example if the "
|
|
"filesystem isn't writable, or if a file or directory that you requested "
|
|
"doesn't exist. If you are using the C API (documented here) you have to "
|
|
"check for those error conditions after each call. (Other language bindings "
|
|
"turn these errors into exceptions)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:228
|
|
msgid ""
|
|
"File writes are affected by the per-handle umask, set by calling "
|
|
"L</guestfs_umask> and defaulting to 022. See L</UMASK>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:231
|
|
msgid ""
|
|
"Since libguestfs 1.18, it is possible to mount the libguestfs filesystem on "
|
|
"a local directory, subject to some restrictions. See L</MOUNT LOCAL> below."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:235
|
|
msgid "PARTITIONING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:237
|
|
msgid ""
|
|
"Libguestfs contains API calls to read, create and modify partition tables on "
|
|
"disk images."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:240
|
|
msgid ""
|
|
"In the common case where you want to create a single partition covering the "
|
|
"whole disk, you should use the L</guestfs_part_disk> call:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:244
|
|
#, no-wrap
|
|
msgid ""
|
|
" const char *parttype = \"mbr\";\n"
|
|
" if (disk_is_larger_than_2TB)\n"
|
|
" parttype = \"gpt\";\n"
|
|
" guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:249
|
|
msgid ""
|
|
"Obviously this effectively wipes anything that was on that disk image "
|
|
"before."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:252
|
|
msgid "LVM2"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:254
|
|
msgid ""
|
|
"Libguestfs provides access to a large part of the LVM2 API, such as "
|
|
"L</guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense "
|
|
"unless you familiarize yourself with the concepts of physical volumes, "
|
|
"volume groups and logical volumes."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:259
|
|
msgid ""
|
|
"This author strongly recommends reading the LVM HOWTO, online at "
|
|
"L<http://tldp.org/HOWTO/LVM-HOWTO/>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:262
|
|
msgid "DOWNLOADING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:264
|
|
msgid ""
|
|
"Use L</guestfs_cat> to download small, text only files. This call cannot "
|
|
"handle files containing any ASCII NUL (C<\\0>) characters. However the API "
|
|
"is very simple to use."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:268
|
|
msgid ""
|
|
"L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
|
|
"bit data, since it returns a (pointer, size) pair."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:271
|
|
msgid ""
|
|
"L</guestfs_download> can be used to download any file, with no limits on "
|
|
"content or size."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:274
|
|
msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:277
|
|
msgid "UPLOADING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:279
|
|
msgid ""
|
|
"To write a small file with fixed content, use L</guestfs_write>. To create "
|
|
"a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
|
|
"L</guestfs_fallocate64> (with all disk blocks allocated). There are a "
|
|
"variety of other functions for creating test files, for example "
|
|
"L</guestfs_fill> and L</guestfs_fill_pattern>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:285
|
|
msgid ""
|
|
"To upload a single file, use L</guestfs_upload>. This call has no limits on "
|
|
"file content or size."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:288
|
|
msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:290
|
|
msgid ""
|
|
"However the fastest way to upload I<large numbers of arbitrary files> is to "
|
|
"turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
|
|
"L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>. If you add "
|
|
"the drive in a predictable way (eg. adding it last after all other drives) "
|
|
"then you can get the device name from L</guestfs_list_devices> and mount it "
|
|
"directly using L</guestfs_mount_ro>. Note that squashfs images are "
|
|
"sometimes non-portable between kernel versions, and they don't support "
|
|
"labels or UUIDs. If you want to pre-build an image or you need to mount it "
|
|
"using a label or UUID, use an ISO image instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:301
|
|
msgid "COPYING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:303
|
|
msgid ""
|
|
"There are various different commands for copying between files and devices "
|
|
"and in and out of the guest filesystem. These are summarised in the table "
|
|
"below."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:309
|
|
msgid "B<file> to B<file>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:311
|
|
msgid ""
|
|
"Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
|
|
"directories recursively."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:314
|
|
msgid "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:317
|
|
msgid "B<file> to B<device>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:319
|
|
msgid "B<device> to B<file>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:321
|
|
msgid "B<device> to B<device>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:323
|
|
msgid ""
|
|
"Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or "
|
|
"L</guestfs_copy_device_to_device>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:326
|
|
msgid "Example: duplicate the contents of an LV:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:328
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_copy_device_to_device (g,\n"
|
|
" \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
|
|
" /* -1 marks the end of the list of optional parameters */\n"
|
|
" -1);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:333
|
|
msgid ""
|
|
"The destination (C</dev/VG/Copy>) must be at least as large as the source "
|
|
"(C</dev/VG/Original>). To copy less than the whole source device, use the "
|
|
"optional C<size> parameter:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:337
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_copy_device_to_device (g,\n"
|
|
" \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
|
|
" GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
|
|
" -1);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:342
|
|
msgid "B<file on the host> to B<file or device>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:344
|
|
msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:346
|
|
msgid "B<file or device> to B<file on the host>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:348
|
|
msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:352
|
|
msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:354
|
|
msgid ""
|
|
"Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
|
|
"L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
|
|
"appears you can only upload and download to files. However many Un*x-like "
|
|
"hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
|
|
"C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
|
|
"stderr, and arbitrary file descriptor N."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:362
|
|
msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:365
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_download (g, filename, \"/dev/stdout\");\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:367
|
|
msgid "and you can write tar output to a file descriptor C<fd> by doing:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:369
|
|
#, no-wrap
|
|
msgid ""
|
|
" char devfd[64];\n"
|
|
" snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
|
|
" guestfs_tar_out (g, \"/\", devfd);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:373
|
|
msgid "LISTING FILES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:375
|
|
msgid ""
|
|
"L</guestfs_ll> is just designed for humans to read (mainly when using the "
|
|
"L<guestfish(1)>-equivalent command C<ll>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:378
|
|
msgid ""
|
|
"L</guestfs_ls> is a quick way to get a list of files in a directory from "
|
|
"programs, as a flat list of strings."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:381
|
|
msgid ""
|
|
"L</guestfs_readdir> is a programmatic way to get a list of files in a "
|
|
"directory, plus additional information about each one. It is more "
|
|
"equivalent to using the L<readdir(3)> call on a local filesystem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:385
|
|
msgid ""
|
|
"L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
|
|
"files."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:388
|
|
msgid "RUNNING COMMANDS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:390
|
|
msgid ""
|
|
"Although libguestfs is primarily an API for manipulating files inside guest "
|
|
"images, we also provide some limited facilities for running commands inside "
|
|
"guests."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:394
|
|
msgid "There are many limitations to this:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:400
|
|
msgid ""
|
|
"The kernel version that the command runs under will be different from what "
|
|
"it expects."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:405
|
|
msgid ""
|
|
"If the command needs to communicate with daemons, then most likely they "
|
|
"won't be running."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:410
|
|
msgid "The command will be running in limited memory."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:414
|
|
msgid ""
|
|
"The network may not be available unless you enable it (see "
|
|
"L</guestfs_set_network>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:419
|
|
msgid "Only supports Linux guests (not Windows, BSD, etc)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:423
|
|
msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:428
|
|
msgid ""
|
|
"For SELinux guests, you may need to enable SELinux and load policy first. "
|
|
"See L</SELINUX> in this manpage."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:433
|
|
msgid ""
|
|
"I<Security:> It is not safe to run commands from untrusted, possibly "
|
|
"malicious guests. These commands may attempt to exploit your program by "
|
|
"sending unexpected output. They could also try to exploit the Linux kernel "
|
|
"or qemu provided by the libguestfs appliance. They could use the network "
|
|
"provided by the libguestfs appliance to bypass ordinary network partitions "
|
|
"and firewalls. They could use the elevated privileges or different SELinux "
|
|
"context of your program to their advantage."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:442
|
|
msgid ""
|
|
"A secure alternative is to use libguestfs to install a \"firstboot\" script "
|
|
"(a script which runs when the guest next boots normally), and to have this "
|
|
"script run the commands you want in the normal context of the running guest, "
|
|
"network security and so on. For information about other security issues, "
|
|
"see L</SECURITY>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:450
|
|
msgid ""
|
|
"The two main API calls to run commands are L</guestfs_command> and "
|
|
"L</guestfs_sh> (there are also variations)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:453
|
|
msgid ""
|
|
"The difference is that L</guestfs_sh> runs commands using the shell, so any "
|
|
"shell globs, redirections, etc will work."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:456
|
|
msgid "CONFIGURATION FILES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:458
|
|
msgid ""
|
|
"To read and write configuration files in Linux guest filesystems, we "
|
|
"strongly recommend using Augeas. For example, Augeas understands how to "
|
|
"read and write, say, a Linux shadow password file or X.org configuration "
|
|
"file, and so avoids you having to write that code."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:463
|
|
msgid ""
|
|
"The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
|
|
"document Augeas itself here because there is excellent documentation on the "
|
|
"L<http://augeas.net/> website."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:467
|
|
msgid ""
|
|
"If you don't want to use Augeas (you fool!) then try calling "
|
|
"L</guestfs_read_lines> to get the file as a list of lines which you can "
|
|
"iterate over."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:471
|
|
msgid "SYSTEMD JOURNAL FILES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:473
|
|
msgid ""
|
|
"To read the systemd journal from a Linux guest, use the C<guestfs_journal_*> "
|
|
"APIs starting with L</guestfs_journal_open>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:476
|
|
msgid ""
|
|
"Consult the journal documentation here: L<sd-journal(3)>, "
|
|
"L<sd_journal_open(3)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:481
|
|
msgid ""
|
|
"We support SELinux guests. To ensure that labeling happens correctly in "
|
|
"SELinux guests, you need to enable SELinux and load the guest's policy:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:489
|
|
msgid "Before launching, do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:491
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_set_selinux (g, 1);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:495
|
|
msgid ""
|
|
"After mounting the guest's filesystem(s), load the policy. This is best "
|
|
"done by running the L<load_policy(8)> command in the guest itself:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:499
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:501
|
|
msgid ""
|
|
"(Older versions of C<load_policy> require you to specify the name of the "
|
|
"policy file)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:506
|
|
msgid ""
|
|
"Optionally, set the security context for the API. The correct security "
|
|
"context to use can only be known by inspecting the guest. As an example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:510
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:514
|
|
msgid "This will work for running commands and editing existing files."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:516
|
|
msgid ""
|
|
"When new files are created, you may need to label them explicitly, for "
|
|
"example by running the external command C<restorecon pathname>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:520
|
|
msgid "UMASK"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:522
|
|
msgid ""
|
|
"Certain calls are affected by the current file mode creation mask (the "
|
|
"\"umask\"). In particular ones which create files or directories, such as "
|
|
"L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
|
|
"either the default mode that the file is created with or modifies the mode "
|
|
"that you supply."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:528
|
|
msgid ""
|
|
"The default umask is C<022>, so files are created with modes such as C<0644> "
|
|
"and directories with C<0755>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:531
|
|
msgid ""
|
|
"There are two ways to avoid being affected by umask. Either set umask to 0 "
|
|
"(call C<guestfs_umask (g, 0)> early after launching). Or call "
|
|
"L</guestfs_chmod> after creating each file or directory."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:535
|
|
msgid "For more information about umask, see L<umask(2)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:537
|
|
msgid "LABELS AND UUIDS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:539
|
|
msgid ""
|
|
"Many filesystems, devices and logical volumes support either labels (short "
|
|
"strings like \"BOOT\" which might not be unique) and/or UUIDs (globally "
|
|
"unique IDs)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:543
|
|
msgid ""
|
|
"For filesystems, use L</guestfs_vfs_label> or L</guestfs_vfs_uuid> to read "
|
|
"the label or UUID. Some filesystems let you call L</guestfs_set_label> or "
|
|
"L</guestfs_set_uuid> to change the label or UUID."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:548
|
|
msgid ""
|
|
"You can locate a filesystem by its label or UUID using "
|
|
"L</guestfs_findfs_label> or L</guestfs_findfs_uuid>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:551
|
|
msgid ""
|
|
"For LVM2 (which supports only UUIDs), there is a rich set of APIs for "
|
|
"fetching UUIDs, fetching UUIDs of the contained objects, and changing "
|
|
"UUIDs. See: L</guestfs_lvuuid>, L</guestfs_vguuid>, L</guestfs_pvuuid>, "
|
|
"L</guestfs_vglvuuids>, L</guestfs_vgpvuuids>, L</guestfs_vgchange_uuid>, "
|
|
"L</guestfs_vgchange_uuid_all>, L</guestfs_pvchange_uuid>, "
|
|
"L</guestfs_pvchange_uuid_all>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:562
|
|
msgid ""
|
|
"Note when cloning a filesystem, device or whole guest, it is a good idea to "
|
|
"set new randomly generated UUIDs on the copy."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:567
|
|
msgid ""
|
|
"Libguestfs allows you to access Linux guests which have been encrypted using "
|
|
"whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
|
|
"standard. This includes nearly all whole disk encryption systems used by "
|
|
"modern Linux guests."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:573
|
|
msgid ""
|
|
"Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
|
|
"returns the string C<crypto_LUKS>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:576
|
|
msgid ""
|
|
"Then open these devices by calling L</guestfs_luks_open>. Obviously you "
|
|
"will require the passphrase!"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:579
|
|
msgid ""
|
|
"Opening a LUKS device creates a new device mapper device called "
|
|
"C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
|
|
"L</guestfs_luks_open>). Reads and writes to this mapper device are "
|
|
"decrypted from and encrypted to the underlying block device respectively."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:585
|
|
msgid ""
|
|
"LVM volume groups on the device can be made visible by calling "
|
|
"L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical "
|
|
"volume(s) can now be mounted in the usual way."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:589
|
|
msgid ""
|
|
"Use the reverse process to close a LUKS device. Unmount any logical volumes "
|
|
"on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
|
|
"[\"/dev/VG\"])>. Then close the mapper device by calling "
|
|
"L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
|
|
"underlying encrypted block device)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:596
|
|
msgid "MOUNT LOCAL"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:598
|
|
msgid ""
|
|
"In libguestfs E<ge> 1.18, it is possible to mount the libguestfs filesystem "
|
|
"on a local directory and access it using ordinary POSIX calls and programs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:602
|
|
msgid ""
|
|
"Availability of this is subject to a number of restrictions: it requires "
|
|
"FUSE (the Filesystem in USErspace), and libfuse must also have been "
|
|
"available when libguestfs was compiled. FUSE may require that a kernel "
|
|
"module is loaded, and it may be necessary to add the current user to a "
|
|
"special C<fuse> group. See the documentation for your distribution and "
|
|
"L<http://fuse.sf.net> for further information."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:609
|
|
msgid ""
|
|
"The call to mount the libguestfs filesystem on a local directory is "
|
|
"L</guestfs_mount_local> (q.v.) followed by L</guestfs_mount_local_run>. The "
|
|
"latter does not return until you unmount the filesystem. The reason is that "
|
|
"the call enters the FUSE main loop and processes kernel requests, turning "
|
|
"them into libguestfs calls. An alternative design would have been to create "
|
|
"a background thread to do this, but libguestfs doesn't require pthreads. "
|
|
"This way is also more flexible: for example the user can create another "
|
|
"thread for L</guestfs_mount_local_run>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:619
|
|
msgid ""
|
|
"L</guestfs_mount_local> needs a certain amount of time to set up the "
|
|
"mountpoint. The mountpoint is not ready to use until the call returns. At "
|
|
"this point, accesses to the filesystem will block until the main loop is "
|
|
"entered (ie. L</guestfs_mount_local_run>). So if you need to start another "
|
|
"process to access the filesystem, put the fork between "
|
|
"L</guestfs_mount_local> and L</guestfs_mount_local_run>."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:627
|
|
msgid "MOUNT LOCAL COMPATIBILITY"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:629
|
|
msgid ""
|
|
"Since local mounting was only added in libguestfs 1.18, and may not be "
|
|
"available even in these builds, you should consider writing code so that it "
|
|
"doesn't depend on this feature, and can fall back to using libguestfs file "
|
|
"system calls."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:634
|
|
msgid ""
|
|
"If libguestfs was compiled without support for L</guestfs_mount_local> then "
|
|
"calling it will return an error with errno set to C<ENOTSUP> (see "
|
|
"L</guestfs_last_errno>)."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:638
|
|
msgid "MOUNT LOCAL PERFORMANCE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:640
|
|
msgid ""
|
|
"Libguestfs on top of FUSE performs quite poorly. For best performance do "
|
|
"not use it. Use ordinary libguestfs filesystem calls, upload, download "
|
|
"etc. instead."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:644
|
|
msgid "HOTPLUGGING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:646
|
|
msgid ""
|
|
"In libguestfs E<ge> 1.20, you may add drives and remove after calling "
|
|
"L</guestfs_launch>. There are some restrictions, see below. This is called "
|
|
"I<hotplugging>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:650
|
|
msgid ""
|
|
"Only a subset of the backends support hotplugging (currently only the "
|
|
"libvirt backend has support). It also requires that you use libvirt E<ge> "
|
|
"0.10.3 and qemu E<ge> 1.2."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:654
|
|
msgid ""
|
|
"To hot-add a disk, simply call L</guestfs_add_drive_opts> after "
|
|
"L</guestfs_launch>. It is mandatory to specify the C<label> parameter so "
|
|
"that the newly added disk has a predictable name. For example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:658
|
|
#, no-wrap
|
|
msgid ""
|
|
" if (guestfs_launch (g) == -1)\n"
|
|
" error (\"launch failed\");\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:661
|
|
#, no-wrap
|
|
msgid ""
|
|
" if (guestfs_add_drive_opts (g, filename,\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_LABEL, \"newdisk\",\n"
|
|
" -1) == -1)\n"
|
|
" error (\"hot-add of disk failed\");\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:666
|
|
#, no-wrap
|
|
msgid ""
|
|
" if (guestfs_part_disk (\"/dev/disk/guestfs/newdisk\", \"mbr\") == -1)\n"
|
|
" error (\"partitioning of hot-added disk failed\");\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:669
|
|
msgid ""
|
|
"To hot-remove a disk, call L</guestfs_remove_drive>. You can call this "
|
|
"before or after L</guestfs_launch>. You can only remove disks that were "
|
|
"previously added with a label."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:673
|
|
msgid ""
|
|
"Backends that support hotplugging do not require that you add E<ge> 1 disk "
|
|
"before calling launch. When hotplugging is supported you don't need to add "
|
|
"any disks."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:677
|
|
msgid "REMOTE STORAGE"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:679
|
|
msgid "CEPH"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:681
|
|
msgid "Libguestfs can access Ceph (librbd/RBD) disks."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:683 ../src/guestfs.pod:705 ../src/guestfs.pod:727 ../src/guestfs.pod:768 ../src/guestfs.pod:830
|
|
msgid ""
|
|
"To do this, set the optional C<protocol> and C<server> parameters of "
|
|
"L</guestfs_add_drive_opts> like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:686
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **servers = { \"ceph1.example.org:3000\", /* ... */, NULL };\n"
|
|
" guestfs_add_drive_opts (g, \"pool/image\",\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_PROTOCOL, \"rbd\",\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_SERVER, servers,\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_USERNAME, \"rbduser\",\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_SECRET, "
|
|
"\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==\",\n"
|
|
" -1);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:695
|
|
msgid ""
|
|
"C<servers> (the C<server> parameter) is a list of one or more Ceph servers. "
|
|
"The server string is documented in L</guestfs_add_drive_opts>. The "
|
|
"C<username> and C<secret> parameters are also optional, and if not given, "
|
|
"then no authentication will be used."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:700
|
|
msgid "FTP, HTTP AND TFTP"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:702
|
|
msgid ""
|
|
"Libguestfs can access remote disks over FTP, FTPS, HTTP, HTTPS or TFTP "
|
|
"protocols."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:708
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **servers = { \"www.example.org\", NULL };\n"
|
|
" guestfs_add_drive_opts (g, \"/disk.img\",\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_PROTOCOL, \"http\",\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_SERVER, servers,\n"
|
|
" -1);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:715
|
|
msgid ""
|
|
"The C<protocol> can be one of C<\"ftp\">, C<\"ftps\">, C<\"http\">, "
|
|
"C<\"https\"> or C<\"tftp\">."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:718
|
|
msgid ""
|
|
"C<servers> (the C<server> parameter) is a list which must have a single "
|
|
"element. The single element is a string defining the web, FTP or TFTP "
|
|
"server. The format of this string is documented in "
|
|
"L</guestfs_add_drive_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:723
|
|
msgid "GLUSTER"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:725
|
|
msgid "Libguestfs can access Gluster disks."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:730
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **servers = { \"gluster.example.org:24007\", NULL };\n"
|
|
" guestfs_add_drive_opts (g, \"volname/image\",\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_PROTOCOL, \"gluster\",\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_SERVER, servers,\n"
|
|
" -1);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:737
|
|
msgid ""
|
|
"C<servers> (the C<server> parameter) is a list which must have a single "
|
|
"element. The single element is a string defining the Gluster server. The "
|
|
"format of this string is documented in L</guestfs_add_drive_opts>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:742
|
|
msgid ""
|
|
"Note that gluster usually requires the client process (ie. libguestfs) to "
|
|
"run as B<root> and will give unfathomable errors if it is not (eg. \"No data "
|
|
"available\")."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:746
|
|
msgid "ISCSI"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:748
|
|
msgid "Libguestfs can access iSCSI disks remotely."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:750
|
|
msgid "To do this, set the optional C<protocol> and C<server> parameters like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:753
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **server = { \"iscsi.example.org:3000\", NULL };\n"
|
|
" guestfs_add_drive_opts (g, \"target-iqn-name/lun\",\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_PROTOCOL, \"iscsi\",\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_SERVER, server,\n"
|
|
" -1);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:760
|
|
msgid ""
|
|
"The C<server> parameter is a list which must have a single element. The "
|
|
"single element is a string defining the iSCSI server. The format of this "
|
|
"string is documented in L</guestfs_add_drive_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:764
|
|
msgid "NETWORK BLOCK DEVICE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:766
|
|
msgid "Libguestfs can access Network Block Device (NBD) disks remotely."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:771
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **server = { \"nbd.example.org:3000\", NULL };\n"
|
|
" guestfs_add_drive_opts (g, \"\" /* export name - see below */,\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_PROTOCOL, \"nbd\",\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_SERVER, server,\n"
|
|
" -1);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:784
|
|
msgid ""
|
|
"C<server> is in fact a list of servers. For NBD you must always supply a "
|
|
"list with a single element. (Other remote protocols require zero or more "
|
|
"than one server, hence the requirement for this parameter to be a list)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:791
|
|
msgid ""
|
|
"The C<server> string is documented in L</guestfs_add_drive_opts>. To "
|
|
"connect to a local qemu-nbd instance over a Unix domain socket, use "
|
|
"C<\"unix:/path/to/socket\">."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:797
|
|
msgid ""
|
|
"The C<filename> parameter is the NBD export name. Use an empty string to "
|
|
"mean the default export. Many NBD servers, including qemu-nbd, do not "
|
|
"support export names."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:803
|
|
msgid ""
|
|
"If using qemu-nbd as your server, you should always specify the C<-t> "
|
|
"option. The reason is that libguestfs may open several connections to the "
|
|
"server."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:809
|
|
msgid ""
|
|
"The libvirt backend requires that you set the C<format> parameter of "
|
|
"L</guestfs_add_drive_opts> accurately when you use writable NBD disks."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:814
|
|
msgid ""
|
|
"The libvirt backend has a bug that stops Unix domain socket connections from "
|
|
"working: L<https://bugzilla.redhat.com/show_bug.cgi?id=922888>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:820
|
|
msgid ""
|
|
"The direct backend does not support readonly connections because of a bug in "
|
|
"qemu: L<https://bugs.launchpad.net/qemu/+bug/1155677>"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:826
|
|
msgid "SHEEPDOG"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:828
|
|
msgid "Libguestfs can access Sheepdog disks."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:833
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **servers = { /* optional servers ... */ NULL };\n"
|
|
" guestfs_add_drive_opts (g, \"volume\",\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_PROTOCOL, \"sheepdog\",\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_SERVER, servers,\n"
|
|
" -1);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:840
|
|
msgid ""
|
|
"The optional list of C<servers> may be zero or more server addresses "
|
|
"(C<\"hostname:port\">). The format of the server strings is documented in "
|
|
"L</guestfs_add_drive_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:844
|
|
msgid "SSH"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:846
|
|
msgid "Libguestfs can access disks over a Secure Shell (SSH) connection."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:848
|
|
msgid ""
|
|
"To do this, set the C<protocol> and C<server> and (optionally) C<username> "
|
|
"parameters of L</guestfs_add_drive_opts> like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:851
|
|
#, no-wrap
|
|
msgid ""
|
|
" char **server = { \"remote.example.com\", NULL };\n"
|
|
" guestfs_add_drive_opts (g, \"/path/to/disk.img\",\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_PROTOCOL, \"ssh\",\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_SERVER, server,\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_USERNAME, \"remoteuser\",\n"
|
|
" -1);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:859
|
|
msgid "The format of the server string is documented in L</guestfs_add_drive_opts>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:862
|
|
msgid "INSPECTION"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:864
|
|
msgid ""
|
|
"Libguestfs has APIs for inspecting an unknown disk image to find out if it "
|
|
"contains operating systems, an install CD or a live CD."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:867
|
|
msgid ""
|
|
"Add all disks belonging to the unknown virtual machine and call "
|
|
"L</guestfs_launch> in the usual way."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:870
|
|
msgid ""
|
|
"Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
|
|
"and certain heuristics, and returns a list of operating systems that were "
|
|
"found. An empty list means none were found. A single element is the root "
|
|
"filesystem of the operating system. For dual- or multi-boot guests, "
|
|
"multiple roots can be returned, each one corresponding to a separate "
|
|
"operating system. (Multi-boot virtual machines are extremely rare in the "
|
|
"world of virtualization, but since this scenario can happen, we have built "
|
|
"libguestfs to deal with it.)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:879
|
|
msgid ""
|
|
"For each root, you can then call various C<guestfs_inspect_get_*> functions "
|
|
"to get additional details about that operating system. For example, call "
|
|
"L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
|
|
"Windows and Linux-based operating systems respectively."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:885
|
|
msgid ""
|
|
"Un*x-like and Linux-based operating systems usually consist of several "
|
|
"filesystems which are mounted at boot time (for example, a separate boot "
|
|
"partition mounted on C</boot>). The inspection rules are able to detect how "
|
|
"filesystems correspond to mount points. Call "
|
|
"C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
|
|
"hash table like this example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:892
|
|
#, no-wrap
|
|
msgid ""
|
|
" /boot => /dev/sda1\n"
|
|
" / => /dev/vg_guest/lv_root\n"
|
|
" /usr => /dev/vg_guest/lv_usr\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:896
|
|
msgid ""
|
|
"The caller can then make calls to L</guestfs_mount> to mount the filesystems "
|
|
"as suggested."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:899
|
|
msgid ""
|
|
"Be careful to mount filesystems in the right order (eg. C</> before "
|
|
"C</usr>). Sorting the keys of the hash by length, shortest first, should "
|
|
"work."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:903
|
|
msgid ""
|
|
"Inspection currently only works for some common operating systems. "
|
|
"Contributors are welcome to send patches for other operating systems that we "
|
|
"currently cannot detect."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:907
|
|
msgid ""
|
|
"Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
|
|
"for more details. The L</guestfs_inspect_os> function just ignores any "
|
|
"encrypted devices."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:911
|
|
msgid ""
|
|
"A note on the implementation: The call L</guestfs_inspect_os> performs "
|
|
"inspection and caches the results in the guest handle. Subsequent calls to "
|
|
"C<guestfs_inspect_get_*> return this cached information, but I<do not> "
|
|
"re-read the disks. If you change the content of the guest disks, you can "
|
|
"redo inspection by calling L</guestfs_inspect_os> again. "
|
|
"(L</guestfs_inspect_list_applications2> works a little differently from the "
|
|
"other calls and does read the disks. See documentation for that function "
|
|
"for details)."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:920
|
|
msgid "INSPECTING INSTALL DISKS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:922
|
|
msgid ""
|
|
"Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
|
|
"CDs and more."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:925
|
|
msgid ""
|
|
"Call L</guestfs_inspect_get_format> to return the format of the operating "
|
|
"system, which currently can be C<installed> (a regular operating system) or "
|
|
"C<installer> (some sort of install disk)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:929
|
|
msgid ""
|
|
"Further information is available about the operating system that can be "
|
|
"installed using the regular inspection APIs like "
|
|
"L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
|
|
"etc."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:934
|
|
msgid ""
|
|
"Some additional information specific to installer disks is also available "
|
|
"from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
|
|
"L</guestfs_inspect_is_multipart> calls."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:939
|
|
msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:941
|
|
msgid ""
|
|
"Libguestfs can mount NTFS partitions. It does this using the "
|
|
"L<http://www.ntfs-3g.org/> driver."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:944
|
|
msgid "DRIVE LETTERS AND PATHS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:946
|
|
msgid ""
|
|
"DOS and Windows still use drive letters, and the filesystems are always "
|
|
"treated as case insensitive by Windows itself, and therefore you might find "
|
|
"a Windows configuration file referring to a path like "
|
|
"C<c:\\windows\\system32>. When the filesystem is mounted in libguestfs, "
|
|
"that directory might be referred to as C</WINDOWS/System32>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:952
|
|
msgid ""
|
|
"Drive letter mappings can be found using inspection (see L</INSPECTION> and "
|
|
"L</guestfs_inspect_get_drive_mappings>)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:955
|
|
msgid ""
|
|
"Dealing with separator characters (backslash vs forward slash) is outside "
|
|
"the scope of libguestfs, but usually a simple character replacement will "
|
|
"work."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:959
|
|
msgid ""
|
|
"To resolve the case insensitivity of paths, call "
|
|
"L</guestfs_case_sensitive_path>."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:962
|
|
msgid "LONG FILENAMES ON NTFS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:964
|
|
msgid ""
|
|
"NTFS supports filenames up to 255 characters long. \"Character\" means a 2 "
|
|
"byte UTF-16 codepoint which can encode the most common Unicode codepoints."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:968
|
|
msgid ""
|
|
"Most Linux filesystems support filenames up to 255 I<bytes>. This means you "
|
|
"may get an error:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:971
|
|
#, no-wrap
|
|
msgid ""
|
|
" File name too long\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:973
|
|
msgid ""
|
|
"when you copy a file from NTFS to a Linux filesystem if the name, when "
|
|
"reencoded as UTF-8, would exceed 255 bytes in length."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:976
|
|
msgid ""
|
|
"This will most often happen when using non-ASCII names that are longer than "
|
|
"~127 characters (eg. Greek, Cyrillic) or longer than ~85 characters (Asian "
|
|
"languages)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:980
|
|
msgid ""
|
|
"A workaround is not to try to store such long filenames on Linux native "
|
|
"filesystems. Since the L<tar(1)> format can store unlimited length "
|
|
"filenames, keep the files in a tarball."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:984
|
|
msgid "ACCESSING THE WINDOWS REGISTRY"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:986
|
|
msgid ""
|
|
"Libguestfs also provides some help for decoding Windows Registry \"hive\" "
|
|
"files, through a separate C library called L<hivex(3)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:989
|
|
msgid ""
|
|
"Before libguestfs 1.19.35 you had to download the hive file, operate on it "
|
|
"locally using hivex, and upload it again. Since this version, we have "
|
|
"included the major hivex APIs directly in the libguestfs API (see "
|
|
"L</guestfs_hivex_open>). This means that if you have opened a Windows "
|
|
"guest, you can read and write the registry directly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:995
|
|
msgid "See also L<virt-win-reg(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:997
|
|
msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:999
|
|
msgid ""
|
|
"Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
|
|
"provide something which looks like a Linux symlink. The way it tries to do "
|
|
"the rewriting is described here:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1003
|
|
msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1005
|
|
msgid ""
|
|
"The essential problem is that ntfs-3g simply does not have enough "
|
|
"information to do a correct job. NTFS links can contain drive letters and "
|
|
"references to external device GUIDs that ntfs-3g has no way of resolving. "
|
|
"It is almost certainly the case that libguestfs callers should ignore what "
|
|
"ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1012
|
|
msgid ""
|
|
"Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
|
|
"L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
|
|
"attribute, and read the raw reparse data from that (you can find the format "
|
|
"documented in various places around the web)."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:1017
|
|
msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1019
|
|
msgid ""
|
|
"There are other useful extended attributes that can be read from ntfs-3g "
|
|
"filesystems (using L</guestfs_getxattr>). See:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1022
|
|
msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:1024
|
|
msgid "WINDOWS HIBERNATION AND WINDOWS 8 FAST STARTUP"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1026
|
|
msgid ""
|
|
"Windows guests which have been hibernated (instead of fully shut down) "
|
|
"cannot be mounted. This is a limitation of ntfs-3g. You will see an error "
|
|
"like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:1030
|
|
#, no-wrap
|
|
msgid ""
|
|
" The disk contains an unclean file system (0, 0).\n"
|
|
" Metadata kept in Windows cache, refused to mount.\n"
|
|
" Failed to mount '/dev/sda2': Operation not permitted\n"
|
|
" The NTFS partition is in an unsafe state. Please resume\n"
|
|
" and shutdown Windows fully (no hibernation or fast\n"
|
|
" restarting), or mount the volume read-only with the\n"
|
|
" 'ro' mount option.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1038
|
|
msgid ""
|
|
"In Windows 8, the shutdown button does not shut down the guest at all. "
|
|
"Instead it usually hibernates the guest. This is known as \"fast startup\"."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1042
|
|
msgid "Some suggested workarounds are:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1048
|
|
msgid "Mount read-only (eg. L</guestfs_mount_ro>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1052
|
|
msgid ""
|
|
"On Windows 8, turn off fast startup. It is in the Control Panel → Power "
|
|
"Options → Choose what the power buttons do → Change settings that are "
|
|
"currently unavailable → Turn on fast startup."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1058
|
|
msgid ""
|
|
"On Windows 7 and earlier, shut the guest off properly instead of hibernating "
|
|
"it."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:1063
|
|
msgid "RESIZE2FS ERRORS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1065
|
|
msgid ""
|
|
"The L</guestfs_resize2fs>, L</guestfs_resize2fs_size> and "
|
|
"L</guestfs_resize2fs_M> calls are used to resize ext2/3/4 filesystems."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1068
|
|
msgid ""
|
|
"The underlying program (L<resize2fs(8)>) requires that the filesystem is "
|
|
"clean and recently fsck'd before you can resize it. Also, if the resize "
|
|
"operation fails for some reason, then you had to call fsck the filesystem "
|
|
"again to fix it."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1073
|
|
msgid ""
|
|
"In libguestfs C<lt> 1.17.14, you usually had to call L</guestfs_e2fsck_f> "
|
|
"before the resize. However, in C<ge> 1.17.14, L<e2fsck(8)> is called "
|
|
"automatically before the resize, so you no longer need to do this."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1078
|
|
msgid ""
|
|
"The L<resize2fs(8)> program can still fail, in which case it prints an error "
|
|
"message similar to:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:1081
|
|
#, no-wrap
|
|
msgid ""
|
|
" Please run 'e2fsck -fy <device>' to fix the filesystem\n"
|
|
" after the aborted resize operation.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1084
|
|
msgid ""
|
|
"You can do this by calling L</guestfs_e2fsck> with the C<forceall> option. "
|
|
"However in the context of disk images, it is usually better to avoid this "
|
|
"situation, eg. by rolling back to an earlier snapshot, or by copying and "
|
|
"resizing and on failure going back to the original."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:1089
|
|
msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1091
|
|
msgid ""
|
|
"Although we don't want to discourage you from using the C API, we will "
|
|
"mention here that the same API is also available in other languages."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1094
|
|
msgid ""
|
|
"The API is broadly identical in all supported languages. This means that "
|
|
"the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
|
|
"in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
|
|
"OCaml. In other words, a straightforward, predictable isomorphism between "
|
|
"each language."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1100
|
|
msgid ""
|
|
"Error messages are automatically transformed into exceptions if the language "
|
|
"supports it."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1103
|
|
msgid ""
|
|
"We don't try to \"object orientify\" parts of the API in OO languages, "
|
|
"although contributors are welcome to write higher level APIs above what we "
|
|
"provide in their favourite languages if they wish."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1109
|
|
msgid "B<C++>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1111
|
|
msgid ""
|
|
"You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
|
|
"identical to the C API. C++ classes and exceptions are not used."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1115
|
|
msgid "B<C#>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1117
|
|
msgid ""
|
|
"The C# bindings are highly experimental. Please read the warnings at the "
|
|
"top of C<csharp/Libguestfs.cs>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1120
|
|
msgid "B<Erlang>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1122
|
|
msgid "See L<guestfs-erlang(3)>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1124
|
|
msgid "B<GObject>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1126
|
|
msgid ""
|
|
"Experimental GObject bindings (with GObject Introspection support) are "
|
|
"available. See the C<gobject> directory in the source."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1129
|
|
msgid "B<Go>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1131
|
|
msgid "See <guestfs-golang(3)>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1133
|
|
msgid "B<Haskell>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1135
|
|
msgid "This language binding is working but incomplete:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1141
|
|
msgid ""
|
|
"Functions with optional arguments are not bound. Implementing optional "
|
|
"arguments in Haskell seems to be very complex."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1146
|
|
msgid "Events are not bound."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1150
|
|
msgid "Functions with the following return types are not bound:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1156
|
|
msgid "Any function returning a struct."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1160
|
|
msgid "Any function returning a list of structs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1164
|
|
msgid ""
|
|
"A few functions that return fixed length buffers (specifically ones declared "
|
|
"C<RBufferOut> in the generator)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1169
|
|
msgid ""
|
|
"A tiny number of obscure functions that return constant strings "
|
|
"(specifically ones declared C<RConstOptString> in the generator)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1176
|
|
msgid "B<Java>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1178
|
|
msgid ""
|
|
"Full documentation is contained in the Javadoc which is distributed with "
|
|
"libguestfs. For examples, see L<guestfs-java(3)>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1181
|
|
msgid "B<Lua>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1183
|
|
msgid "See L<guestfs-lua(3)>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1185
|
|
msgid "B<OCaml>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1187
|
|
msgid "See L<guestfs-ocaml(3)>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1189
|
|
msgid "B<Perl>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1191
|
|
msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1193
|
|
msgid "B<PHP>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1195
|
|
msgid ""
|
|
"For documentation see C<README-PHP> supplied with libguestfs sources or in "
|
|
"the php-libguestfs package for your distribution."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1198
|
|
msgid "The PHP binding only works correctly on 64 bit machines."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1200
|
|
msgid "B<Python>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1202
|
|
msgid "See L<guestfs-python(3)>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1204
|
|
msgid "B<Ruby>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1206
|
|
msgid "See L<guestfs-ruby(3)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1208
|
|
msgid "For JRuby, use the Java bindings."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1210
|
|
msgid "B<shell scripts>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1212
|
|
msgid "See L<guestfish(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:1216
|
|
msgid "LIBGUESTFS GOTCHAS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1218
|
|
msgid ""
|
|
"L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
|
|
"system [...] that works in the way it is documented but is counterintuitive "
|
|
"and almost invites mistakes.\""
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1222
|
|
msgid ""
|
|
"Since we developed libguestfs and the associated tools, there are several "
|
|
"things we would have designed differently, but are now stuck with for "
|
|
"backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
|
|
"release, you can expect these to change. Beware of them."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1230
|
|
msgid "Read-only should be the default."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1232
|
|
msgid ""
|
|
"In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
|
|
"specify I<--rw> if you want to make changes to the image."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1235
|
|
msgid "This would reduce the potential to corrupt live VM images."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1237
|
|
msgid ""
|
|
"Note that many filesystems change the disk when you just mount and unmount, "
|
|
"even if you didn't perform any writes. You need to use "
|
|
"L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1241
|
|
msgid "guestfish command line is hard to use."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1243
|
|
msgid ""
|
|
"C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
|
|
"examination). It tries to run a guestfish command C<disk.img> which doesn't "
|
|
"exist, so it fails. In earlier versions of guestfish the error message was "
|
|
"also unintuitive, but we have corrected this since. Like the Bourne shell, "
|
|
"we should have used C<guestfish -c command> to run commands."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1250
|
|
msgid "guestfish megabyte modifiers don't work right on all commands"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1252
|
|
msgid ""
|
|
"In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
|
|
"other modifiers). What guestfish actually does is to multiply the number "
|
|
"part by the modifier part and pass the result to the C API. However this "
|
|
"doesn't work for a few APIs which aren't expecting bytes, but are already "
|
|
"expecting some other unit (eg. megabytes)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1259
|
|
msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:1261
|
|
#, no-wrap
|
|
msgid ""
|
|
" lvcreate LV VG 100M\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1263
|
|
msgid ""
|
|
"does not do what you might expect. Instead because L</guestfs_lvcreate> is "
|
|
"already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
|
|
"megabytes * megabytes) logical volume. The error message you get from this "
|
|
"is also a little obscure."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1268
|
|
msgid ""
|
|
"This could be fixed in the generator by specially marking parameters and "
|
|
"return values which take bytes or other units."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1271
|
|
msgid "Ambiguity between devices and paths"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1273
|
|
msgid ""
|
|
"There is a subtle ambiguity in the API between a device name "
|
|
"(eg. C</dev/sdb2>) and a similar pathname. A file might just happen to be "
|
|
"called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1278
|
|
msgid ""
|
|
"In the current API we usually resolve this ambiguity by having two separate "
|
|
"calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
|
|
"Some API calls are ambiguous and (incorrectly) resolve the problem by "
|
|
"detecting if the path supplied begins with C</dev/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1284
|
|
msgid ""
|
|
"To avoid both the ambiguity and the need to duplicate some calls, we could "
|
|
"make paths/devices into structured names. One way to do this would be to "
|
|
"use a notation like grub (C<hd(0,0)>), although nobody really likes this "
|
|
"aspect of grub. Another way would be to use a structured type, equivalent "
|
|
"to this OCaml type:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:1290
|
|
#, no-wrap
|
|
msgid ""
|
|
" type path = Path of string | Device of int | Partition of int * int\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1292
|
|
msgid "which would allow you to pass arguments like:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:1294
|
|
#, no-wrap
|
|
msgid ""
|
|
" Path \"/foo/bar\"\n"
|
|
" Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
|
|
" Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
|
|
" Path \"/dev/sdb2\" (* not a device *)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1299
|
|
msgid ""
|
|
"As you can see there are still problems to resolve even with this "
|
|
"representation. Also consider how it might work in guestfish."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:1304
|
|
msgid "KEYS AND PASSPHRASES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1306
|
|
msgid ""
|
|
"Certain libguestfs calls take a parameter that contains sensitive key "
|
|
"material, passed in as a C string."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1309
|
|
msgid ""
|
|
"In the future we would hope to change the libguestfs implementation so that "
|
|
"keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
|
|
"swap. However this is I<not> done at the moment, because of the complexity "
|
|
"of such an implementation."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1314
|
|
msgid ""
|
|
"Therefore you should be aware that any key parameter you pass to libguestfs "
|
|
"might end up being written out to the swap partition. If this is a concern, "
|
|
"scrub the swap partition or don't use libguestfs on encrypted devices."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:1319
|
|
msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1321
|
|
msgid ""
|
|
"All high-level libguestfs actions are synchronous. If you want to use "
|
|
"libguestfs asynchronously then you must create a thread."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1324
|
|
msgid ""
|
|
"Only use the handle from a single thread. Either use the handle exclusively "
|
|
"from one thread, or provide your own mutex so that two threads cannot issue "
|
|
"calls on the same handle at the same time. Even apparently innocent "
|
|
"functions like L</guestfs_get_trace> are I<not> safe to be called from "
|
|
"multiple threads without a mutex."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1330
|
|
msgid ""
|
|
"See the graphical program guestfs-browser for one possible architecture for "
|
|
"multithreaded programs using libvirt and libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1335
|
|
msgid ""
|
|
"Libguestfs needs a supermin appliance, which it finds by looking along an "
|
|
"internal path."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1338
|
|
msgid ""
|
|
"By default it looks for these in the directory C<$libdir/guestfs> "
|
|
"(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1341
|
|
msgid ""
|
|
"Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
|
|
"to change the directories that libguestfs will search in. The value is a "
|
|
"colon-separated list of paths. The current directory is I<not> searched "
|
|
"unless the path contains an empty element or C<.>. For example "
|
|
"C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
|
|
"then C</usr/lib/guestfs>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:1348
|
|
msgid "QEMU WRAPPERS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1350
|
|
msgid ""
|
|
"If you want to compile your own qemu, run qemu from a non-standard location, "
|
|
"or pass extra arguments to qemu, then you can write a shell-script wrapper "
|
|
"around qemu."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1354
|
|
msgid ""
|
|
"There is one important rule to remember: you I<must C<exec qemu>> as the "
|
|
"last command in the shell script (so that qemu replaces the shell and "
|
|
"becomes the direct child of the libguestfs-using program). If you don't do "
|
|
"this, then the qemu process won't be cleaned up correctly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1359
|
|
msgid ""
|
|
"Here is an example of a wrapper, where I have built my own copy of qemu from "
|
|
"source:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:1362
|
|
#, no-wrap
|
|
msgid ""
|
|
" #!/bin/sh -\n"
|
|
" qemudir=/home/rjones/d/qemu\n"
|
|
" exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
|
|
"\"$@\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1366
|
|
msgid ""
|
|
"Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
|
|
"then use it by setting the LIBGUESTFS_HV environment variable. For example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:1370
|
|
#, no-wrap
|
|
msgid ""
|
|
" LIBGUESTFS_HV=/tmp/qemu.wrapper guestfish\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1372
|
|
msgid ""
|
|
"Note that libguestfs also calls qemu with the -help and -version options in "
|
|
"order to determine features."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1375
|
|
msgid ""
|
|
"Wrappers can also be used to edit the options passed to qemu. In the "
|
|
"following example, the C<-machine ...> option (C<-machine> and the following "
|
|
"argument) are removed from the command line and replaced with C<-machine "
|
|
"pc,accel=tcg>. The while loop iterates over the options until it finds the "
|
|
"right one to remove, putting the remaining options into the C<args> array."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:1384
|
|
#, no-wrap
|
|
msgid ""
|
|
" i=0\n"
|
|
" while [ $# -gt 0 ]; do\n"
|
|
" case \"$1\" in\n"
|
|
" -machine)\n"
|
|
" shift 2;;\n"
|
|
" *)\n"
|
|
" args[i]=\"$1\"\n"
|
|
" (( i++ ))\n"
|
|
" shift ;;\n"
|
|
" esac\n"
|
|
" done\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:1396
|
|
#, no-wrap
|
|
msgid ""
|
|
" exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1400
|
|
msgid "<!-- old anchor for the next section --> <a name=\"attach-method\"/>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:1405
|
|
msgid "BACKEND"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1407
|
|
msgid ""
|
|
"The backend (previously known as the \"attach method\") controls how "
|
|
"libguestfs creates and/or connects to the backend daemon, eg. by starting "
|
|
"qemu directly, or using libvirt to manage an appliance, running User-Mode "
|
|
"Linux, or connecting to an already running daemon."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1412
|
|
msgid ""
|
|
"You can set the backend by calling L</guestfs_set_backend>, or by setting "
|
|
"the environment variable C<LIBGUESTFS_BACKEND>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1415
|
|
msgid "Possible backends are described below:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1419
|
|
msgid "C<direct>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1421 ../src/guestfs.pod:4252
|
|
msgid "C<appliance>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1423
|
|
msgid "Run qemu directly to launch an appliance."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1425
|
|
msgid "C<direct> and C<appliance> are synonyms."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1427
|
|
msgid ""
|
|
"This is the ordinary method and normally the default, but see the note "
|
|
"below."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1430
|
|
msgid "C<libvirt>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1432
|
|
msgid "C<libvirt:null>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1434
|
|
msgid "C<libvirt:I<URI>>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1436
|
|
msgid "Use libvirt to launch and manage the appliance."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1438
|
|
msgid ""
|
|
"C<libvirt> causes libguestfs to choose a suitable URI for creating session "
|
|
"guests. If using the libvirt backend, you almost always should use this."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1442
|
|
msgid ""
|
|
"C<libvirt:null> causes libguestfs to use the C<NULL> connection URI, which "
|
|
"causes libvirt to try to guess what the user meant. You probably don't want "
|
|
"to use this."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1446
|
|
msgid ""
|
|
"C<libvirt:I<URI>> uses I<URI> as the libvirt connection URI (see "
|
|
"L<http://libvirt.org/uri.html>). The typical libvirt backend with a URI "
|
|
"would be C<libvirt:qemu:///session>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1450
|
|
msgid ""
|
|
"The libvirt backend supports more features, including hotplugging (see "
|
|
"L</HOTPLUGGING>) and sVirt."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1453
|
|
msgid "C<uml>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1455
|
|
msgid ""
|
|
"Run the User-Mode Linux kernel. The location of the kernel is set using "
|
|
"C<$LIBGUESTFS_HV> or using the L</guestfs_set_qemu> API (note that qemu is "
|
|
"not involved, we just reuse the same variable in the handle for "
|
|
"convenience)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1460
|
|
msgid ""
|
|
"User-Mode Linux can be much faster, simpler and more lightweight than using "
|
|
"a full-blown virtual machine, but it also has some shortcomings. See "
|
|
"L</USER-MODE LINUX BACKEND> below."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1464
|
|
msgid "C<unix:I<path>>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1466
|
|
msgid "Connect to the Unix domain socket I<path>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1468
|
|
msgid ""
|
|
"This method lets you connect to an existing daemon or (using virtio-serial) "
|
|
"to a live guest. For more information, see L</ATTACHING TO RUNNING "
|
|
"DAEMONS>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1474
|
|
msgid ""
|
|
"C<direct> is usually the default backend. However since libguestfs E<ge> "
|
|
"1.19.24, libguestfs can be built with a different default by doing:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:1478
|
|
#, no-wrap
|
|
msgid ""
|
|
" ./configure --with-default-backend=...\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1480
|
|
msgid "To find out if libguestfs was compiled with a different default backend, do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:1483 ../test-tool/libguestfs-test-tool.pod:97 ../test-tool/libguestfs-test-tool.pod:118 ../test-tool/libguestfs-test-tool.pod:141
|
|
#, no-wrap
|
|
msgid ""
|
|
" unset LIBGUESTFS_BACKEND\n"
|
|
" guestfish get-backend\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:1486
|
|
msgid "BACKEND SETTINGS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1488
|
|
msgid ""
|
|
"Each backend can be configured by passing a list of strings. You can either "
|
|
"call L</guestfs_set_backend_settings> with a list of strings, or set the "
|
|
"C<LIBGUESTFS_BACKEND_SETTINGS> environment variable to a colon-separated "
|
|
"list of strings (before creating the handle)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1493
|
|
msgid "Currently the only backend setting is:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:1495
|
|
#, no-wrap
|
|
msgid ""
|
|
" export LIBGUESTFS_BACKEND_SETTINGS=force_tcg\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1497
|
|
msgid ""
|
|
"which will force the direct and libvirt backends to use TCG (software "
|
|
"emulation) instead of KVM (hardware accelerated virtualization)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:1500
|
|
msgid "ATTACHING TO RUNNING DAEMONS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1502
|
|
msgid ""
|
|
"I<Note (1):> This is B<highly experimental> and has a tendency to eat "
|
|
"babies. Use with caution."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1505
|
|
msgid ""
|
|
"I<Note (2):> This section explains how to attach to a running daemon from a "
|
|
"low level perspective. For most users, simply using virt tools such as "
|
|
"L<guestfish(1)> with the I<--live> option will \"just work\"."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:1509
|
|
msgid "Using guestfs_set_backend"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1511
|
|
msgid ""
|
|
"By calling L</guestfs_set_backend> you can change how the library connects "
|
|
"to the C<guestfsd> daemon in L</guestfs_launch> (read L</ARCHITECTURE> for "
|
|
"some background)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1515
|
|
msgid ""
|
|
"The normal backend is C<direct>, where a small appliance is created "
|
|
"containing the daemon, and then the library connects to this. C<libvirt> or "
|
|
"C<libvirt:I<URI>> are alternatives that use libvirt to start the appliance."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1520
|
|
msgid ""
|
|
"Setting the backend to C<unix:I<path>> (where I<path> is the path of a Unix "
|
|
"domain socket) causes L</guestfs_launch> to connect to an existing daemon "
|
|
"over the Unix domain socket."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1524
|
|
msgid ""
|
|
"The normal use for this is to connect to a running virtual machine that "
|
|
"contains a C<guestfsd> daemon, and send commands so you can read and write "
|
|
"files inside the live virtual machine."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:1528
|
|
msgid "Using guestfs_add_domain with live flag"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1530
|
|
msgid ""
|
|
"L</guestfs_add_domain> provides some help for getting the correct backend. "
|
|
"If you pass the C<live> option to this function, then (if the virtual "
|
|
"machine is running) it will examine the libvirt XML looking for a "
|
|
"virtio-serial channel to connect to:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:1535
|
|
#, no-wrap
|
|
msgid ""
|
|
" <domain>\n"
|
|
" ...\n"
|
|
" <devices>\n"
|
|
" ...\n"
|
|
" <channel type='unix'>\n"
|
|
" <source mode='bind' path='/path/to/socket'/>\n"
|
|
" <target type='virtio' name='org.libguestfs.channel.0'/>\n"
|
|
" </channel>\n"
|
|
" ...\n"
|
|
" </devices>\n"
|
|
" </domain>\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1547
|
|
msgid ""
|
|
"L</guestfs_add_domain> extracts C</path/to/socket> and sets the backend to "
|
|
"C<unix:/path/to/socket>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1550
|
|
msgid ""
|
|
"Some of the libguestfs tools (including guestfish) support a I<--live> "
|
|
"option which is passed through to L</guestfs_add_domain> thus allowing you "
|
|
"to attach to and modify live virtual machines."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1554
|
|
msgid ""
|
|
"The virtual machine needs to have been set up beforehand so that it has the "
|
|
"virtio-serial channel and so that guestfsd is running inside it."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:1558
|
|
msgid "USER-MODE LINUX BACKEND"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1560
|
|
msgid ""
|
|
"Setting the following environment variables (or the equivalent in the API) "
|
|
"selects the User-Mode Linux backend:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:1563
|
|
#, no-wrap
|
|
msgid ""
|
|
" export LIBGUESTFS_BACKEND=uml\n"
|
|
" export LIBGUESTFS_HV=/path/to/vmlinux\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1566
|
|
msgid ""
|
|
"C<vmlinux> (or it may be called C<linux>) is the Linux binary, compiled to "
|
|
"run as a userspace process. Note that we reuse the qemu variable in the "
|
|
"handle for convenience; qemu is not involved."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1570
|
|
msgid ""
|
|
"User-Mode Linux can be faster and more lightweight than running a full-blown "
|
|
"virtual machine as the backend (especially if you are already running "
|
|
"libguestfs in a virtual machine or cloud instance), but it also has some "
|
|
"shortcomings compared to the usual qemu/KVM-based backend."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:1576
|
|
msgid "BUILDING USER-MODE LINUX FROM SOURCE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1578
|
|
msgid "Your Linux distro may provide UML in which case you can ignore this section."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1581
|
|
msgid ""
|
|
"These instructions are adapted from: "
|
|
"L<http://user-mode-linux.sourceforge.net/source.html>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1586
|
|
msgid "1. Check out Linux sources"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1588
|
|
msgid "Clone the Linux git repository or download the Linux source tarball."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1590
|
|
msgid "2. Configure the kernel"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1592
|
|
msgid "B<Note:> All 'make' commands must have C<ARCH=um> added."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:1594
|
|
#, no-wrap
|
|
msgid ""
|
|
" make menuconfig ARCH=um\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1596
|
|
msgid "Make sure any filesystem drivers that you need are compiled into the kernel."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1599
|
|
msgid ""
|
|
"B<Currently, it needs a large amount of extra work to get modules working>. "
|
|
"It's recommended that you disable module support in the kernel "
|
|
"configuration, which will cause everything to be compiled into the image."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1604
|
|
msgid "3. Build the kernel"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:1606
|
|
#, no-wrap
|
|
msgid ""
|
|
" make ARCH=um\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1608
|
|
msgid ""
|
|
"This will leave a file called C<linux> or C<vmlinux> in the top-level "
|
|
"directory. This is the UML kernel. You should set C<LIBGUESTFS_HV> to "
|
|
"point to this file."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:1614
|
|
msgid "USER-MODE LINUX DIFFERENCES FROM KVM"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1618
|
|
msgid "UML only supports raw-format images"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1620
|
|
msgid "Only plain raw-format images will work. No qcow2, no backing files."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1622
|
|
msgid "UML does not support any remote drives"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1624
|
|
msgid "No NBD, etc."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1626
|
|
msgid "UML only works on ix86 and x86-64"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1628
|
|
msgid "UML is experimental"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1630
|
|
msgid ""
|
|
"In particular, support for UML in libguestfs depends on support for UML in "
|
|
"the upstream kernel. If UML was ever removed from the upstream Linux "
|
|
"kernel, then we might remove it from libguestfs too."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:1636
|
|
msgid "ABI GUARANTEE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1638
|
|
msgid ""
|
|
"We guarantee the libguestfs ABI (binary interface), for public, high-level "
|
|
"actions as outlined in this section. Although we will deprecate some "
|
|
"actions, for example if they get replaced by newer calls, we will keep the "
|
|
"old actions forever. This allows you the developer to program in confidence "
|
|
"against the libguestfs API."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:1644
|
|
msgid "BLOCK DEVICE NAMING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1646
|
|
msgid ""
|
|
"In the kernel there is now quite a profusion of schemata for naming block "
|
|
"devices (in this context, by I<block device> I mean a physical or virtual "
|
|
"hard drive). The original Linux IDE driver used names starting with "
|
|
"C</dev/hd*>. SCSI devices have historically used a different naming scheme, "
|
|
"C</dev/sd*>. When the Linux kernel I<libata> driver became a popular "
|
|
"replacement for the old IDE driver (particularly for SATA devices) those "
|
|
"devices also used the C</dev/sd*> scheme. Additionally we now have virtual "
|
|
"machines with paravirtualized drivers. This has created several different "
|
|
"naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
|
|
"Xen PV disks."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1658
|
|
msgid ""
|
|
"As discussed above, libguestfs uses a qemu appliance running an embedded "
|
|
"Linux kernel to access block devices. We can run a variety of appliances "
|
|
"based on a variety of Linux kernels."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1662
|
|
msgid ""
|
|
"This causes a problem for libguestfs because many API calls use device or "
|
|
"partition names. Working scripts and the recipe (example) scripts that we "
|
|
"make available over the internet could fail if the naming scheme changes."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1667
|
|
msgid ""
|
|
"Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
|
|
"Internally C</dev/sd*> names are translated, if necessary, to other names as "
|
|
"required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
|
|
"device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1673
|
|
msgid ""
|
|
"Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
|
|
"L</guestfs_list_partitions> and similar calls return the true names of the "
|
|
"devices and partitions as known to the appliance, but see "
|
|
"L</guestfs_canonical_device_name>."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:1678
|
|
msgid "DISK LABELS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1680
|
|
msgid ""
|
|
"In libguestfs E<ge> 1.20, you can give a label to a disk when you add it, "
|
|
"using the optional C<label> parameter to L</guestfs_add_drive_opts>. (Note "
|
|
"that disk labels are different from and not related to filesystem labels)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1685
|
|
msgid ""
|
|
"Not all versions of libguestfs support setting a disk label, and when it is "
|
|
"supported, it is limited to 20 ASCII characters C<[a-zA-Z]>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1688
|
|
msgid ""
|
|
"When you add a disk with a label, it can either be addressed using "
|
|
"C</dev/sd*>, or using C</dev/disk/guestfs/I<label>>. Partitions on the disk "
|
|
"can be addressed using C</dev/disk/guestfs/I<label>I<partnum>>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1693
|
|
msgid ""
|
|
"Listing devices (L</guestfs_list_devices>) and partitions "
|
|
"(L</guestfs_list_partitions>) returns the raw block device name. However "
|
|
"you can use L</guestfs_list_disk_labels> to map disk labels to raw block "
|
|
"device and partition names."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:1698
|
|
msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1700
|
|
msgid ""
|
|
"Usually this translation is transparent. However in some (very rare) cases "
|
|
"you may need to know the exact algorithm. Such cases include where you use "
|
|
"L</guestfs_config> to add a mixture of virtio and IDE devices to the "
|
|
"qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
|
|
"devices."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1706
|
|
msgid ""
|
|
"The algorithm is applied only to I<parameters> which are known to be either "
|
|
"device or partition names. Return values from functions such as "
|
|
"L</guestfs_list_devices> are never changed."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1714
|
|
msgid "Is the string a parameter which is a device or partition name?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1718
|
|
msgid "Does the string begin with C</dev/sd>?"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1722
|
|
msgid ""
|
|
"Does the named device exist? If so, we use that device. However if I<not> "
|
|
"then we continue with this algorithm."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1727
|
|
msgid "Replace initial C</dev/sd> string with C</dev/hd>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1729
|
|
msgid "For example, change C</dev/sda2> to C</dev/hda2>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1731
|
|
msgid "If that named device exists, use it. If not, continue."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1735
|
|
msgid "Replace initial C</dev/sd> string with C</dev/vd>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1737
|
|
msgid "If that named device exists, use it. If not, return an error."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:1741
|
|
msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1743
|
|
msgid ""
|
|
"Although the standard naming scheme and automatic translation is useful for "
|
|
"simple programs and guestfish scripts, for larger programs it is best not to "
|
|
"rely on this mechanism."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1747
|
|
msgid ""
|
|
"Where possible for maximum future portability programs using libguestfs "
|
|
"should use these future-proof techniques:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1754
|
|
msgid ""
|
|
"Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
|
|
"device names, and then use those names directly."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1757
|
|
msgid "Since those device names exist by definition, they will never be translated."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1762
|
|
msgid ""
|
|
"Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
|
|
"filesystem labels."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:1767
|
|
msgid "NULL DISKS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1769
|
|
msgid ""
|
|
"When adding a disk using, eg., L</guestfs_add_drive>, you can set the "
|
|
"filename to C<\"/dev/null\">. This string is treated specially by "
|
|
"libguestfs, causing it to add a \"null disk\"."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1773
|
|
msgid "A null disk has the following properties:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1779
|
|
msgid ""
|
|
"A null disk will appear as a normal device, eg. in calls to "
|
|
"L</guestfs_list_devices>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1784
|
|
msgid "You may add C<\"/dev/null\"> multiple times."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1788
|
|
msgid ""
|
|
"You should not try to access a null disk in any way. For example, you "
|
|
"shouldn't try to read it or mount it."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1793
|
|
msgid "Null disks are used for three main purposes:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1799
|
|
msgid "Performance testing of libguestfs (see L<guestfs-performance(1)>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1803
|
|
msgid "The internal test suite."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1807
|
|
msgid ""
|
|
"If you want to use libguestfs APIs that don't refer to disks, since "
|
|
"libguestfs requires that at least one disk is added, you should add a null "
|
|
"disk."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1811
|
|
msgid "For example, to test if a feature is available, use code like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:1813
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_h *g;\n"
|
|
" char **groups = [ \"btrfs\", NULL ];\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:1816
|
|
#, no-wrap
|
|
msgid ""
|
|
" g = guestfs_create ();\n"
|
|
" guestfs_add_drive (g, \"/dev/null\");\n"
|
|
" guestfs_launch (g);\n"
|
|
" if (guestfs_available (g, groups) == 0) {\n"
|
|
" // group(s) are available\n"
|
|
" } else {\n"
|
|
" // group(s) are not available\n"
|
|
" }\n"
|
|
" guestfs_close (g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:1828
|
|
msgid "DISK IMAGE FORMATS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1830
|
|
msgid ""
|
|
"Virtual disks come in a variety of formats. Some common formats are listed "
|
|
"below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1833
|
|
msgid ""
|
|
"Note that libguestfs itself is not responsible for handling the disk format: "
|
|
"this is done using L<qemu(1)>. If support for a particular format is "
|
|
"missing or broken, this has to be fixed in qemu."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:1837
|
|
msgid "COMMON VIRTUAL DISK IMAGE FORMATS"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1841
|
|
msgid "I<raw>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1843
|
|
msgid ""
|
|
"Raw format is simply a dump of the sequential bytes of the virtual hard "
|
|
"disk. There is no header, container, compression or processing of any sort."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1847
|
|
msgid ""
|
|
"Since raw format requires no translation to read or write, it is both fast "
|
|
"and very well supported by qemu and all other hypervisors. You can consider "
|
|
"it to be a universal format that any hypervisor can access."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1852
|
|
msgid ""
|
|
"Raw format files are not compressed and so take up the full space of the "
|
|
"original disk image even when they are empty. A variation (on Linux/Unix at "
|
|
"least) is to not store ranges of all-zero bytes by storing the file as a "
|
|
"sparse file. This \"variant format\" is sometimes called I<raw sparse>. "
|
|
"Many utilities, including L<virt-sparsify(1)>, can make raw disk images "
|
|
"sparse."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1859
|
|
msgid "I<qcow2>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1861
|
|
msgid ""
|
|
"Qcow2 is the native disk image format used by qemu. Internally it uses a "
|
|
"two-level directory structure so that only blocks containing data are stored "
|
|
"in the file. It also has many other features such as compression, snapshots "
|
|
"and backing files."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1866
|
|
msgid ""
|
|
"There are at least two distinct variants of this format, although qemu (and "
|
|
"hence libguestfs) handles both transparently to the user."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1869
|
|
msgid "I<vmdk>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1871
|
|
msgid ""
|
|
"VMDK is VMware's native disk image format. There are many variations. "
|
|
"Modern qemu (hence libguestfs) supports most variations, but you should be "
|
|
"aware that older versions of qemu had some very bad data-corrupting bugs in "
|
|
"this area."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1876
|
|
msgid ""
|
|
"Note that VMware ESX exposes files with the name C<guest-flat.vmdk>. These "
|
|
"are not VMDK. They are raw format files which happen to have a C<.vmdk> "
|
|
"extension."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1880
|
|
msgid "I<vdi>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1882
|
|
msgid ""
|
|
"VDI is VirtualBox's native disk image format. Qemu (hence libguestfs) has "
|
|
"generally good support for this."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1885
|
|
msgid "I<vpc>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1887
|
|
msgid "I<vhd>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1889
|
|
msgid ""
|
|
"VPC (old) and VHD (modern) are the native disk image format of Microsoft "
|
|
"(and previously, Connectix) Virtual PC and Hyper-V."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:1892
|
|
msgid "Obsolete formats"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1894
|
|
msgid ""
|
|
"The following formats are obsolete and should not be used: I<qcow> (aka "
|
|
"I<qcow1>), I<cow>, I<bochs>."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:1899
|
|
msgid "DETECTING THE FORMAT OF A DISK IMAGE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1901
|
|
msgid ""
|
|
"Firstly note there is a security issue with auto-detecting the format of a "
|
|
"disk image. It may or may not apply in your use case. Read "
|
|
"L</CVE-2010-3851> below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1905
|
|
msgid ""
|
|
"Libguestfs offers an API to get the format of a disk image "
|
|
"(L</guestfs_disk_format>, and it is safest to use this."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1908
|
|
msgid ""
|
|
"I<Don't> be tempted to try parsing the text / human-readable output of "
|
|
"C<qemu-img> since it cannot be parsed reliably and securely. Also do not "
|
|
"use the C<file> command since the output of that changes over time."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1915
|
|
msgid ""
|
|
"This section discusses security implications of using libguestfs, "
|
|
"particularly with untrusted or malicious guests or disk images."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:1918
|
|
msgid "SECURITY OF MOUNTING FILESYSTEMS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1920
|
|
msgid ""
|
|
"You should never mount an untrusted guest filesystem directly on your host "
|
|
"kernel (eg. using loopback or kpartx)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1923
|
|
msgid ""
|
|
"When you mount a filesystem, mistakes in the kernel filesystem (VFS) can be "
|
|
"escalated into exploits by attackers creating a malicious filesystem. These "
|
|
"exploits are very severe for two reasons. Firstly there are very many "
|
|
"filesystem drivers in the kernel, and many of them are infrequently used and "
|
|
"not much developer attention has been paid to the code. Linux userspace "
|
|
"helps potential crackers by detecting the filesystem type and automatically "
|
|
"choosing the right VFS driver, even if that filesystem type is unexpected. "
|
|
"Secondly, a kernel-level exploit is like a local root exploit (worse in some "
|
|
"ways), giving immediate and total access to the system right down to the "
|
|
"hardware level."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1935
|
|
msgid ""
|
|
"These exploits can be present in the kernel for a very long time "
|
|
"(L<https://lwn.net/Articles/538898/>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1938
|
|
msgid "Libguestfs provides a layered approach to protecting you from exploits:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:1941
|
|
#, no-wrap
|
|
msgid ""
|
|
" untrusted filesystem\n"
|
|
" --------------------------------------\n"
|
|
" appliance kernel\n"
|
|
" --------------------------------------\n"
|
|
" qemu process running as non-root\n"
|
|
" --------------------------------------\n"
|
|
" sVirt [if using libvirt + SELinux]\n"
|
|
" --------------------------------------\n"
|
|
" host kernel\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1951
|
|
msgid ""
|
|
"We run a Linux kernel inside a qemu virtual machine, usually running as a "
|
|
"non-root user. The attacker would need to write a filesystem which first "
|
|
"exploited the kernel, and then exploited either qemu virtualization (eg. a "
|
|
"faulty qemu driver) or the libguestfs protocol, and finally to be as serious "
|
|
"as the host kernel exploit it would need to escalate its privileges to "
|
|
"root. Additionally if you use the libvirt back end and SELinux, sVirt is "
|
|
"used to confine the qemu process. This multi-step escalation, performed by "
|
|
"a static piece of data, is thought to be extremely hard to do, although we "
|
|
"never say 'never' about security issues."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1962
|
|
msgid ""
|
|
"Callers can also reduce the attack surface by forcing the filesystem type "
|
|
"when mounting (use L</guestfs_mount_vfs>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:1965
|
|
msgid "GENERAL SECURITY CONSIDERATIONS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1967
|
|
msgid ""
|
|
"Be careful with any files or data that you download from a guest (by "
|
|
"\"download\" we mean not just the L</guestfs_download> command but any "
|
|
"command that reads files, filenames, directories or anything else from a "
|
|
"disk image). An attacker could manipulate the data to fool your program "
|
|
"into doing the wrong thing. Consider cases such as:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1977
|
|
msgid "the data (file etc) not being present"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1981
|
|
msgid "being present but empty"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1985
|
|
msgid "being much larger than normal"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1989
|
|
msgid "containing arbitrary 8 bit data"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1993
|
|
msgid "being in an unexpected character encoding"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:1997
|
|
msgid "containing homoglyphs."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2001
|
|
msgid "PROTOCOL SECURITY"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2003
|
|
msgid ""
|
|
"The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
|
|
"defined upper message size. However a program that uses libguestfs must "
|
|
"also take care - for example you can write a program that downloads a binary "
|
|
"from a disk image and executes it locally, and no amount of protocol "
|
|
"security will save you from the consequences."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2009
|
|
msgid "INSPECTION SECURITY"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2011
|
|
msgid ""
|
|
"Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
|
|
"directly from the guest, and these could contain any 8 bit data. Callers "
|
|
"should be careful to escape these before printing them to a structured file "
|
|
"(for example, use HTML escaping if creating a web page)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2017
|
|
msgid ""
|
|
"Guest configuration may be altered in unusual ways by the administrator of "
|
|
"the virtual machine, and may not reflect reality (particularly for untrusted "
|
|
"or actively malicious guests). For example we parse the hostname from "
|
|
"configuration files like C</etc/sysconfig/network> that we find in the "
|
|
"guest, but the guest administrator can easily manipulate these files to "
|
|
"provide the wrong hostname."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2025
|
|
msgid ""
|
|
"The inspection API parses guest configuration using two external libraries: "
|
|
"Augeas (Linux configuration) and hivex (Windows Registry). Both are "
|
|
"designed to be robust in the face of malicious data, although denial of "
|
|
"service attacks are still possible, for example with oversized configuration "
|
|
"files."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2031
|
|
msgid "RUNNING UNTRUSTED GUEST COMMANDS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2033
|
|
msgid ""
|
|
"Be very cautious about running commands from the guest. By running a "
|
|
"command in the guest, you are giving CPU time to a binary that you do not "
|
|
"control, under the same user account as the library, albeit wrapped in qemu "
|
|
"virtualization. More information and alternatives can be found in the "
|
|
"section L</RUNNING COMMANDS>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2039
|
|
msgid "CVE-2010-3851"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2041
|
|
msgid "L<https://bugzilla.redhat.com/642934>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2043
|
|
msgid ""
|
|
"This security bug concerns the automatic disk format detection that qemu "
|
|
"does on disk images."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2046
|
|
msgid ""
|
|
"A raw disk image is just the raw bytes, there is no header. Other disk "
|
|
"images like qcow2 contain a special header. Qemu deals with this by looking "
|
|
"for one of the known headers, and if none is found then assuming the disk "
|
|
"image must be raw."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2051
|
|
msgid ""
|
|
"This allows a guest which has been given a raw disk image to write some "
|
|
"other header. At next boot (or when the disk image is accessed by "
|
|
"libguestfs) qemu would do autodetection and think the disk image format was, "
|
|
"say, qcow2 based on the header written by the guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2056
|
|
msgid ""
|
|
"This in itself would not be a problem, but qcow2 offers many features, one "
|
|
"of which is to allow a disk image to refer to another image (called the "
|
|
"\"backing disk\"). It does this by placing the path to the backing disk "
|
|
"into the qcow2 header. This path is not validated and could point to any "
|
|
"host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
|
|
"\"holes\" in the qcow2 disk image, which of course is completely under the "
|
|
"control of the attacker."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2064
|
|
msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2071
|
|
msgid "You have enabled the network or have opened the disk in write mode."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2075
|
|
msgid ""
|
|
"You are also running untrusted code from the guest (see L</RUNNING "
|
|
"COMMANDS>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2080
|
|
msgid ""
|
|
"The way to avoid this is to specify the expected disk format when adding "
|
|
"disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
|
|
"should always do this if the disk is raw format, and it's a good idea for "
|
|
"other cases too. (See also L</DISK IMAGE FORMATS>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2086
|
|
msgid ""
|
|
"For disks added from libvirt using calls like L</guestfs_add_domain>, the "
|
|
"format is fetched from libvirt and passed through."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2089
|
|
msgid ""
|
|
"For libguestfs tools, use the I<--format> command line parameter as "
|
|
"appropriate."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2092
|
|
msgid "CVE-2011-4127"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2094
|
|
msgid "L<https://bugzilla.redhat.com/752375>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2096
|
|
msgid ""
|
|
"This is a bug in the kernel which allowed guests to overwrite parts of the "
|
|
"host's drives which they should not normally have access to."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2100
|
|
msgid ""
|
|
"It is sufficient to update libguestfs to any version E<ge> 1.16 which "
|
|
"contains a change that mitigates the problem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2105
|
|
msgid "L<https://bugzilla.redhat.com/831117>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2107
|
|
msgid ""
|
|
"Old versions of both virt-edit and the guestfish C<edit> command created a "
|
|
"new file containing the changes but did not set the permissions, etc of the "
|
|
"new file to match the old one. The result of this was that if you edited a "
|
|
"security sensitive file such as C</etc/shadow> then it would be left "
|
|
"world-readable after the edit."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2113
|
|
msgid "It is sufficient to update libguestfs to any version E<ge> 1.16."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2117
|
|
msgid "L<https://bugzilla.redhat.com/968306>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2119
|
|
msgid ""
|
|
"This security bug was a flaw in inspection where an untrusted guest using a "
|
|
"specially crafted file in the guest OS could cause a double-free in the C "
|
|
"library (denial of service)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2123
|
|
msgid ""
|
|
"It is sufficient to update libguestfs to a version that is not vulnerable: "
|
|
"libguestfs E<ge> 1.20.8, E<ge> 1.22.2 or E<ge> 1.23.2."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2128
|
|
msgid "L<https://bugzilla.redhat.com/1016960>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2130
|
|
msgid ""
|
|
"When using the L<guestfish(1)> I<--remote> or guestfish I<--listen> options, "
|
|
"guestfish would create a socket in a known location "
|
|
"(C</tmp/.guestfish-$UID/socket-$PID>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2134
|
|
msgid ""
|
|
"The location has to be a known one in order for both ends to communicate. "
|
|
"However no checking was done that the containing directory "
|
|
"(C</tmp/.guestfish-$UID>) is owned by the user. Thus another user could "
|
|
"create this directory and potentially hijack sockets owned by another user's "
|
|
"guestfish client or server."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2140
|
|
msgid ""
|
|
"It is sufficient to update libguestfs to a version that is not vulnerable: "
|
|
"libguestfs E<ge> 1.20.12, E<ge> 1.22.7 or E<ge> 1.24."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../src/guestfs.pod:2143
|
|
msgid "CONNECTION MANAGEMENT"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2145
|
|
msgid "guestfs_h *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2147
|
|
msgid ""
|
|
"C<guestfs_h> is the opaque type representing a connection handle. Create a "
|
|
"handle by calling L</guestfs_create> or L</guestfs_create_flags>. Call "
|
|
"L</guestfs_close> to free the handle and release all resources used."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2152
|
|
msgid ""
|
|
"For information on using multiple handles and threads, see the section "
|
|
"L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2155
|
|
msgid "guestfs_create"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2157
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_h *guestfs_create (void);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2159
|
|
msgid "Create a connection handle."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2161 ../src/guestfs.pod:2180
|
|
msgid ""
|
|
"On success this returns a non-NULL pointer to a handle. On error it returns "
|
|
"NULL."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2164
|
|
msgid ""
|
|
"You have to \"configure\" the handle after creating it. This includes "
|
|
"calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
|
|
"handle at least once."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2168
|
|
msgid "After configuring the handle, you have to call L</guestfs_launch>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2170
|
|
msgid ""
|
|
"You may also want to configure error handling for the handle. See the "
|
|
"L</ERROR HANDLING> section below."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2173
|
|
msgid "guestfs_create_flags"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2175
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_h *guestfs_create_flags (unsigned flags [, ...]);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2177
|
|
msgid ""
|
|
"Create a connection handle, supplying extra flags and extra arguments to "
|
|
"control how the handle is created."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2183
|
|
msgid "L</guestfs_create> is equivalent to calling C<guestfs_create_flags(0)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2185
|
|
msgid ""
|
|
"The following flags may be logically ORed together. (Currently no extra "
|
|
"arguments are used)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:2190
|
|
msgid "C<GUESTFS_CREATE_NO_ENVIRONMENT>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2192
|
|
msgid "Don't parse any environment variables (such as C<LIBGUESTFS_DEBUG> etc)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2194
|
|
msgid ""
|
|
"You can call L</guestfs_parse_environment> or "
|
|
"L</guestfs_parse_environment_list> afterwards to parse environment "
|
|
"variables. Alternately, I<don't> call these functions if you want the "
|
|
"handle to be unaffected by environment variables. See the example below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2199
|
|
msgid ""
|
|
"The default (if this flag is not given) is to implicitly call "
|
|
"L</guestfs_parse_environment>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:2202
|
|
msgid "C<GUESTFS_CREATE_NO_CLOSE_ON_EXIT>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2204
|
|
msgid ""
|
|
"Don't try to close the handle in an L<atexit(3)> handler if the program "
|
|
"exits without explicitly closing the handle."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2207
|
|
msgid ""
|
|
"The default (if this flag is not given) is to install such an atexit "
|
|
"handler."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:2212
|
|
msgid "USING C<GUESTFS_CREATE_NO_ENVIRONMENT>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2214
|
|
msgid ""
|
|
"You might use C<GUESTFS_CREATE_NO_ENVIRONMENT> and an explicit call to "
|
|
"L</guestfs_parse_environment> like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2217
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_h *g;\n"
|
|
" int r;\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2220
|
|
#, no-wrap
|
|
msgid ""
|
|
" g = guestfs_create_flags (GUESTFS_CREATE_NO_ENVIRONMENT);\n"
|
|
" if (!g) {\n"
|
|
" perror (\"guestfs_create_flags\");\n"
|
|
" exit (EXIT_FAILURE);\n"
|
|
" }\n"
|
|
" r = guestfs_parse_environment (g);\n"
|
|
" if (r == -1)\n"
|
|
" exit (EXIT_FAILURE);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2229
|
|
msgid ""
|
|
"Or to create a handle which is unaffected by environment variables, omit the "
|
|
"call to C<guestfs_parse_environment> from the above code."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2232
|
|
msgid ""
|
|
"The above code has another advantage which is that any errors from parsing "
|
|
"the environment are passed through the error handler, whereas "
|
|
"C<guestfs_create> prints errors on stderr and ignores them."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2236
|
|
msgid "guestfs_close"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2238
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_close (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2240
|
|
msgid ""
|
|
"This closes the connection handle and frees up all resources used. If a "
|
|
"close callback was set on the handle, then it is called."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2243
|
|
msgid "The correct way to close the handle is:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2245
|
|
#, no-wrap
|
|
msgid ""
|
|
" if (guestfs_shutdown (g) == -1) {\n"
|
|
" /* handle write errors here */\n"
|
|
" }\n"
|
|
" guestfs_close (g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2250
|
|
msgid "L</guestfs_shutdown> is only needed if B<all> of the following are true:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2256
|
|
msgid "one or more disks were added in read-write mode, I<and>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2260
|
|
msgid "guestfs_launch was called, I<and>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2264
|
|
msgid "you made some changes, I<and>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:2266
|
|
msgid "4"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2268
|
|
msgid ""
|
|
"you have a way to handle write errors (eg. by exiting with an error code or "
|
|
"reporting something to the user)."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../src/guestfs.pod:2273
|
|
msgid "ERROR HANDLING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2275
|
|
msgid ""
|
|
"API functions can return errors. For example, almost all functions that "
|
|
"return C<int> will return C<-1> to indicate an error."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2278
|
|
msgid ""
|
|
"Additional information is available for errors: an error message string and "
|
|
"optionally an error number (errno) if the thing that failed was a system "
|
|
"call."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2282
|
|
msgid ""
|
|
"You can get at the additional information about the last error on the handle "
|
|
"by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
|
|
"up an error handler with L</guestfs_set_error_handler>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2287
|
|
msgid ""
|
|
"When the handle is created, a default error handler is installed which "
|
|
"prints the error message string to C<stderr>. For small short-running "
|
|
"command line programs it is sufficient to do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2291
|
|
#, no-wrap
|
|
msgid ""
|
|
" if (guestfs_launch (g) == -1)\n"
|
|
" exit (EXIT_FAILURE);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2294
|
|
msgid ""
|
|
"since the default error handler will ensure that an error message has been "
|
|
"printed to C<stderr> before the program exits."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2297
|
|
msgid ""
|
|
"For other programs the caller will almost certainly want to install an "
|
|
"alternate error handler or do error handling in-line as in the example "
|
|
"below. The non-C language bindings all install NULL error handlers and turn "
|
|
"errors into exceptions using code similar to this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2302
|
|
#, no-wrap
|
|
msgid ""
|
|
" const char *msg;\n"
|
|
" int errnum;\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2305
|
|
#, no-wrap
|
|
msgid ""
|
|
" /* This disables the default behaviour of printing errors\n"
|
|
" on stderr. */\n"
|
|
" guestfs_set_error_handler (g, NULL, NULL);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2309
|
|
#, no-wrap
|
|
msgid ""
|
|
" if (guestfs_launch (g) == -1) {\n"
|
|
" /* Examine the error message and print it, throw it,\n"
|
|
" etc. */\n"
|
|
" msg = guestfs_last_error (g);\n"
|
|
" errnum = guestfs_last_errno (g);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2315
|
|
#, no-wrap
|
|
msgid ""
|
|
" fprintf (stderr, \"%s\", msg);\n"
|
|
" if (errnum != 0)\n"
|
|
" fprintf (stderr, \": %s\", strerror (errnum));\n"
|
|
" fprintf (stderr, \"\\n\");\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2320
|
|
#, no-wrap
|
|
msgid ""
|
|
" /* ... */\n"
|
|
" }\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2323
|
|
msgid ""
|
|
"L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
|
|
"because there is no handle if this happens there is no way to get additional "
|
|
"error information. Since libguestfs E<ge> 1.20, you can use "
|
|
"L</guestfs_create_flags> to properly deal with errors during handle "
|
|
"creation, although the vast majority of programs can continue to use "
|
|
"L</guestfs_create> and not worry about this situation."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2330
|
|
msgid ""
|
|
"Out of memory errors are handled differently. The default action is to call "
|
|
"L<abort(3)>. If this is undesirable, then you can set a handler using "
|
|
"L</guestfs_set_out_of_memory_handler>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2334
|
|
msgid "guestfs_last_error"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2336
|
|
#, no-wrap
|
|
msgid ""
|
|
" const char *guestfs_last_error (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2338
|
|
msgid ""
|
|
"This returns the last error message that happened on C<g>. If there has not "
|
|
"been an error since the handle was created, then this returns C<NULL>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2342
|
|
msgid ""
|
|
"Note the returned string does I<not> have a newline character at the end. "
|
|
"Most error messages are single lines. Some are split over multiple lines "
|
|
"and contain C<\\n> characters within the string but not at the end."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2347
|
|
msgid ""
|
|
"The lifetime of the returned string is until the next error occurs on the "
|
|
"same handle, or L</guestfs_close> is called. If you need to keep it longer, "
|
|
"copy it."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2351
|
|
msgid "guestfs_last_errno"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2353
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_last_errno (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2355
|
|
msgid "This returns the last error number (errno) that happened on C<g>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2357
|
|
msgid "If successful, an errno integer not equal to zero is returned."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2359
|
|
msgid ""
|
|
"In many cases the special errno C<ENOTSUP> is returned if you tried to call "
|
|
"a function or use a feature which is not supported."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2362
|
|
msgid ""
|
|
"If no error number is available, this returns 0. This call can return 0 in "
|
|
"three situations:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2369
|
|
msgid "There has not been any error on the handle."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2373
|
|
msgid ""
|
|
"There has been an error but the errno was meaningless. This corresponds to "
|
|
"the case where the error did not come from a failed system call, but for "
|
|
"some other reason."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2379
|
|
msgid ""
|
|
"There was an error from a failed system call, but for some reason the errno "
|
|
"was not captured and returned. This usually indicates a bug in libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2385
|
|
msgid ""
|
|
"Libguestfs tries to convert the errno from inside the applicance into a "
|
|
"corresponding errno for the caller (not entirely trivial: the appliance "
|
|
"might be running a completely different operating system from the library "
|
|
"and error numbers are not standardized across Un*xen). If this could not be "
|
|
"done, then the error is translated to C<EINVAL>. In practice this should "
|
|
"only happen in very rare circumstances."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2393
|
|
msgid "guestfs_set_error_handler"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2395
|
|
#, no-wrap
|
|
msgid ""
|
|
" typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
|
|
" void *opaque,\n"
|
|
" const char *msg);\n"
|
|
" void guestfs_set_error_handler (guestfs_h *g,\n"
|
|
" guestfs_error_handler_cb cb,\n"
|
|
" void *opaque);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2402
|
|
msgid ""
|
|
"The callback C<cb> will be called if there is an error. The parameters "
|
|
"passed to the callback are an opaque data pointer and the error message "
|
|
"string."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2406
|
|
msgid ""
|
|
"C<errno> is not passed to the callback. To get that the callback must call "
|
|
"L</guestfs_last_errno>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2409
|
|
msgid ""
|
|
"Note that the message string C<msg> is freed as soon as the callback "
|
|
"function returns, so if you want to stash it somewhere you must make your "
|
|
"own copy."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2413
|
|
msgid "The default handler prints messages on C<stderr>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2415
|
|
msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2417
|
|
msgid "guestfs_get_error_handler"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2419
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
|
|
" void **opaque_rtn);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2422
|
|
msgid "Returns the current error handler callback."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2424
|
|
msgid "guestfs_push_error_handler"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2426
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_push_error_handler (guestfs_h *g,\n"
|
|
" guestfs_error_handler_cb cb,\n"
|
|
" void *opaque);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2430
|
|
msgid ""
|
|
"This is the same as L</guestfs_set_error_handler>, except that the old error "
|
|
"handler is stashed away in a stack inside the handle. You can restore the "
|
|
"previous error handler by calling L</guestfs_pop_error_handler>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2435
|
|
msgid "Use the following code to temporarily disable errors around a function:"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2441
|
|
msgid "guestfs_pop_error_handler"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2443
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_pop_error_handler (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2445
|
|
msgid "Restore the previous error handler (see L</guestfs_push_error_handler>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2447
|
|
msgid ""
|
|
"If you pop the stack too many times, then the default error handler is "
|
|
"restored."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2450
|
|
msgid "guestfs_set_out_of_memory_handler"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2452
|
|
#, no-wrap
|
|
msgid ""
|
|
" typedef void (*guestfs_abort_cb) (void);\n"
|
|
" void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
|
|
" guestfs_abort_cb);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2456
|
|
msgid ""
|
|
"The callback C<cb> will be called if there is an out of memory situation. "
|
|
"I<Note this callback must not return>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2459
|
|
msgid "The default is to call L<abort(3)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2461
|
|
msgid "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2464
|
|
msgid "guestfs_get_out_of_memory_handler"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2466
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2468
|
|
msgid "This returns the current out of memory handler."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../src/guestfs.pod:2470
|
|
msgid "API CALLS"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../src/guestfs.pod:2474
|
|
msgid "STRUCTURES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2476
|
|
msgid "__STRUCTS__"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../src/guestfs.pod:2478
|
|
msgid "AVAILABILITY"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2480
|
|
msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2482
|
|
msgid ""
|
|
"Using L</guestfs_available> you can test availability of the following "
|
|
"groups of functions. This test queries the appliance to see if the "
|
|
"appliance you are currently using supports the functionality."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2487
|
|
msgid "__AVAILABILITY__"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2489
|
|
msgid "FILESYSTEM AVAILABLE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2491
|
|
msgid ""
|
|
"The L</guestfs_filesystem_available> call tests whether a filesystem type is "
|
|
"supported by the appliance kernel."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2494
|
|
msgid ""
|
|
"This is mainly useful as a negative test. If this returns true, it doesn't "
|
|
"mean that a particular filesystem can be mounted, since filesystems can fail "
|
|
"for other reasons such as it being a later version of the filesystem, or "
|
|
"having incompatible features."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2499
|
|
msgid "GUESTFISH supported COMMAND"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2501
|
|
msgid ""
|
|
"In L<guestfish(3)> there is a handy interactive command C<supported> which "
|
|
"prints out the available groups and whether they are supported by this build "
|
|
"of libguestfs. Note however that you have to do C<run> first."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2506
|
|
msgid "SINGLE CALLS AT COMPILE TIME"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2508
|
|
msgid ""
|
|
"Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
|
|
"function, such as:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2511
|
|
#, no-wrap
|
|
msgid ""
|
|
" #define GUESTFS_HAVE_DD 1\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2513
|
|
msgid "if L</guestfs_dd> is available."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2515
|
|
msgid ""
|
|
"Before version 1.5.8, if you needed to test whether a single libguestfs "
|
|
"function is available at compile time, we recommended using build tools such "
|
|
"as autoconf or cmake. For example in autotools you could use:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2520
|
|
#, no-wrap
|
|
msgid ""
|
|
" AC_CHECK_LIB([guestfs],[guestfs_create])\n"
|
|
" AC_CHECK_FUNCS([guestfs_dd])\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2523
|
|
msgid ""
|
|
"which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
|
|
"in your program."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2526
|
|
msgid "SINGLE CALLS AT RUN TIME"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2528
|
|
msgid ""
|
|
"Testing at compile time doesn't guarantee that a function really exists in "
|
|
"the library. The reason is that you might be dynamically linked against a "
|
|
"previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
|
|
"This situation unfortunately results in a segmentation fault, which is a "
|
|
"shortcoming of the C dynamic linking system itself."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2535
|
|
msgid ""
|
|
"You can use L<dlopen(3)> to test if a function is available at run time, as "
|
|
"in this example program (note that you still need the compile time check as "
|
|
"well):"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2539
|
|
#, no-wrap
|
|
msgid ""
|
|
" #include <stdio.h>\n"
|
|
" #include <stdlib.h>\n"
|
|
" #include <unistd.h>\n"
|
|
" #include <dlfcn.h>\n"
|
|
" #include <guestfs.h>\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2545
|
|
#, no-wrap
|
|
msgid ""
|
|
" main ()\n"
|
|
" {\n"
|
|
" #ifdef GUESTFS_HAVE_DD\n"
|
|
" void *dl;\n"
|
|
" int has_function;\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2551
|
|
#, no-wrap
|
|
msgid ""
|
|
" /* Test if the function guestfs_dd is really available. */\n"
|
|
" dl = dlopen (NULL, RTLD_LAZY);\n"
|
|
" if (!dl) {\n"
|
|
" fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
|
|
" exit (EXIT_FAILURE);\n"
|
|
" }\n"
|
|
" has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
|
|
" dlclose (dl);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2560
|
|
#, no-wrap
|
|
msgid ""
|
|
" if (!has_function)\n"
|
|
" printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
|
|
" else {\n"
|
|
" printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
|
|
" /* Now it's safe to call\n"
|
|
" guestfs_dd (g, \"foo\", \"bar\");\n"
|
|
" */\n"
|
|
" }\n"
|
|
" #else\n"
|
|
" printf (\"guestfs_dd function was not found at compile time\\n\");\n"
|
|
" #endif\n"
|
|
" }\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2573
|
|
msgid ""
|
|
"You may think the above is an awful lot of hassle, and it is. There are "
|
|
"other ways outside of the C linking system to ensure that this kind of "
|
|
"incompatibility never arises, such as using package versioning:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2578
|
|
#, no-wrap
|
|
msgid ""
|
|
" Requires: libguestfs >= 1.0.80\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../src/guestfs.pod:2580
|
|
msgid "CALLS WITH OPTIONAL ARGUMENTS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2582
|
|
msgid ""
|
|
"A recent feature of the API is the introduction of calls which take optional "
|
|
"arguments. In C these are declared 3 ways. The main way is as a call which "
|
|
"takes variable arguments (ie. C<...>), as in this example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2587
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2589
|
|
msgid ""
|
|
"Call this with a list of optional arguments, terminated by C<-1>. So to "
|
|
"call with no optional arguments specified:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2592
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_add_drive_opts (g, filename, -1);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2594
|
|
msgid "With a single optional argument:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2596
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_add_drive_opts (g, filename,\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
|
|
" -1);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2600
|
|
msgid "With two:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2602
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_add_drive_opts (g, filename,\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
|
|
" -1);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2607
|
|
msgid ""
|
|
"and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
|
|
"happen!"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2610
|
|
msgid "USING va_list FOR OPTIONAL ARGUMENTS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2612
|
|
msgid ""
|
|
"The second variant has the same name with the suffix C<_va>, which works the "
|
|
"same way but takes a C<va_list>. See the C manual for details. For the "
|
|
"example function, this is declared:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2616
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
|
|
" va_list args);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2619
|
|
msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2621
|
|
msgid ""
|
|
"The third variant is useful where you need to construct these calls. You "
|
|
"pass in a structure where you fill in the optional fields. The structure "
|
|
"has a bitmask as the first element which you must set to indicate which "
|
|
"fields you have filled in. For our example function the structure and call "
|
|
"are declared:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2627
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_add_drive_opts_argv {\n"
|
|
" uint64_t bitmask;\n"
|
|
" int readonly;\n"
|
|
" const char *format;\n"
|
|
" /* ... */\n"
|
|
" };\n"
|
|
" int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
|
|
" const struct guestfs_add_drive_opts_argv *optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2636
|
|
msgid "You could call it like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2638
|
|
#, no-wrap
|
|
msgid ""
|
|
" struct guestfs_add_drive_opts_argv optargs = {\n"
|
|
" .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
|
|
" GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
|
|
" .readonly = 1,\n"
|
|
" .format = \"qcow2\"\n"
|
|
" };\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2645
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2653
|
|
msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2658
|
|
msgid "You do not need to fill in all fields of the structure."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2662
|
|
msgid ""
|
|
"There must be a one-to-one correspondence between fields of the structure "
|
|
"that are filled in, and bits set in the bitmask."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2667
|
|
msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2669
|
|
msgid ""
|
|
"In other languages, optional arguments are expressed in the way that is "
|
|
"natural for that language. We refer you to the language-specific "
|
|
"documentation for more details on that."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2673
|
|
msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2677
|
|
msgid "SETTING CALLBACKS TO HANDLE EVENTS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2679
|
|
msgid ""
|
|
"B<Note:> This section documents the generic event mechanism introduced in "
|
|
"libguestfs 1.10, which you should use in new code if possible. The old "
|
|
"functions C<guestfs_set_log_message_callback>, "
|
|
"C<guestfs_set_subprocess_quit_callback>, "
|
|
"C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
|
|
"C<guestfs_set_progress_callback> are no longer documented in this manual "
|
|
"page. Because of the ABI guarantee, the old functions continue to work."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2688
|
|
msgid ""
|
|
"Handles generate events when certain things happen, such as log messages "
|
|
"being generated, progress messages during long-running operations, or the "
|
|
"handle being closed. The API calls described below let you register a "
|
|
"callback to be called when events happen. You can register multiple "
|
|
"callbacks (for the same, different or overlapping sets of events), and "
|
|
"individually remove callbacks. If callbacks are not removed, then they "
|
|
"remain in force until the handle is closed."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2696
|
|
msgid ""
|
|
"In the current implementation, events are only generated synchronously: that "
|
|
"means that events (and hence callbacks) can only happen while you are in the "
|
|
"middle of making another libguestfs call. The callback is called in the "
|
|
"same thread."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2701
|
|
msgid ""
|
|
"Events may contain a payload, usually nothing (void), an array of 64 bit "
|
|
"unsigned integers, or a message buffer. Payloads are discussed later on."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2705
|
|
msgid "CLASSES OF EVENTS"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:2709
|
|
msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2712
|
|
msgid ""
|
|
"The callback function will be called while the handle is being closed "
|
|
"(synchronously from L</guestfs_close>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2715
|
|
msgid ""
|
|
"Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
|
|
"handles that are open when the program exits. This means that this callback "
|
|
"might be called indirectly from L<exit(3)>, which can cause unexpected "
|
|
"problems in higher-level languages (eg. if your HLL interpreter has already "
|
|
"been cleaned up by the time this is called, and if your callback then jumps "
|
|
"into some HLL function)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2722
|
|
msgid ""
|
|
"If no callback is registered: the handle is closed without any callback "
|
|
"being invoked."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:2725
|
|
msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2728
|
|
msgid ""
|
|
"The callback function will be called when the child process quits, either "
|
|
"asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
|
|
"corresponds to a transition from any state to the CONFIG state)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2732 ../src/guestfs.pod:2741 ../src/guestfs.pod:2868
|
|
msgid "If no callback is registered: the event is ignored."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:2734
|
|
msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2737
|
|
msgid ""
|
|
"The callback function will be called when the child process becomes ready "
|
|
"first time after it has been launched. (This corresponds to a transition "
|
|
"from LAUNCHING to the READY state)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:2743
|
|
msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2746
|
|
msgid ""
|
|
"Some long-running operations can generate progress messages. If this "
|
|
"callback is registered, then it will be called each time a progress message "
|
|
"is generated (usually two seconds after the operation started, and three "
|
|
"times per second thereafter until it completes, although the frequency may "
|
|
"change in future versions)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2752
|
|
msgid ""
|
|
"The callback receives in the payload four unsigned 64 bit numbers which are "
|
|
"(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2755
|
|
msgid ""
|
|
"The units of C<total> are not defined, although for some operations C<total> "
|
|
"may relate in some way to the amount of data to be transferred (eg. in bytes "
|
|
"or megabytes), and C<position> may be the portion which has been "
|
|
"transferred."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2760
|
|
msgid "The only defined and stable parts of the API are:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2766
|
|
msgid ""
|
|
"The callback can display to the user some type of progress bar or indicator "
|
|
"which shows the ratio of C<position>:C<total>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2771
|
|
msgid "0 E<lt>= C<position> E<lt>= C<total>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2775
|
|
msgid ""
|
|
"If any progress notification is sent during a call, then a final progress "
|
|
"notification is always sent when C<position> = C<total> (I<unless> the call "
|
|
"fails with an error)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2779
|
|
msgid ""
|
|
"This is to simplify caller code, so callers can easily set the progress "
|
|
"indicator to \"100%\" at the end of the operation, without requiring special "
|
|
"code to detect this case."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2785
|
|
msgid ""
|
|
"For some calls we are unable to estimate the progress of the call, but we "
|
|
"can still generate progress messages to indicate activity. This is known as "
|
|
"\"pulse mode\", and is directly supported by certain progress bar "
|
|
"implementations (eg. GtkProgressBar)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2790
|
|
msgid ""
|
|
"For these calls, zero or more progress messages are generated with "
|
|
"C<position = 0> and C<total = 1>, followed by a final message with "
|
|
"C<position = total = 1>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2794
|
|
msgid ""
|
|
"As noted above, if the call fails with an error then the final message may "
|
|
"not be generated."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2799
|
|
msgid ""
|
|
"The callback also receives the procedure number (C<proc_nr>) and serial "
|
|
"number (C<serial>) of the call. These are only useful for debugging "
|
|
"protocol issues, and the callback can normally ignore them. The callback "
|
|
"may want to print these numbers in error messages or debugging messages."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2805
|
|
msgid "If no callback is registered: progress messages are discarded."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:2807
|
|
msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2810
|
|
msgid ""
|
|
"The callback function is called whenever a log message is generated by qemu, "
|
|
"the appliance kernel, guestfsd (daemon), or utility programs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2813
|
|
msgid ""
|
|
"If the verbose flag (L</guestfs_set_verbose>) is set before launch "
|
|
"(L</guestfs_launch>) then additional debug messages are generated."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2816 ../src/guestfs.pod:2830
|
|
msgid ""
|
|
"If no callback is registered: the messages are discarded unless the verbose "
|
|
"flag is set in which case they are sent to stderr. You can override the "
|
|
"printing of verbose messages to stderr by setting up a callback."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:2821
|
|
msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2824
|
|
msgid ""
|
|
"The callback function is called whenever a log message is generated by the "
|
|
"library part of libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2827
|
|
msgid ""
|
|
"If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
|
|
"messages are generated."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:2835
|
|
msgid "GUESTFS_EVENT_WARNING (payload type: message buffer)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2838
|
|
msgid ""
|
|
"The callback function is called whenever a warning message is generated by "
|
|
"the library part of libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2841
|
|
msgid ""
|
|
"If no callback is registered: the messages are printed to stderr. You can "
|
|
"override the printing of warning messages to stderr by setting up a "
|
|
"callback."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:2845
|
|
msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2848
|
|
msgid ""
|
|
"The callback function is called whenever a trace message is generated. This "
|
|
"only applies if the trace flag (L</guestfs_set_trace>) is set."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2851
|
|
msgid ""
|
|
"If no callback is registered: the messages are sent to stderr. You can "
|
|
"override the printing of trace messages to stderr by setting up a callback."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:2855
|
|
msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2858
|
|
msgid "The callback function is called whenever a libguestfs function is entered."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2861
|
|
msgid ""
|
|
"The payload is a string which contains the name of the function that we are "
|
|
"entering (not including C<guestfs_> prefix)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2864
|
|
msgid ""
|
|
"Note that libguestfs functions can call themselves, so you may see many "
|
|
"events from a single call. A few libguestfs functions do not generate this "
|
|
"event."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:2870
|
|
msgid "GUESTFS_EVENT_LIBVIRT_AUTH (payload type: libvirt URI)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2873
|
|
msgid ""
|
|
"For any API function that opens a libvirt connection, this event may be "
|
|
"generated to indicate that libvirt demands authentication information. See "
|
|
"L</LIBVIRT AUTHENTICATION> below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2877
|
|
msgid ""
|
|
"If no callback is registered: C<virConnectAuthPtrDefault> is used (suitable "
|
|
"for command-line programs only)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2882
|
|
msgid "EVENT API"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:2884
|
|
msgid "guestfs_set_event_callback"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2886
|
|
#, no-wrap
|
|
msgid ""
|
|
" int guestfs_set_event_callback (guestfs_h *g,\n"
|
|
" guestfs_event_callback cb,\n"
|
|
" uint64_t event_bitmask,\n"
|
|
" int flags,\n"
|
|
" void *opaque);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2892
|
|
msgid ""
|
|
"This function registers a callback (C<cb>) for all event classes in the "
|
|
"C<event_bitmask>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2895
|
|
msgid ""
|
|
"For example, to register for all log message events, you could call this "
|
|
"function with the bitmask "
|
|
"C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_WARNING>. To "
|
|
"register a single callback for all possible classes of events, use "
|
|
"C<GUESTFS_EVENT_ALL>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2901
|
|
msgid "C<flags> should always be passed as 0."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2903
|
|
msgid ""
|
|
"C<opaque> is an opaque pointer which is passed to the callback. You can use "
|
|
"it for any purpose."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2906
|
|
msgid ""
|
|
"The return value is the event handle (an integer) which you can use to "
|
|
"delete the callback (see below)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2909
|
|
msgid ""
|
|
"If there is an error, this function returns C<-1>, and sets the error in the "
|
|
"handle in the usual way (see L</guestfs_last_error> etc.)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2912
|
|
msgid ""
|
|
"Callbacks remain in effect until they are deleted, or until the handle is "
|
|
"closed."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2915
|
|
msgid ""
|
|
"In the case where multiple callbacks are registered for a particular event "
|
|
"class, all of the callbacks are called. The order in which multiple "
|
|
"callbacks are called is not defined."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:2919
|
|
msgid "guestfs_delete_event_callback"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2921
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2923
|
|
msgid ""
|
|
"Delete a callback that was previously registered. C<event_handle> should be "
|
|
"the integer that was returned by a previous call to "
|
|
"C<guestfs_set_event_callback> on the same handle."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:2927
|
|
msgid "guestfs_event_to_string"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2929
|
|
#, no-wrap
|
|
msgid ""
|
|
" char *guestfs_event_to_string (uint64_t event);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2931
|
|
msgid ""
|
|
"C<event> is either a single event or a bitmask of events. This returns a "
|
|
"string representation (useful for debugging or printing events)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2935
|
|
msgid "A single event is returned as the name in lower case, eg. C<\"close\">."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2937
|
|
msgid ""
|
|
"A bitmask of several events is returned as a comma-separated list, "
|
|
"eg. C<\"close,progress\">."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2940
|
|
msgid "If zero is passed, then the empty string C<\"\"> is returned."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2942
|
|
msgid ""
|
|
"On success this returns a string. On error it returns NULL and sets "
|
|
"C<errno>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2945
|
|
msgid "The returned string must be freed by the caller."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:2947
|
|
msgid "guestfs_event_callback"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2949
|
|
#, no-wrap
|
|
msgid ""
|
|
" typedef void (*guestfs_event_callback) (\n"
|
|
" guestfs_h *g,\n"
|
|
" void *opaque,\n"
|
|
" uint64_t event,\n"
|
|
" int event_handle,\n"
|
|
" int flags,\n"
|
|
" const char *buf, size_t buf_len,\n"
|
|
" const uint64_t *array, size_t array_len);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2958
|
|
msgid "This is the type of the event callback function that you have to provide."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2961
|
|
msgid ""
|
|
"The basic parameters are: the handle (C<g>), the opaque user pointer "
|
|
"(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
|
|
"handle, and C<flags> which in the current API you should ignore."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2965
|
|
msgid ""
|
|
"The remaining parameters contain the event payload (if any). Each event may "
|
|
"contain a payload, which usually relates to the event class, but for future "
|
|
"proofing your code should be written to handle any payload for any event "
|
|
"class."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2970
|
|
msgid ""
|
|
"C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
|
|
"there is no message buffer). Note that this message buffer can contain "
|
|
"arbitrary 8 bit data, including NUL bytes."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2974
|
|
msgid ""
|
|
"C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
|
|
"moment this is only used for progress messages."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:2977
|
|
msgid "EXAMPLE: CAPTURING LOG MESSAGES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2979
|
|
msgid ""
|
|
"A working program demonstrating this can be found in "
|
|
"C<examples/debug-logging.c> in the source of libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2982
|
|
msgid ""
|
|
"One motivation for the generic event API was to allow GUI programs to "
|
|
"capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
|
|
"unconditionally to C<stderr>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2986
|
|
msgid ""
|
|
"Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
|
|
"C<GUESTFS_EVENT_APPLIANCE>, C<GUESTFS_EVENT_WARNING> and "
|
|
"C<GUESTFS_EVENT_TRACE>. (Note that error messages are not events; you must "
|
|
"capture error messages separately)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:2991
|
|
msgid ""
|
|
"Programs have to set up a callback to capture the classes of events of "
|
|
"interest:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:2994
|
|
#, no-wrap
|
|
msgid ""
|
|
" int eh =\n"
|
|
" guestfs_set_event_callback\n"
|
|
" (g, message_callback,\n"
|
|
" GUESTFS_EVENT_LIBRARY | GUESTFS_EVENT_APPLIANCE |\n"
|
|
" GUESTFS_EVENT_WARNING | GUESTFS_EVENT_TRACE,\n"
|
|
" 0, NULL) == -1)\n"
|
|
" if (eh == -1) {\n"
|
|
" // handle error in the usual way\n"
|
|
" }\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3004
|
|
msgid ""
|
|
"The callback can then direct messages to the appropriate place. In this "
|
|
"example, messages are directed to syslog:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3007
|
|
#, no-wrap
|
|
msgid ""
|
|
" static void\n"
|
|
" message_callback (\n"
|
|
" guestfs_h *g,\n"
|
|
" void *opaque,\n"
|
|
" uint64_t event,\n"
|
|
" int event_handle,\n"
|
|
" int flags,\n"
|
|
" const char *buf, size_t buf_len,\n"
|
|
" const uint64_t *array, size_t array_len)\n"
|
|
" {\n"
|
|
" const int priority = LOG_USER|LOG_INFO;\n"
|
|
" if (buf_len > 0)\n"
|
|
" syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
|
|
" }\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:3022
|
|
msgid "LIBVIRT AUTHENTICATION"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3024
|
|
msgid ""
|
|
"Some libguestfs API calls can open libvirt connections. Currently the only "
|
|
"ones are L</guestfs_add_domain>; and L</guestfs_launch> if the libvirt "
|
|
"backend has been selected. Libvirt connections may require authentication, "
|
|
"for example if they need to access a remote server or to access root "
|
|
"services from non-root. Libvirt authentication happens via a callback "
|
|
"mechanism, see "
|
|
"L<http://libvirt.org/guide/html/Application_Development_Guide-Connections.html>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3032
|
|
msgid ""
|
|
"You may provide libvirt authentication data by registering a callback for "
|
|
"events of type C<GUESTFS_EVENT_LIBVIRT_AUTH>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3035
|
|
msgid ""
|
|
"If no such event is registered, then libguestfs uses a libvirt function that "
|
|
"provides command-line prompts (C<virConnectAuthPtrDefault>). This is only "
|
|
"suitable for command-line libguestfs programs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3040
|
|
msgid ""
|
|
"To provide authentication, first call "
|
|
"L</guestfs_set_libvirt_supported_credentials> with the list of credentials "
|
|
"your program knows how to provide. Second, register a callback for the "
|
|
"C<GUESTFS_EVENT_LIBVIRT_AUTH> event. The event handler will be called when "
|
|
"libvirt is requesting authentication information."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3047
|
|
msgid ""
|
|
"In the event handler, call L</guestfs_get_libvirt_requested_credentials> to "
|
|
"get a list of the credentials that libvirt is asking for. You then need to "
|
|
"ask (eg. the user) for each credential, and call "
|
|
"L</guestfs_set_libvirt_requested_credential> with the answer. Note that for "
|
|
"each credential, additional information may be available via the calls "
|
|
"L</guestfs_get_libvirt_requested_credential_prompt>, "
|
|
"L</guestfs_get_libvirt_requested_credential_challenge> or "
|
|
"L</guestfs_get_libvirt_requested_credential_defresult>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3058
|
|
msgid "The example program below should make this clearer."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3060
|
|
msgid ""
|
|
"There is also a more substantial working example program supplied with the "
|
|
"libguestfs sources, called C<libvirt-auth.c>."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3063
|
|
#, no-wrap
|
|
msgid ""
|
|
" main ()\n"
|
|
" {\n"
|
|
" guestfs_h *g;\n"
|
|
" char *creds[] = { \"authname\", \"passphrase\", NULL };\n"
|
|
" int r, eh;\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3069
|
|
#, no-wrap
|
|
msgid ""
|
|
" g = guestfs_create ();\n"
|
|
" if (!g) exit (EXIT_FAILURE);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3072
|
|
#, no-wrap
|
|
msgid ""
|
|
" /* Tell libvirt what credentials the program supports. */\n"
|
|
" r = guestfs_set_libvirt_supported_credentials (g, creds);\n"
|
|
" if (r == -1)\n"
|
|
" exit (EXIT_FAILURE);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3077
|
|
#, no-wrap
|
|
msgid ""
|
|
" /* Set up the event handler. */\n"
|
|
" eh = guestfs_set_event_callback (\n"
|
|
" g, do_auth,\n"
|
|
" GUESTFS_EVENT_LIBVIRT_AUTH, 0, NULL);\n"
|
|
" if (eh == -1)\n"
|
|
" exit (EXIT_FAILURE);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3084
|
|
#, no-wrap
|
|
msgid ""
|
|
" /* An example of a call that may ask for credentials. */\n"
|
|
" r = guestfs_add_domain (\n"
|
|
" g, \"dom\",\n"
|
|
" GUESTFS_ADD_DOMAIN_LIBVIRTURI, \"qemu:///system\",\n"
|
|
" -1);\n"
|
|
" if (r == -1)\n"
|
|
" exit (EXIT_FAILURE);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3092
|
|
#, no-wrap
|
|
msgid ""
|
|
" exit (EXIT_SUCCESS);\n"
|
|
" }\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3095
|
|
#, no-wrap
|
|
msgid ""
|
|
" static void\n"
|
|
" do_auth (guestfs_h *g,\n"
|
|
" void *opaque,\n"
|
|
" uint64_t event,\n"
|
|
" int event_handle,\n"
|
|
" int flags,\n"
|
|
" const char *buf, size_t buf_len,\n"
|
|
" const uint64_t *array, size_t array_len)\n"
|
|
" {\n"
|
|
" char **creds;\n"
|
|
" size_t i;\n"
|
|
" char *prompt;\n"
|
|
" char *reply;\n"
|
|
" size_t replylen;\n"
|
|
" int r;\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3111
|
|
#, no-wrap
|
|
msgid ""
|
|
" // buf will be the libvirt URI. buf_len may be ignored.\n"
|
|
" printf (\"Authentication required for libvirt conn '%s'\\n\",\n"
|
|
" buf);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3115
|
|
#, no-wrap
|
|
msgid ""
|
|
" // Ask libguestfs what credentials libvirt is demanding.\n"
|
|
" creds = guestfs_get_libvirt_requested_credentials (g);\n"
|
|
" if (creds == NULL)\n"
|
|
" exit (EXIT_FAILURE);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3120
|
|
#, no-wrap
|
|
msgid ""
|
|
" // Now ask the user for answers.\n"
|
|
" for (i = 0; creds[i] != NULL; ++i)\n"
|
|
" {\n"
|
|
" if (strcmp (creds[i], \"authname\") == 0 ||\n"
|
|
" strcmp (creds[i], \"passphrase\") == 0)\n"
|
|
" {\n"
|
|
" prompt =\n"
|
|
" guestfs_get_libvirt_requested_credential_prompt (g, i);\n"
|
|
" if (prompt && strcmp (prompt, \"\") != 0)\n"
|
|
" printf (\"%s: \", prompt);\n"
|
|
" free (prompt);\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3132
|
|
#, no-wrap
|
|
msgid ""
|
|
" // Some code here to ask for the credential.\n"
|
|
" // ...\n"
|
|
" // Put the reply in 'reply', length 'replylen' (bytes).\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3136
|
|
#, no-wrap
|
|
msgid ""
|
|
" r = guestfs_set_libvirt_requested_credential (g, i,\n"
|
|
" reply, replylen);\n"
|
|
" if (r == -1)\n"
|
|
" exit (EXIT_FAILURE);\n"
|
|
" }\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3142
|
|
#, no-wrap
|
|
msgid ""
|
|
" free (creds[i]);\n"
|
|
" }\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3145
|
|
#, no-wrap
|
|
msgid ""
|
|
" free (creds);\n"
|
|
" }\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../src/guestfs.pod:3148
|
|
msgid "CANCELLING LONG TRANSFERS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3150
|
|
msgid ""
|
|
"Some operations can be cancelled by the caller while they are in progress. "
|
|
"Currently only operations that involve uploading or downloading data can be "
|
|
"cancelled (technically: operations that have C<FileIn> or C<FileOut> "
|
|
"parameters in the generator)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3155
|
|
msgid ""
|
|
"To cancel the transfer, call L</guestfs_user_cancel>. For more information, "
|
|
"read the description of L</guestfs_user_cancel>."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../src/guestfs.pod:3158
|
|
msgid "PRIVATE DATA AREA"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3160
|
|
msgid ""
|
|
"You can attach named pieces of private data to the libguestfs handle, fetch "
|
|
"them by name, and walk over them, for the lifetime of the handle. This is "
|
|
"called the private data area and is only available from the C API."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3165
|
|
msgid "To attach a named piece of data, use the following call:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3167
|
|
#, no-wrap
|
|
msgid ""
|
|
" void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3169
|
|
msgid ""
|
|
"C<key> is the name to associate with this data, and C<data> is an arbitrary "
|
|
"pointer (which can be C<NULL>). Any previous item with the same key is "
|
|
"overwritten."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3173
|
|
msgid ""
|
|
"You can use any C<key> string you want, but avoid keys beginning with an "
|
|
"underscore character (libguestfs uses those for its own internal purposes, "
|
|
"such as implementing language bindings). It is recommended that you prefix "
|
|
"the key with some unique string to avoid collisions with other users."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3179
|
|
msgid "To retrieve the pointer, use:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3181
|
|
#, no-wrap
|
|
msgid ""
|
|
" void *guestfs_get_private (guestfs_h *g, const char *key);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3183
|
|
msgid ""
|
|
"This function returns C<NULL> if either no data is found associated with "
|
|
"C<key>, or if the user previously set the C<key>'s C<data> pointer to "
|
|
"C<NULL>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3187
|
|
msgid ""
|
|
"Libguestfs does not try to look at or interpret the C<data> pointer in any "
|
|
"way. As far as libguestfs is concerned, it need not be a valid pointer at "
|
|
"all. In particular, libguestfs does I<not> try to free the data when the "
|
|
"handle is closed. If the data must be freed, then the caller must either "
|
|
"free it before calling L</guestfs_close> or must set up a close callback to "
|
|
"do it (see L</GUESTFS_EVENT_CLOSE>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3194
|
|
msgid "To walk over all entries, use these two functions:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3196
|
|
#, no-wrap
|
|
msgid ""
|
|
" void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3198
|
|
#, no-wrap
|
|
msgid ""
|
|
" void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3200
|
|
msgid ""
|
|
"C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
|
|
"not have any particular meaning -- keys are not returned in any defined "
|
|
"order). A pointer to the key is returned in C<*key_rtn> and the "
|
|
"corresponding data pointer is returned from the function. C<NULL> is "
|
|
"returned if there are no keys stored in the handle."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3206
|
|
msgid ""
|
|
"C<guestfs_next_private> returns the next key, pointer pair. The return "
|
|
"value of this function is C<NULL> if there are no further entries to return."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3210
|
|
msgid "Notes about walking over entries:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3216
|
|
msgid "You must not call C<guestfs_set_private> while walking over the entries."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3221
|
|
msgid ""
|
|
"The handle maintains an internal iterator which is reset when you call "
|
|
"C<guestfs_first_private>. This internal iterator is invalidated when you "
|
|
"call C<guestfs_set_private>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3227
|
|
msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3229
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfs_set_private (g, key, NULL);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3231
|
|
msgid "then that C<key> is not returned when walking."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3235
|
|
msgid ""
|
|
"C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
|
|
"C<guestfs_next_private> or C<guestfs_set_private>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3241
|
|
msgid ""
|
|
"The following example code shows how to print all keys and data pointers "
|
|
"that are associated with the handle C<g>:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3244
|
|
#, no-wrap
|
|
msgid ""
|
|
" const char *key;\n"
|
|
" void *data = guestfs_first_private (g, &key);\n"
|
|
" while (data != NULL)\n"
|
|
" {\n"
|
|
" printf (\"key = %s, data = %p\\n\", key, data);\n"
|
|
" data = guestfs_next_private (g, &key);\n"
|
|
" }\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3252
|
|
msgid ""
|
|
"More commonly you are only interested in keys that begin with an "
|
|
"application-specific prefix C<foo_>. Modify the loop like so:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3255
|
|
#, no-wrap
|
|
msgid ""
|
|
" const char *key;\n"
|
|
" void *data = guestfs_first_private (g, &key);\n"
|
|
" while (data != NULL)\n"
|
|
" {\n"
|
|
" if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
|
|
" printf (\"key = %s, data = %p\\n\", key, data);\n"
|
|
" data = guestfs_next_private (g, &key);\n"
|
|
" }\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3264
|
|
msgid ""
|
|
"If you need to modify keys while walking, then you have to jump back to the "
|
|
"beginning of the loop. For example, to delete all keys prefixed with "
|
|
"C<foo_>:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3268
|
|
#, no-wrap
|
|
msgid ""
|
|
" const char *key;\n"
|
|
" void *data;\n"
|
|
" again:\n"
|
|
" data = guestfs_first_private (g, &key);\n"
|
|
" while (data != NULL)\n"
|
|
" {\n"
|
|
" if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
|
|
" {\n"
|
|
" guestfs_set_private (g, key, NULL);\n"
|
|
" /* note that 'key' pointer is now invalid, and so is\n"
|
|
" the internal iterator */\n"
|
|
" goto again;\n"
|
|
" }\n"
|
|
" data = guestfs_next_private (g, &key);\n"
|
|
" }\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3284
|
|
msgid ""
|
|
"Note that the above loop is guaranteed to terminate because the keys are "
|
|
"being deleted, but other manipulations of keys within the loop might not "
|
|
"terminate unless you also maintain an indication of which keys have been "
|
|
"visited."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../src/guestfs.pod:3289
|
|
msgid "SYSTEMTAP"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3291
|
|
msgid ""
|
|
"The libguestfs C library can be probed using systemtap or DTrace. This is "
|
|
"true of any library, not just libguestfs. However libguestfs also contains "
|
|
"static markers to help in probing internal operations."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3295
|
|
msgid "You can list all the static markers by doing:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3297
|
|
#, no-wrap
|
|
msgid ""
|
|
" stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
|
|
" .provider(\"guestfs\").mark(\"*\")'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3300
|
|
msgid ""
|
|
"B<Note:> These static markers are I<not> part of the stable API and may "
|
|
"change in future versions."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:3303
|
|
msgid "SYSTEMTAP SCRIPT EXAMPLE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3305
|
|
msgid ""
|
|
"This script contains examples of displaying both the static markers and some "
|
|
"ordinary C entry points:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3332
|
|
#, no-wrap
|
|
msgid ""
|
|
" /* Display all calls to guestfs_mkfs* functions. */\n"
|
|
" probe process(\"/usr/lib*/libguestfs.so.0\")\n"
|
|
" .function(\"guestfs_mkfs*\") ? {\n"
|
|
" display_time();\n"
|
|
" printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
|
|
" }\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3339
|
|
msgid ""
|
|
"The script above can be saved to C<test.stap> and run using the L<stap(1)> "
|
|
"program. Note that you either have to be root, or you have to add yourself "
|
|
"to several special stap groups. Consult the systemtap documentation for "
|
|
"more information."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3344
|
|
#, no-wrap
|
|
msgid ""
|
|
" # stap /tmp/test.stap\n"
|
|
" ready\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3347
|
|
msgid "In another terminal, run a guestfish command such as this:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3351
|
|
msgid "In the first terminal, stap trace output similar to this is shown:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3353
|
|
#, no-wrap
|
|
msgid ""
|
|
" 1318248056692655 (+0):\tlaunch_start\n"
|
|
" 1318248056692850 (+195): launch_build_appliance_start\n"
|
|
" 1318248056818285 (+125435): launch_build_appliance_end\n"
|
|
" 1318248056838059 (+19774): launch_run_qemu\n"
|
|
" 1318248061071167 (+4233108): launch_end\n"
|
|
" 1318248061280324 (+209157): guestfs_mkfs g=0x1024ab0 fstype=0x46116f "
|
|
"device=0x1024e60\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3362
|
|
msgid ""
|
|
"<!-- old anchor for the next section --> <a "
|
|
"name=\"state_machine_and_low_level_event_api\"/>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3369
|
|
msgid ""
|
|
"Internally, libguestfs is implemented by running an appliance (a special "
|
|
"type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
|
|
"process of the main program."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3373
|
|
#, no-wrap
|
|
msgid ""
|
|
" ___________________\n"
|
|
" / \\\n"
|
|
" | main program |\n"
|
|
" | |\n"
|
|
" | | child process / appliance\n"
|
|
" | | __________________________\n"
|
|
" | | / qemu \\\n"
|
|
" +-------------------+ RPC | +-----------------+ |\n"
|
|
" | libguestfs <--------------------> guestfsd | |\n"
|
|
" | | | +-----------------+ |\n"
|
|
" \\___________________/ | | Linux kernel | |\n"
|
|
" | +--^--------------+ |\n"
|
|
" \\_________|________________/\n"
|
|
" |\n"
|
|
" _______v______\n"
|
|
" / \\\n"
|
|
" | Device or |\n"
|
|
" | disk image |\n"
|
|
" \\______________/\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3393
|
|
msgid ""
|
|
"The library, linked to the main program, creates the child process and hence "
|
|
"the appliance in the L</guestfs_launch> function."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3396
|
|
msgid ""
|
|
"Inside the appliance is a Linux kernel and a complete stack of userspace "
|
|
"tools (such as LVM and ext2 programs) and a small controlling daemon called "
|
|
"L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
|
|
"calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
|
|
"API calls and RPC calls to the daemon. Lastly the disk image(s) are "
|
|
"attached to the qemu process which translates device access by the "
|
|
"appliance's Linux kernel into accesses to the image."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3405
|
|
msgid ""
|
|
"A common misunderstanding is that the appliance \"is\" the virtual machine. "
|
|
"Although the disk image you are attached to might also be used by some "
|
|
"virtual machine, libguestfs doesn't know or care about this. (But you will "
|
|
"care if both libguestfs's qemu process and your virtual machine are trying "
|
|
"to update the disk image at the same time, since these usually results in "
|
|
"massive disk corruption)."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../src/guestfs.pod:3412
|
|
msgid "STATE MACHINE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3414
|
|
msgid "libguestfs uses a state machine to model the child process:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3416
|
|
#, no-wrap
|
|
msgid ""
|
|
" |\n"
|
|
" guestfs_create / guestfs_create_flags\n"
|
|
" |\n"
|
|
" |\n"
|
|
" ____V_____\n"
|
|
" / \\\n"
|
|
" | CONFIG |\n"
|
|
" \\__________/\n"
|
|
" ^ ^ \\\n"
|
|
" | \\ \\ guestfs_launch\n"
|
|
" | _\\__V______\n"
|
|
" | / \\\n"
|
|
" | | LAUNCHING |\n"
|
|
" | \\___________/\n"
|
|
" | /\n"
|
|
" | guestfs_launch\n"
|
|
" | /\n"
|
|
" __|____V\n"
|
|
" / \\\n"
|
|
" | READY |\n"
|
|
" \\________/\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3438
|
|
msgid ""
|
|
"The normal transitions are (1) CONFIG (when the handle is created, but there "
|
|
"is no child process), (2) LAUNCHING (when the child process is booting up), "
|
|
"(3) READY meaning the appliance is up, actions can be issued to, and carried "
|
|
"out by, the child process."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3443
|
|
msgid ""
|
|
"The guest may be killed by L</guestfs_kill_subprocess>, or may die "
|
|
"asynchronously at any time (eg. due to some internal error), and that causes "
|
|
"the state to transition back to CONFIG."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3447
|
|
msgid ""
|
|
"Configuration commands for qemu such as L</guestfs_set_path> can only be "
|
|
"issued when in the CONFIG state."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3450
|
|
msgid ""
|
|
"The API offers one call that goes from CONFIG through LAUNCHING to READY. "
|
|
"L</guestfs_launch> blocks until the child process is READY to accept "
|
|
"commands (or until some failure or timeout). L</guestfs_launch> internally "
|
|
"moves the state from CONFIG to LAUNCHING while it is running."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3456
|
|
msgid ""
|
|
"API actions such as L</guestfs_mount> can only be issued when in the READY "
|
|
"state. These API calls block waiting for the command to be carried out. "
|
|
"There are no non-blocking versions, and no way to issue more than one "
|
|
"command per handle at the same time."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3461
|
|
msgid ""
|
|
"Finally, the child process sends asynchronous messages back to the main "
|
|
"program, such as kernel log messages. You can register a callback to "
|
|
"receive these messages."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../src/guestfs.pod:3465
|
|
msgid "INTERNALS"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:3467
|
|
msgid "APPLIANCE BOOT PROCESS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3469
|
|
msgid ""
|
|
"This process has evolved and continues to evolve. The description here "
|
|
"corresponds only to the current version of libguestfs and is provided for "
|
|
"information only."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3473
|
|
msgid ""
|
|
"In order to follow the stages involved below, enable libguestfs debugging "
|
|
"(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:3478
|
|
msgid "Create the appliance"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3480
|
|
msgid ""
|
|
"C<supermin --build> is invoked to create the kernel, a small initrd and the "
|
|
"appliance."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3483
|
|
msgid ""
|
|
"The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
|
|
"directory if C<LIBGUESTFS_CACHEDIR> or C<TMPDIR> are set)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3486
|
|
msgid ""
|
|
"For a complete description of how the appliance is created and cached, read "
|
|
"the L<supermin(1)> man page."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:3489
|
|
msgid "Start qemu and boot the kernel"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3491
|
|
msgid "qemu is invoked to boot the kernel."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:3493
|
|
msgid "Run the initrd"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3495
|
|
msgid ""
|
|
"C<supermin --build> builds a small initrd. The initrd is not the "
|
|
"appliance. The purpose of the initrd is to load enough kernel modules in "
|
|
"order that the appliance itself can be mounted and started."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3499
|
|
msgid ""
|
|
"The initrd is a cpio archive called "
|
|
"C</var/tmp/.guestfs-E<lt>UIDE<gt>/appliance.d/initrd>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3502
|
|
msgid ""
|
|
"When the initrd has started you will see messages showing that kernel "
|
|
"modules are being loaded, similar to this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3505
|
|
#, no-wrap
|
|
msgid ""
|
|
" supermin: ext2 mini initrd starting up\n"
|
|
" supermin: mounting /sys\n"
|
|
" supermin: internal insmod libcrc32c.ko\n"
|
|
" supermin: internal insmod crc32c-intel.ko\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:3510
|
|
msgid "Find and mount the appliance device"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3512
|
|
msgid ""
|
|
"The appliance is a sparse file containing an ext2 filesystem which contains "
|
|
"a familiar (although reduced in size) Linux operating system. It would "
|
|
"normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/appliance.d/root>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3517
|
|
msgid ""
|
|
"The regular disks being inspected by libguestfs are the first devices "
|
|
"exposed by qemu (eg. as C</dev/vda>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3520
|
|
msgid ""
|
|
"The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
|
|
"there was only one regular disk)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3523
|
|
msgid ""
|
|
"Thus the final job of the initrd is to locate the appliance disk, mount it, "
|
|
"and switch root into the appliance, and run C</init> from the appliance."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3527
|
|
msgid "If this works successfully you will see messages such as:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3529
|
|
#, no-wrap
|
|
msgid ""
|
|
" supermin: picked /sys/block/vdb/dev as root device\n"
|
|
" supermin: creating /dev/root as block special 252:16\n"
|
|
" supermin: mounting new root on /root\n"
|
|
" supermin: chroot\n"
|
|
" Starting /init script ...\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3535
|
|
msgid ""
|
|
"Note that C<Starting /init script ...> indicates that the appliance's init "
|
|
"script is now running."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:3538
|
|
msgid "Initialize the appliance"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3540
|
|
msgid ""
|
|
"The appliance itself now initializes itself. This involves starting certain "
|
|
"processes like C<udev>, possibly printing some debug information, and "
|
|
"finally running the daemon (C<guestfsd>)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:3544
|
|
msgid "The daemon"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3546
|
|
msgid ""
|
|
"Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you "
|
|
"should see:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3549
|
|
#, no-wrap
|
|
msgid ""
|
|
" verbose daemon enabled\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3551
|
|
msgid ""
|
|
"The daemon expects to see a named virtio-serial port exposed by qemu and "
|
|
"connected on the other end to the library."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3554
|
|
msgid ""
|
|
"The daemon connects to this port (and hence to the library) and sends a four "
|
|
"byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
|
|
"protocol (see below)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:3560
|
|
msgid "COMMUNICATION PROTOCOL"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3562
|
|
msgid ""
|
|
"Don't rely on using this protocol directly. This section documents how it "
|
|
"currently works, but it may change at any time."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3565
|
|
msgid ""
|
|
"The protocol used to talk between the library and the daemon running inside "
|
|
"the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
|
|
"1014, RFC 1832, RFC 4506)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3569
|
|
msgid ""
|
|
"The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
|
|
"this file is automatically generated)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3572
|
|
msgid ""
|
|
"There are two broad cases, ordinary functions that don't have any C<FileIn> "
|
|
"and C<FileOut> parameters, which are handled with very simple request/reply "
|
|
"messages. Then there are functions that have any C<FileIn> or C<FileOut> "
|
|
"parameters, which use the same request and reply messages, but they may also "
|
|
"be followed by files sent using a chunked encoding."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:3579
|
|
msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3581
|
|
msgid "For ordinary functions, the request message is:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3583
|
|
#, no-wrap
|
|
msgid ""
|
|
" total length (header + arguments,\n"
|
|
" but not including the length word itself)\n"
|
|
" struct guestfs_message_header (encoded as XDR)\n"
|
|
" struct guestfs_<foo>_args (encoded as XDR)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3588
|
|
msgid ""
|
|
"The total length field allows the daemon to allocate a fixed size buffer "
|
|
"into which it slurps the rest of the message. As a result, the total length "
|
|
"is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
|
|
"effective size of any request is limited to somewhere under this size."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3594
|
|
msgid ""
|
|
"Note also that many functions don't take any arguments, in which case the "
|
|
"C<guestfs_I<foo>_args> is completely omitted."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3597
|
|
msgid ""
|
|
"The header contains the procedure number (C<guestfs_proc>) which is how the "
|
|
"receiver knows what type of args structure to expect, or none at all."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3601
|
|
msgid ""
|
|
"For functions that take optional arguments, the optional arguments are "
|
|
"encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
|
|
"arguments. A bitmask in the header indicates which optional arguments are "
|
|
"meaningful. The bitmask is also checked to see if it contains bits set "
|
|
"which the daemon does not know about (eg. if more optional arguments were "
|
|
"added in a later version of the library), and this causes the call to be "
|
|
"rejected."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3609
|
|
msgid "The reply message for ordinary functions is:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3611
|
|
#, no-wrap
|
|
msgid ""
|
|
" total length (header + ret,\n"
|
|
" but not including the length word itself)\n"
|
|
" struct guestfs_message_header (encoded as XDR)\n"
|
|
" struct guestfs_<foo>_ret (encoded as XDR)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3616
|
|
msgid ""
|
|
"As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
|
|
"functions that return no formal return values."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3619
|
|
msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3622
|
|
msgid ""
|
|
"In the case of an error, a flag is set in the header, and the reply message "
|
|
"is slightly changed:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3625
|
|
#, no-wrap
|
|
msgid ""
|
|
" total length (header + error,\n"
|
|
" but not including the length word itself)\n"
|
|
" struct guestfs_message_header (encoded as XDR)\n"
|
|
" struct guestfs_message_error (encoded as XDR)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3630
|
|
msgid ""
|
|
"The C<guestfs_message_error> structure contains the error message as a "
|
|
"string."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:3633
|
|
msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3635
|
|
msgid ""
|
|
"A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
|
|
"The normal request message is sent (see above). However this is followed by "
|
|
"a sequence of file chunks."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3639
|
|
#, no-wrap
|
|
msgid ""
|
|
" total length (header + arguments,\n"
|
|
" but not including the length word itself,\n"
|
|
" and not including the chunks)\n"
|
|
" struct guestfs_message_header (encoded as XDR)\n"
|
|
" struct guestfs_<foo>_args (encoded as XDR)\n"
|
|
" sequence of chunks for FileIn param #0\n"
|
|
" sequence of chunks for FileIn param #1 etc.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3647
|
|
msgid "The \"sequence of chunks\" is:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3649
|
|
#, no-wrap
|
|
msgid ""
|
|
" length of chunk (not including length word itself)\n"
|
|
" struct guestfs_chunk (encoded as XDR)\n"
|
|
" length of chunk\n"
|
|
" struct guestfs_chunk (encoded as XDR)\n"
|
|
" ...\n"
|
|
" length of chunk\n"
|
|
" struct guestfs_chunk (with data.data_len == 0)\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3657
|
|
msgid ""
|
|
"The final chunk has the C<data_len> field set to zero. Additionally a flag "
|
|
"is set in the final chunk to indicate either successful completion or early "
|
|
"cancellation."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3661
|
|
msgid ""
|
|
"At time of writing there are no functions that have more than one FileIn "
|
|
"parameter. However this is (theoretically) supported, by sending the "
|
|
"sequence of chunks for each FileIn parameter one after another (from left to "
|
|
"right)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3666
|
|
msgid ""
|
|
"Both the library (sender) I<and> the daemon (receiver) may cancel the "
|
|
"transfer. The library does this by sending a chunk with a special flag set "
|
|
"to indicate cancellation. When the daemon sees this, it cancels the whole "
|
|
"RPC, does I<not> send any reply, and goes back to reading the next request."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3672
|
|
msgid ""
|
|
"The daemon may also cancel. It does this by writing a special word "
|
|
"C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
|
|
"the transfer, and if it gets it, it will cancel the transfer (it sends a "
|
|
"cancel chunk). The special word is chosen so that even if cancellation "
|
|
"happens right at the end of the transfer (after the library has finished "
|
|
"writing and has started listening for the reply), the \"spurious\" cancel "
|
|
"flag will not be confused with the reply message."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3681
|
|
msgid ""
|
|
"This protocol allows the transfer of arbitrary sized files (no 32 bit "
|
|
"limit), and also files where the size is not known in advance (eg. from "
|
|
"pipes or sockets). However the chunks are rather small "
|
|
"(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
|
|
"to keep much in memory."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:3687
|
|
msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3689
|
|
msgid ""
|
|
"The protocol for FileOut parameters is exactly the same as for FileIn "
|
|
"parameters, but with the roles of daemon and library reversed."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3692
|
|
#, no-wrap
|
|
msgid ""
|
|
" total length (header + ret,\n"
|
|
" but not including the length word itself,\n"
|
|
" and not including the chunks)\n"
|
|
" struct guestfs_message_header (encoded as XDR)\n"
|
|
" struct guestfs_<foo>_ret (encoded as XDR)\n"
|
|
" sequence of chunks for FileOut param #0\n"
|
|
" sequence of chunks for FileOut param #1 etc.\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:3700
|
|
msgid "INITIAL MESSAGE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3702
|
|
msgid ""
|
|
"When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
|
|
"which indicates that the guest and daemon is alive. This is what "
|
|
"L</guestfs_launch> waits for."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../src/guestfs.pod:3706
|
|
msgid "PROGRESS NOTIFICATION MESSAGES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3708
|
|
msgid ""
|
|
"The daemon may send progress notification messages at any time. These are "
|
|
"distinguished by the normal length word being replaced by "
|
|
"C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3712
|
|
msgid ""
|
|
"The library turns them into progress callbacks (see "
|
|
"L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
|
|
"them if not."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3716
|
|
msgid ""
|
|
"The daemon self-limits the frequency of progress messages it sends (see "
|
|
"C<daemon/proto.c:notify_progress>). Not all calls generate progress "
|
|
"messages."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../src/guestfs.pod:3720
|
|
msgid "LIBGUESTFS VERSION NUMBERS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3722
|
|
msgid ""
|
|
"Since April 2010, libguestfs has started to make separate development and "
|
|
"stable releases, along with corresponding branches in our git repository. "
|
|
"These separate releases can be identified by version number:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3727
|
|
#, no-wrap
|
|
msgid ""
|
|
" even numbers for stable: 1.2.x, 1.4.x, ...\n"
|
|
" .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
|
|
" |\n"
|
|
" v\n"
|
|
" 1 . 3 . 5\n"
|
|
" ^ ^\n"
|
|
" | |\n"
|
|
" | `-------- sub-version\n"
|
|
" |\n"
|
|
" `------ always '1' because we don't change the ABI\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3738
|
|
msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3740
|
|
msgid ""
|
|
"As time passes we cherry pick fixes from the development branch and backport "
|
|
"those into the stable branch, the effect being that the stable branch should "
|
|
"get more stable and less buggy over time. So the stable releases are ideal "
|
|
"for people who don't need new features but would just like the software to "
|
|
"work."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3746
|
|
msgid "Our criteria for backporting changes are:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3752
|
|
msgid ""
|
|
"Documentation changes which don't affect any code are backported unless the "
|
|
"documentation refers to a future feature which is not in stable."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3758
|
|
msgid ""
|
|
"Bug fixes which are not controversial, fix obvious problems, and have been "
|
|
"well tested are backported."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3763
|
|
msgid ""
|
|
"Simple rearrangements of code which shouldn't affect how it works get "
|
|
"backported. This is so that the code in the two branches doesn't get too "
|
|
"far out of step, allowing us to backport future fixes more easily."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3769
|
|
msgid ""
|
|
"We I<don't> backport new features, new APIs, new tools etc, except in one "
|
|
"exceptional case: the new feature is required in order to implement an "
|
|
"important bug fix."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3775
|
|
msgid ""
|
|
"A new stable branch starts when we think the new features in development are "
|
|
"substantial and compelling enough over the current stable branch to warrant "
|
|
"it. When that happens we create new stable and development versions 1.N.0 "
|
|
"and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
|
|
"stable at this point, but by backporting fixes from development, that branch "
|
|
"will stabilize over time."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../src/guestfs.pod:3783
|
|
msgid "EXTENDING LIBGUESTFS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3785
|
|
msgid "This section is for hackers who want to extend libguestfs itself."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:3787
|
|
msgid "OVERVIEW OF THE SOURCE CODE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3789
|
|
msgid ""
|
|
"Libguestfs source is located in the github repository "
|
|
"L<https://github.com/libguestfs/libguestfs>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3792
|
|
msgid ""
|
|
"Large amounts of boilerplate code in libguestfs (RPC, bindings, "
|
|
"documentation) are generated. This means that many source files will appear "
|
|
"to be missing from a straightforward git checkout. You have to run the "
|
|
"generator (C<./autogen.sh && make -C generator>) in order to create those "
|
|
"files."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3798
|
|
msgid ""
|
|
"Libguestfs uses an autotools-based build system, with the main files being "
|
|
"C<configure.ac> and C<Makefile.am>. The C<generator> subdirectory contains "
|
|
"the generator, plus files describing the API. The C<src> subdirectory "
|
|
"contains source for the library. The C<appliance> and C<daemon> "
|
|
"subdirectories contain the source for the code that builds the appliance, "
|
|
"and the code that runs in the appliance respectively. Other directories are "
|
|
"covered in the section L<SOURCE CODE SUBDIRECTORIES> below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3807
|
|
msgid ""
|
|
"Apart from the fact that all API entry points go via some generated code, "
|
|
"the library is straightforward. (In fact, even the generated code is "
|
|
"designed to be readable, and should be read as ordinary code). Some actions "
|
|
"run entirely in the library, and are written as C functions in files under "
|
|
"C<src>. Others are forwarded to the daemon where (after some generated RPC "
|
|
"marshalling) they appear as C functions in files under C<daemon>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3815
|
|
msgid "To build from source, first read the C<README> file."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:3817
|
|
msgid "C<local*> FILES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3819
|
|
msgid ""
|
|
"Files in the top source directory that begin with the prefix C<local*> are "
|
|
"ignored by git. These files can contain local configuration or scripts that "
|
|
"you need to build libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3823
|
|
msgid ""
|
|
"By convention, I have a file called C<localconfigure> which is a simple "
|
|
"wrapper around C<autogen.sh> containing local configure customizations that "
|
|
"I need:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3827
|
|
#, no-wrap
|
|
msgid ""
|
|
" . localenv\n"
|
|
" ./autogen.sh \\\n"
|
|
" --with-default-backend=libvirt \\\n"
|
|
" --enable-gcc-warnings \\\n"
|
|
" --enable-gtk-doc \\\n"
|
|
" -C \\\n"
|
|
" \"$@\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3835
|
|
msgid "So I can use this to build libguestfs:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3837
|
|
#, no-wrap
|
|
msgid ""
|
|
" ./localconfigure && make\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3839
|
|
msgid ""
|
|
"If there is a file in the top build directory called C<localenv>, then it "
|
|
"will be sourced by C<make>. This file can contain any local environment "
|
|
"variables needed, eg. for skipping tests:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3843
|
|
#, no-wrap
|
|
msgid ""
|
|
" # Use an alternate python binary.\n"
|
|
" export PYTHON=python3\n"
|
|
" # Skip this test, it is broken.\n"
|
|
" export SKIP_TEST_BTRFS_FSCK=1\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3848
|
|
msgid ""
|
|
"Note that C<localenv> is included by the top Makefile (so it's a Makefile "
|
|
"fragment). But if it is also sourced by your C<localconfigure> script then "
|
|
"it is used as a shell script."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:3852
|
|
msgid "ADDING A NEW API ACTION"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3854
|
|
msgid ""
|
|
"Because large amounts of boilerplate code in libguestfs are generated, this "
|
|
"makes it easy to extend the libguestfs API."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3857
|
|
msgid "To add a new API action there are two changes:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3863
|
|
msgid ""
|
|
"You need to add a description of the call (name, parameters, return type, "
|
|
"tests, documentation) to C<generator/actions.ml>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3866
|
|
msgid ""
|
|
"There are two sorts of API action, depending on whether the call goes "
|
|
"through to the daemon in the appliance, or is serviced entirely by the "
|
|
"library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
|
|
"former, since the sync is done in the appliance. L</guestfs_set_trace> is "
|
|
"an example of the latter, since a trace flag is maintained in the handle and "
|
|
"all tracing is done on the library side."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3874
|
|
msgid ""
|
|
"Most new actions are of the first type, and get added to the "
|
|
"C<daemon_functions> list. Each function has a unique procedure number used "
|
|
"in the RPC protocol which is assigned to that action when we publish "
|
|
"libguestfs and cannot be reused. Take the latest procedure number and "
|
|
"increment it."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3880
|
|
msgid ""
|
|
"For library-only actions of the second type, add to the "
|
|
"C<non_daemon_functions> list. Since these functions are serviced by the "
|
|
"library and do not travel over the RPC mechanism to the daemon, these "
|
|
"functions do not need a procedure number, and so the procedure number is set "
|
|
"to C<-1>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3888
|
|
msgid "Implement the action (in C):"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3890
|
|
msgid ""
|
|
"For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
|
|
"C<daemon/> directory."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3893
|
|
msgid ""
|
|
"For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
|
|
"(note: double underscore) in the C<src/> directory."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3896
|
|
msgid "In either case, use another function as an example of what to do."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3900
|
|
msgid "After making these changes, use C<make> to compile."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3902
|
|
msgid ""
|
|
"Note that you don't need to implement the RPC, language bindings, manual "
|
|
"pages or anything else. It's all automatically generated from the OCaml "
|
|
"description."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:3906
|
|
msgid "ADDING TESTS FOR AN API ACTION"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3908
|
|
msgid ""
|
|
"You can supply zero or as many tests as you want per API call. The tests "
|
|
"can either be added as part of the API description "
|
|
"(C<generator/actions.ml>), or in some rarer cases you may want to drop a "
|
|
"script into C<tests/*/>. Note that adding a script to C<tests/*/> is "
|
|
"slower, so if possible use the first method."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3914
|
|
msgid ""
|
|
"The following describes the test environment used when you add an API test "
|
|
"in C<actions.ml>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3917
|
|
msgid "The test environment has 4 block devices:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:3921
|
|
msgid "C</dev/sda> 500MB"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3923
|
|
msgid "General block device for testing."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:3925
|
|
msgid "C</dev/sdb> 50MB"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3927
|
|
msgid ""
|
|
"C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
|
|
"operations."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:3930
|
|
msgid "C</dev/sdc> 10MB"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3932
|
|
msgid "Used in a few tests where two block devices are needed."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:3934
|
|
msgid "C</dev/sdd>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3936
|
|
msgid "ISO with fixed content (see C<images/test.iso>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3940
|
|
msgid ""
|
|
"To be able to run the tests in a reasonable amount of time, the libguestfs "
|
|
"appliance and block devices are reused between tests. So don't try testing "
|
|
"L</guestfs_kill_subprocess> :-x"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3944
|
|
msgid ""
|
|
"Each test starts with an initial scenario, selected using one of the "
|
|
"C<Init*> expressions, described in C<generator/types.ml>. These initialize "
|
|
"the disks mentioned above in a particular way as documented in C<types.ml>. "
|
|
"You should not assume anything about the previous contents of other disks "
|
|
"that are not initialized."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3950
|
|
msgid ""
|
|
"You can add a prerequisite clause to any individual test. This is a "
|
|
"run-time check, which, if it fails, causes the test to be skipped. Useful "
|
|
"if testing a command which might not work on all variations of libguestfs "
|
|
"builds. A test that has prerequisite of C<Always> means to run "
|
|
"unconditionally."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3956
|
|
msgid ""
|
|
"In addition, packagers can skip individual tests by setting environment "
|
|
"variables before running C<make check>."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3959
|
|
#, no-wrap
|
|
msgid ""
|
|
" SKIP_TEST_<CMD>_<NUM>=1\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3961
|
|
msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3965
|
|
#, no-wrap
|
|
msgid ""
|
|
" SKIP_TEST_<CMD>=1\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3967
|
|
msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3969
|
|
msgid "Packagers can run only certain tests by setting for example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:3971
|
|
#, no-wrap
|
|
msgid ""
|
|
" TEST_ONLY=\"vfs_type zerofree\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3973
|
|
msgid ""
|
|
"See C<tests/c-api/tests.c> for more details of how these environment "
|
|
"variables work."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:3976
|
|
msgid "DEBUGGING NEW API ACTIONS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3978
|
|
msgid "Test new actions work before submitting them."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3980
|
|
msgid "You can use guestfish to try out new commands."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3982
|
|
msgid ""
|
|
"Debugging the daemon is a problem because it runs inside a minimal "
|
|
"environment. However you can fprintf messages in the daemon to stderr, and "
|
|
"they will show up if you use C<guestfish -v>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:3986
|
|
msgid "ADDING A NEW LANGUAGE BINDING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3988
|
|
msgid ""
|
|
"All language bindings must be generated by the generator (see the "
|
|
"C<generator> subdirectory)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3991
|
|
msgid ""
|
|
"There is no documentation for this yet. We suggest you look at an existing "
|
|
"binding, eg. C<generator/ocaml.ml> or C<generator/perl.ml>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:3995
|
|
msgid "ADDING TESTS FOR LANGUAGE BINDINGS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:3997
|
|
msgid ""
|
|
"Language bindings should come with tests. Previously testing of language "
|
|
"bindings was rather ad-hoc, but we have been trying to formalize the set of "
|
|
"tests that every language binding should use."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4001
|
|
msgid ""
|
|
"Currently only the OCaml and Perl bindings actually implement the full set "
|
|
"of tests, and the OCaml bindings are canonical, so you should emulate what "
|
|
"the OCaml tests do."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4005
|
|
msgid "This is the numbering scheme used by the tests:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:4007
|
|
#, no-wrap
|
|
msgid ""
|
|
" - 000+ basic tests:\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:4009
|
|
#, no-wrap
|
|
msgid ""
|
|
" 010 load the library\n"
|
|
" 020 create\n"
|
|
" 030 create-flags\n"
|
|
" 040 create multiple handles\n"
|
|
" 050 test setting and getting config properties\n"
|
|
" 060 explicit close\n"
|
|
" 070 optargs\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:4017
|
|
#, no-wrap
|
|
msgid ""
|
|
" - 100 launch, create partitions and LVs and filesystems\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:4019
|
|
#, no-wrap
|
|
msgid ""
|
|
" - 400+ events:\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:4021
|
|
#, no-wrap
|
|
msgid ""
|
|
" 410 close event\n"
|
|
" 420 log messages\n"
|
|
" 430 progress messages\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:4025
|
|
#, no-wrap
|
|
msgid ""
|
|
" - 800+ regression tests (specific to the language)\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:4027
|
|
#, no-wrap
|
|
msgid ""
|
|
" - 900+ any other custom tests for the language\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4029
|
|
msgid ""
|
|
"To save time when running the tests, only 100, 430, 800+, 900+ should launch "
|
|
"the handle."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:4032
|
|
msgid "FORMATTING CODE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4034
|
|
msgid ""
|
|
"Our C source code generally adheres to some basic code-formatting "
|
|
"conventions. The existing code base is not totally consistent on this "
|
|
"front, but we do prefer that contributed code be formatted similarly. In "
|
|
"short, use spaces-not-TABs for indentation, use 2 spaces for each "
|
|
"indentation level, and other than that, follow the K&R style."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4040
|
|
msgid ""
|
|
"If you use Emacs, add the following to one of one of your start-up files "
|
|
"(e.g., ~/.emacs), to help ensure that you get indentation right:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:4043
|
|
#, no-wrap
|
|
msgid ""
|
|
" ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
|
|
" ;;; Exceptions: Makefile and ChangeLog modes.\n"
|
|
" (add-hook 'find-file-hook\n"
|
|
" '(lambda () (if (and buffer-file-name\n"
|
|
" (string-match \"/libguestfs\\\\>\"\n"
|
|
" (buffer-file-name))\n"
|
|
" (not (string-equal mode-name \"Change Log\"))\n"
|
|
" (not (string-equal mode-name \"Makefile\")))\n"
|
|
" (setq indent-tabs-mode nil))))\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:4053
|
|
#, no-wrap
|
|
msgid ""
|
|
" ;;; When editing C sources in libguestfs, use this style.\n"
|
|
" (defun libguestfs-c-mode ()\n"
|
|
" \"C mode with adjusted defaults for use with libguestfs.\"\n"
|
|
" (interactive)\n"
|
|
" (c-set-style \"K&R\")\n"
|
|
" (setq c-indent-level 2)\n"
|
|
" (setq c-basic-offset 2))\n"
|
|
" (add-hook 'c-mode-hook\n"
|
|
" '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
|
|
" (buffer-file-name))\n"
|
|
" (libguestfs-c-mode))))\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:4065
|
|
msgid "TESTING YOUR CHANGES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4067
|
|
msgid "Enable warnings when compiling (and fix any problems this finds):"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:4070
|
|
#, no-wrap
|
|
msgid ""
|
|
" ./configure --enable-gcc-warnings\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4072
|
|
msgid "Useful targets are:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4076
|
|
msgid "C<make check>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4078
|
|
msgid "Runs the regular test suite."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4080
|
|
msgid ""
|
|
"This is implemented using the regular automake C<TESTS> target. See the "
|
|
"automake documentation for details."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4083
|
|
msgid "C<make syntax-check -j1 -k>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4085
|
|
msgid "Checks for various syntax and style problems in the code."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4087
|
|
msgid "C<make check-valgrind>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4089
|
|
msgid "Runs a subset of the test suite under valgrind."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4091
|
|
msgid ""
|
|
"Any C<Makefile.am> in the tree that has a C<check-valgrind:> target will be "
|
|
"run by this rule."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4094
|
|
msgid "C<make check-valgrind-local-guests>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4096
|
|
msgid ""
|
|
"Runs a subset of the test suite under valgrind using locally installed "
|
|
"libvirt guests (read-only)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4099
|
|
msgid "C<make check-direct>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4101
|
|
msgid ""
|
|
"Runs all tests using default appliance back-end. This only has any effect "
|
|
"if a non-default backend was selected using C<./configure "
|
|
"--with-default-backend=...>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4105
|
|
msgid "C<make check-valgrind-direct>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4107
|
|
msgid ""
|
|
"Run a subset of the test suite under valgrind using the default appliance "
|
|
"back-end."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4110
|
|
msgid "C<make check-uml>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4112
|
|
msgid "Runs all tests using the User-Mode Linux backend."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4114
|
|
msgid ""
|
|
"As there is no standard location for the User-Mode Linux kernel, you I<have> "
|
|
"to set C<LIBGUESTFS_HV> to point to the kernel image, eg:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:4117
|
|
#, no-wrap
|
|
msgid ""
|
|
" make check-uml LIBGUESTFS_HV=~/d/linux-um/vmlinux\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4119
|
|
msgid "C<make check-valgrind-uml>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4121
|
|
msgid "Runs all tests using the User-Mode Linux backend, under valgrind."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4123
|
|
msgid "As above, you have to set C<LIBGUESTFS_HV> to point to the kernel."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4125
|
|
msgid "C<make check-with-upstream-qemu>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4127
|
|
msgid ""
|
|
"Runs all tests using a local qemu binary. It looks for the qemu binary in "
|
|
"QEMUDIR (defaults to C<$HOME/d/qemu>), but you can set this to another "
|
|
"directory on the command line, eg:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:4131
|
|
#, no-wrap
|
|
msgid ""
|
|
" make check-with-upstream-qemu QEMUDIR=/usr/src/qemu\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4133
|
|
msgid "C<make check-with-upstream-libvirt>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4135
|
|
msgid ""
|
|
"Runs all tests using a local libvirt. This only has any effect if the "
|
|
"libvirt backend was selected using C<./configure "
|
|
"--with-default-backend=libvirt>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4139
|
|
msgid ""
|
|
"It looks for libvirt in LIBVIRTDIR (defaults to C<$HOME/d/libvirt>), but you "
|
|
"can set this to another directory on the command line, eg:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:4142
|
|
#, no-wrap
|
|
msgid ""
|
|
" make check-with-upstream-libvirt LIBVIRTDIR=/usr/src/libvirt\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4144
|
|
msgid "C<make check-slow>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4146
|
|
msgid "Runs some slow/long-running tests which are not run by default."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4148
|
|
msgid ""
|
|
"Any C<Makefile.am> in the tree that has a C<check-slow:> target will be run "
|
|
"by this rule."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4151
|
|
msgid "C<make check-all>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4153
|
|
msgid "Equivalent to running all C<make check*> rules."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4155
|
|
msgid "C<make check-release>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4157
|
|
msgid ""
|
|
"Runs a subset of C<make check*> rules that are required to pass before a "
|
|
"tarball can be released. Currently this is:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4164
|
|
msgid "check"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4168
|
|
msgid "check-valgrind"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4172
|
|
msgid "check-direct"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4176
|
|
msgid "check-valgrind-direct"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4180
|
|
msgid "check-uml"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4184
|
|
msgid "check-valgrind-uml"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4188
|
|
msgid "check-slow"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:4194
|
|
msgid "DAEMON CUSTOM PRINTF FORMATTERS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4196
|
|
msgid ""
|
|
"In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
|
|
"which are used to do shell quoting."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4201
|
|
msgid "%Q"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4203
|
|
msgid ""
|
|
"Simple shell quoted string. Any spaces or other shell characters are "
|
|
"escaped for you."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4206
|
|
msgid "%R"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4208
|
|
msgid ""
|
|
"Same as C<%Q> except the string is treated as a path which is prefixed by "
|
|
"the sysroot."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:4215
|
|
#, no-wrap
|
|
msgid ""
|
|
" asprintf (&cmd, \"cat %R\", path);\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4217
|
|
msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4219
|
|
msgid ""
|
|
"I<Note:> Do I<not> use these when you are passing parameters to the "
|
|
"C<command{,r,v,rv}()> functions. These parameters do NOT need to be quoted "
|
|
"because they are not passed via the shell (instead, straight to exec). You "
|
|
"probably want to use the C<sysroot_path()> function however."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:4225
|
|
msgid "SUBMITTING YOUR NEW API ACTIONS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4227
|
|
msgid ""
|
|
"Submit patches to the mailing list: "
|
|
"L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
|
|
"L<rjones@redhat.com>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:4231
|
|
msgid "INTERNATIONALIZATION (I18N) SUPPORT"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4233
|
|
msgid "We support i18n (gettext anyhow) in the library."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4235
|
|
msgid ""
|
|
"However many messages come from the daemon, and we don't translate those at "
|
|
"the moment. One reason is that the appliance generally has all locale files "
|
|
"removed from it, because they take up a lot of space. So we'd have to readd "
|
|
"some of those, as well as copying our PO files into the appliance."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4241
|
|
msgid ""
|
|
"Debugging messages are never translated, since they are intended for the "
|
|
"programmers."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:4244
|
|
msgid "SOURCE CODE SUBDIRECTORIES"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4248
|
|
msgid "C<align>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4250
|
|
msgid "L<virt-alignment-scan(1)> command and documentation."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4254
|
|
msgid "The libguestfs appliance, build scripts and so on."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4256
|
|
msgid "C<bash>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4258
|
|
msgid "Bash tab-completion scripts."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4260
|
|
msgid "C<build-aux>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4262
|
|
msgid "Various build scripts used by autotools."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4264
|
|
msgid "C<builder>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4266
|
|
msgid "L<virt-builder(1)> command and documentation."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4268
|
|
msgid "C<cat>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4270
|
|
msgid ""
|
|
"The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
|
|
"documentation."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4273
|
|
msgid "C<contrib>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4275
|
|
msgid "Outside contributions, experimental parts."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4277
|
|
msgid "C<daemon>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4279
|
|
msgid ""
|
|
"The daemon that runs inside the libguestfs appliance and carries out "
|
|
"actions."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4282
|
|
msgid "C<df>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4284
|
|
msgid "L<virt-df(1)> command and documentation."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4286
|
|
msgid "C<diff>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4288
|
|
msgid "L<virt-diff(1)> command and documentation."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4290
|
|
msgid "C<edit>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4292
|
|
msgid "L<virt-edit(1)> command and documentation."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4294
|
|
msgid "C<examples>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4296
|
|
msgid "C API example code."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4298
|
|
msgid "C<fish>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4300
|
|
msgid ""
|
|
"L<guestfish(1)>, the command-line shell, and various shell scripts built on "
|
|
"top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
|
|
"L<virt-tar-out(1)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4306
|
|
msgid "L<virt-format(1)> command and documentation."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4308
|
|
msgid "C<fuse>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4310
|
|
msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4312
|
|
msgid "C<generator>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4314
|
|
msgid ""
|
|
"The crucially important generator, used to automatically generate large "
|
|
"amounts of boilerplate C code for things like RPC and bindings."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4317
|
|
msgid "C<gnulib>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4319
|
|
msgid ""
|
|
"Gnulib is used as a portability library. A copy of gnulib is included under "
|
|
"here."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4322
|
|
msgid "C<html>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4324
|
|
msgid "Generated HTML manual pages."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4326
|
|
msgid "C<inspector>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4328
|
|
msgid "L<virt-inspector(1)>, the virtual machine image inspector."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4330
|
|
msgid "C<logo>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4332
|
|
msgid "Logo used on the website. The fish is called Arthur by the way."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4334
|
|
msgid "C<m4>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4336
|
|
msgid "M4 macros used by autoconf."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4338
|
|
msgid "C<make-fs>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4340
|
|
msgid "L<virt-make-fs(1)> command and documentation."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4342
|
|
msgid "C<mllib>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4344
|
|
msgid ""
|
|
"Various libraries and common code used by L<virt-resize(1)> and the other "
|
|
"tools which are written in OCaml."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4347
|
|
msgid "C<po>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4349
|
|
msgid "Translations of simple gettext strings."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4351
|
|
msgid "C<po-docs>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4353
|
|
msgid ""
|
|
"The build infrastructure and PO files for translations of manpages and POD "
|
|
"files. Eventually this will be combined with the C<po> directory, but that "
|
|
"is rather complicated."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4357
|
|
msgid "C<rescue>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4359
|
|
msgid "L<virt-rescue(1)> command and documentation."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4361
|
|
msgid "C<resize>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4363
|
|
msgid "L<virt-resize(1)> command and documentation."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4365
|
|
msgid "C<sparsify>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4367
|
|
msgid "L<virt-sparsify(1)> command and documentation."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4369
|
|
msgid "C<src>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4371
|
|
msgid "Source code to the C library."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4373
|
|
msgid "C<sysprep>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4375
|
|
msgid "L<virt-sysprep(1)> command and documentation."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4377
|
|
msgid "C<tests>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4379
|
|
msgid "Tests."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4381
|
|
msgid "C<test-tool>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4383
|
|
msgid ""
|
|
"Test tool for end users to test if their qemu/kernel combination will work "
|
|
"with libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4386
|
|
msgid "C<tmp>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4388
|
|
msgid ""
|
|
"Used for temporary files when running the tests (instead of C</tmp> etc). "
|
|
"The reason is so that you can run multiple parallel tests of libguestfs "
|
|
"without having one set of tests overwriting the appliance created by "
|
|
"another."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4393
|
|
msgid "C<tools>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4395
|
|
msgid "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4397
|
|
msgid "C<csharp>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4399
|
|
msgid "C<erlang>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4401
|
|
msgid "C<gobject>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4403
|
|
msgid "C<golang>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4405
|
|
msgid "C<haskell>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4407
|
|
msgid "C<java>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4409
|
|
msgid "C<lua>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4411
|
|
msgid "C<ocaml>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4413
|
|
msgid "C<php>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4415
|
|
msgid "C<perl>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4417
|
|
msgid "C<python>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../src/guestfs.pod:4419
|
|
msgid "C<ruby>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4421
|
|
msgid "Language bindings."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:4425
|
|
msgid "MAKING A STABLE RELEASE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4427
|
|
msgid ""
|
|
"When we make a stable release, there are several steps documented here. See "
|
|
"L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
|
|
"branch policy."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4435
|
|
msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4440
|
|
msgid "Finalize C<guestfs-release-notes.pod>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4444
|
|
msgid "Update ROADMAP."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4448
|
|
msgid "Run C<src/api-support/update-from-tarballs.sh>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4452
|
|
msgid "Push and pull from Transifex."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:4456
|
|
#, no-wrap
|
|
msgid ""
|
|
" tx push -s\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4458
|
|
msgid "to push the latest POT files to Transifex. Then run:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:4460
|
|
#, no-wrap
|
|
msgid ""
|
|
" ./tx-pull.sh\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4462
|
|
msgid "which is a wrapper to pull the latest translated C<*.po> files."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4466
|
|
msgid "Consider updating gnulib to latest upstream version."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4470
|
|
msgid ""
|
|
"Create new stable and development directories under "
|
|
"L<http://libguestfs.org/download>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4475
|
|
msgid "Edit C<index.html.in> on website."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4479
|
|
msgid "Create the branch in git:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../src/guestfs.pod:4481
|
|
#, no-wrap
|
|
msgid ""
|
|
" git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
|
|
" git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
|
|
" git branch stable-1.XX\n"
|
|
" git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../src/guestfs.pod:4488
|
|
msgid "LIMITS"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:4490
|
|
msgid "PROTOCOL LIMITS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4492
|
|
msgid ""
|
|
"Internally libguestfs uses a message-based protocol to pass API calls and "
|
|
"their responses to and from a small \"appliance\" (see L</INTERNALS> for "
|
|
"plenty more detail about this). The maximum message size used by the "
|
|
"protocol is slightly less than 4 MB. For some API calls you may need to be "
|
|
"aware of this limit. The API calls which may be affected are individually "
|
|
"documented, with a link back to this section of the documentation."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4500
|
|
msgid ""
|
|
"In libguestfs E<lt> 1.19.32, several calls had to encode either their entire "
|
|
"argument list or their entire return value (or sometimes both) in a single "
|
|
"protocol message, and this gave them an arbitrary limitation on how much "
|
|
"data they could handle. For example, L</guestfs_cat> could only download a "
|
|
"file if it was less than around 4 MB in size. In later versions of "
|
|
"libguestfs, some of these limits have been removed. The APIs which were "
|
|
"previously limited but are now unlimited (except perhaps by available "
|
|
"memory) are listed below. To find out if a specific API is subject to "
|
|
"protocol limits, check for the warning in the API documentation which links "
|
|
"to this section, and remember to check the version of the documentation that "
|
|
"matches the version of libguestfs you are using."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4513
|
|
msgid ""
|
|
"L</guestfs_cat>, L</guestfs_find>, L</guestfs_read_file>, "
|
|
"L</guestfs_read_lines>, L</guestfs_write>, L</guestfs_write_append>, "
|
|
"L</guestfs_lstatlist>, L</guestfs_lxattrlist>, L</guestfs_readlinklist>, "
|
|
"L</guestfs_ls>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4518
|
|
msgid ""
|
|
"See also L</UPLOADING> and L</DOWNLOADING> for further information about "
|
|
"copying large amounts of data into or out of a filesystem."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:4521
|
|
msgid "MAXIMUM NUMBER OF DISKS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4523
|
|
msgid ""
|
|
"In libguestfs E<ge> 1.19.7, you can query the maximum number of disks that "
|
|
"may be added by calling L</guestfs_max_disks>. In earlier versions of "
|
|
"libguestfs (ie. where this call is not available) you should assume the "
|
|
"maximum is 25."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4528
|
|
msgid ""
|
|
"The rest of this section covers implementation details, which could change "
|
|
"in future."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4531
|
|
msgid ""
|
|
"When using virtio-scsi disks (the default if available in qemu) the current "
|
|
"limit is B<255> disks. When using virtio-blk (the old default) the limit is "
|
|
"around B<27> disks, but may vary according to implementation details and "
|
|
"whether the network is enabled."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4536
|
|
msgid ""
|
|
"Virtio-scsi as used by libguestfs is configured to use one target per disk, "
|
|
"and 256 targets are available."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4539
|
|
msgid ""
|
|
"Virtio-blk consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
|
|
"slots, but some of these are used for other purposes."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4542
|
|
msgid "One virtual disk is used by libguestfs internally."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4544
|
|
msgid ""
|
|
"Before libguestfs 1.19.7, disk names had to be a single character "
|
|
"(eg. C</dev/sda> through C</dev/sdz>), and since one disk is reserved, that "
|
|
"meant the limit was 25. This has been fixed in more recent versions."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4549
|
|
msgid ""
|
|
"In libguestfs E<ge> 1.20 it is possible to hot plug disks. See "
|
|
"L</HOTPLUGGING>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:4552
|
|
msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4554
|
|
msgid "Virtio limits the maximum number of partitions per disk to B<15>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4556
|
|
msgid ""
|
|
"This is because it reserves 4 bits for the minor device number (thus "
|
|
"C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4559
|
|
msgid ""
|
|
"If you attach a disk with more than 15 partitions, the extra partitions are "
|
|
"ignored by libguestfs."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:4562
|
|
msgid "MAXIMUM SIZE OF A DISK"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4564
|
|
msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4566
|
|
msgid ""
|
|
"We have tested block devices up to 1 exabyte (2**60 or "
|
|
"1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
|
|
"filesystem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4570
|
|
msgid ""
|
|
"Although libguestfs probably does not impose any limit, the underlying host "
|
|
"storage will. If you store disk images on a host ext4 filesystem, then the "
|
|
"maximum size will be limited by the maximum ext4 file size (currently 16 "
|
|
"TB). If you store disk images as host logical volumes then you are limited "
|
|
"by the maximum size of an LV."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4576
|
|
msgid ""
|
|
"For the hugest disk image files, we recommend using XFS on the host for "
|
|
"storage."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:4579
|
|
msgid "MAXIMUM SIZE OF A PARTITION"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4581
|
|
msgid ""
|
|
"The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
|
|
"numbers. Assuming a 512 byte sector size, this means that MBR cannot "
|
|
"address a partition located beyond 2 TB on the disk."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4585
|
|
msgid ""
|
|
"It is recommended that you use GPT partitions on disks which are larger than "
|
|
"this size. GPT uses 64 bit sector numbers and so can address partitions "
|
|
"which are theoretically larger than the largest disk we could support."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:4590
|
|
msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4592
|
|
msgid ""
|
|
"This depends on the filesystem type. libguestfs itself does not impose any "
|
|
"known limit. Consult Wikipedia or the filesystem documentation to find out "
|
|
"what these limits are."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:4596
|
|
msgid "MAXIMUM UPLOAD AND DOWNLOAD"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4598
|
|
msgid ""
|
|
"The API functions L</guestfs_upload>, L</guestfs_download>, "
|
|
"L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
|
|
"uploads and downloads."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../src/guestfs.pod:4602
|
|
msgid "INSPECTION LIMITS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4604
|
|
msgid ""
|
|
"The inspection code has several arbitrary limits on things like the size of "
|
|
"Windows Registry hive it will read, and the length of product name. These "
|
|
"are intended to stop a malicious guest from consuming arbitrary amounts of "
|
|
"memory and disk space on the host, and should not be reached in practice. "
|
|
"See the source code for more information."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4631
|
|
msgid ""
|
|
"Choose the default way to create the appliance. See L</guestfs_set_backend> "
|
|
"and L</BACKEND>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4636
|
|
msgid ""
|
|
"A colon-separated list of backend-specific settings. See L</BACKEND>, "
|
|
"L</BACKEND SETTINGS>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4648
|
|
msgid "See also L</LIBGUESTFS_TMPDIR>, L</guestfs_set_cachedir>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4652
|
|
msgid ""
|
|
"Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
|
|
"effect as calling C<guestfs_set_verbose (g, 1)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4661
|
|
msgid "See also L</QEMU WRAPPERS> above."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4672
|
|
msgid ""
|
|
"Set the path that libguestfs uses to search for a supermin appliance. See "
|
|
"the discussion of paths in section L</PATH> above."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4687
|
|
msgid "See also L</LIBGUESTFS_CACHEDIR>, L</guestfs_set_tmpdir>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4691
|
|
msgid ""
|
|
"Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
|
|
"effect as calling C<guestfs_set_trace (g, 1)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4696
|
|
msgid ""
|
|
"Libguestfs may run some external programs, and relies on C<$PATH> being set "
|
|
"to a reasonable value. If using the libvirt backend, libvirt will not work "
|
|
"at all unless C<$PATH> contains the path of qemu/KVM. Note that PHP by "
|
|
"default removes C<$PATH> from the environment which tends to break "
|
|
"everything."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4720
|
|
msgid ""
|
|
"L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-golang(3)>, "
|
|
"L<guestfs-java(3)>, L<guestfs-lua(3)>, L<guestfs-ocaml(3)>, "
|
|
"L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
|
|
"L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, "
|
|
"L<virt-builder(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
|
|
"L<virt-df(1)>, L<virt-diff(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
|
|
"L<virt-format(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
|
|
"L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
|
|
"L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, "
|
|
"L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
|
|
"L<virt-win-reg(1)>, L<guestfs-faq(1)>, L<guestfs-performance(1)>, "
|
|
"L<guestfs-release-notes(1)>, L<guestfs-testing(1)>, "
|
|
"L<libguestfs-test-tool(1)>, L<libguestfs-make-fixed-appliance(1)>, "
|
|
"L<supermin(1)>, L<qemu(1)>, L<hivex(3)>, L<stap(1)>, L<sd-journal(3)>, "
|
|
"L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../src/guestfs.pod:4767
|
|
msgid ""
|
|
"Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
|
|
"L<lvm(8)>, L<disktype(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/sysprep-extra-options.pod:1
|
|
msgid "B<--delete> PATHNAME (see C<delete> below)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-extra-options.pod:4
|
|
msgid "Delete (recursively) the specified C<PATHNAME> in the guest."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/sysprep-extra-options.pod:6
|
|
msgid "B<--firstboot> SCRIPT (see C<firstboot> below)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-extra-options.pod:9
|
|
msgid ""
|
|
"Run script(s) once next time the guest boots. You can supply the "
|
|
"I<--firstboot> option as many times as needed."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/sysprep-extra-options.pod:12
|
|
msgid "B<--hostname> HOSTNAME (see C<hostname> below)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-extra-options.pod:15
|
|
msgid "Change the hostname. If not given, defaults to C<localhost.localdomain>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/sysprep-extra-options.pod:17
|
|
msgid "B<--password> USERNAME:SELECTOR (see C<password> below)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-extra-options.pod:20
|
|
msgid ""
|
|
"Set a user password. The user must exist already (this option does I<not> "
|
|
"create users)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-extra-options.pod:23
|
|
msgid ""
|
|
"The I<--password> option takes C<USERNAME:SELECTOR>. The I<--root-password> "
|
|
"option takes just the C<SELECTOR>. The format of the C<SELECTOR> is "
|
|
"described below:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/sysprep-extra-options.pod:29
|
|
msgid "B<--password USERNAME:file:FILENAME>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/sysprep-extra-options.pod:31
|
|
msgid "B<--root-password file:FILENAME>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-extra-options.pod:33
|
|
msgid ""
|
|
"Read the password from C<FILENAME>. The whole first line of this file is "
|
|
"the replacement password. Any other lines are ignored. You should create "
|
|
"the file with mode 0600 to ensure no one else can read it."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/sysprep-extra-options.pod:38
|
|
msgid "B<--password USERNAME:password:PASSWORD>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/sysprep-extra-options.pod:40
|
|
msgid "B<--root-password password:PASSWORD>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-extra-options.pod:42
|
|
msgid "Set the password to the literal string C<PASSWORD>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/sysprep-extra-options.pod:47
|
|
msgid "B<--password USERNAME:random>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/sysprep-extra-options.pod:49
|
|
msgid "B<--root-password random>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/sysprep-extra-options.pod:54
|
|
msgid "B<--password> USERNAME:disabled"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-extra-options.pod:58
|
|
msgid ""
|
|
"The account password is disabled. This is like putting C<*> in the password "
|
|
"field."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/sysprep-extra-options.pod:61
|
|
msgid "B<--password> USERNAME:locked:file:FILENAME"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/sysprep-extra-options.pod:63
|
|
msgid "B<--password> USERNAME:locked:password:PASSWORD"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/sysprep-extra-options.pod:65
|
|
msgid "B<--password> USERNAME:locked:random"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-extra-options.pod:73
|
|
msgid ""
|
|
"The account is locked, but a password is placed on the account. If first "
|
|
"unlocked (using C<passwd -u>) then logins will use the given password."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/sysprep-extra-options.pod:77
|
|
msgid "B<--password> USERNAME:locked"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/sysprep-extra-options.pod:79
|
|
msgid "B<--password> USERNAME:locked:disabled"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-extra-options.pod:85
|
|
msgid "The account is locked I<and> password is disabled."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/sysprep-extra-options.pod:89
|
|
msgid "B<--password-crypto> md5|sha256|sha512 (see C<password> below)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-extra-options.pod:94
|
|
msgid ""
|
|
"C<sha256> and C<sha512> require glibc E<ge> 2.7 (check L<crypt(3)> inside "
|
|
"the guest)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/sysprep-extra-options.pod:104
|
|
msgid "B<--root-password> SELECTOR (see C<password> below)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-extra-options.pod:107
|
|
msgid ""
|
|
"Set the root password. See I<--password> above for the format of "
|
|
"C<SELECTOR>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/sysprep-extra-options.pod:110
|
|
msgid "B<--script> SCRIPT (see C<script> below)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-extra-options.pod:113
|
|
msgid ""
|
|
"Run the named C<SCRIPT> (a shell script or program) against the guest. The "
|
|
"script can be any program on the host. The script's current directory will "
|
|
"be the guest's root directory."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-extra-options.pod:117
|
|
msgid ""
|
|
"B<Note:> If the script is not on the $PATH, then you must give the full "
|
|
"absolute path to the script."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/sysprep-extra-options.pod:120
|
|
msgid "B<--scriptdir> SCRIPTDIR (see C<script> below)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-extra-options.pod:123
|
|
msgid ""
|
|
"The mount point (an empty directory on the host) used when the C<script> "
|
|
"operation is enabled and one or more scripts are specified using I<--script> "
|
|
"parameter(s)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-extra-options.pod:127
|
|
msgid "B<Note:> C<SCRIPTDIR> B<must> be an absolute path."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-extra-options.pod:129
|
|
msgid ""
|
|
"If I<--scriptdir> is not specified then a temporary mountpoint will be "
|
|
"created."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/sysprep-extra-options.pod:132
|
|
msgid "B<--scrub> PATHNAME (see C<delete> below)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-extra-options.pod:135
|
|
msgid ""
|
|
"Scrub (aggressively overwrite then remove) the specified file called "
|
|
"C<PATHNAME> in the guest. Only single files can be specified using this "
|
|
"argument."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/sysprep-extra-options.pod:139
|
|
msgid "B<--timezone> TIMEZONE (see C<timezone> below)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-extra-options.pod:142
|
|
msgid "Change the timezone. Use a location string such as C<Europe/London>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:1
|
|
msgid "B<abrt-data> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:4
|
|
msgid "Remove the crash data generated by ABRT."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:6
|
|
msgid "Remove the automatically generated ABRT crash data in C</var/spool/abrt/>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:9
|
|
msgid "B<bash-history> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:12
|
|
msgid "Remove the bash history in the guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:14
|
|
msgid ""
|
|
"Remove the bash history of user \"root\" and any other users who have a "
|
|
"C<.bash_history> file in their home directory."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../sysprep/sysprep-operations.pod:17
|
|
msgid "Notes on bash-history"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:19
|
|
msgid ""
|
|
"Currently this only looks in C</root> and C</home/*> for home directories, "
|
|
"so users with home directories in other locations won't have the bash "
|
|
"history removed."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:23
|
|
msgid "B<blkid-tab> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:26
|
|
msgid "Remove blkid tab in the guest."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:28
|
|
msgid "B<ca-certificates>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:30
|
|
msgid "Remove CA certificates in the guest."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:32
|
|
msgid "B<crash-data> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:35
|
|
msgid "Remove the crash data generated by kexec-tools."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:37
|
|
msgid "Remove the automatically generated kdump kernel crash data."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:39
|
|
msgid "B<cron-spool> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:42
|
|
msgid "Remove user at-jobs and cron-jobs."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:44
|
|
msgid "B<delete> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:47
|
|
msgid "Delete or scrub specified files or directories."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:49
|
|
msgid "Use the I<--delete> option to specify a path to remove."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:51
|
|
msgid ""
|
|
"You can use shell glob characters in the specified path; note that such "
|
|
"metacharacters might require proper escape. For example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sysprep/sysprep-operations.pod:54
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-sysprep --delete '/var/log/*.log'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:56
|
|
msgid ""
|
|
"An alternative option, I<--scrub>, can be used to scrub files. This only "
|
|
"works for files (not directories) and cannot use globs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:59
|
|
msgid "You can use both options as many times as you want."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:61
|
|
msgid "B<dhcp-client-state> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:64
|
|
msgid "Remove DHCP client leases."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:66
|
|
msgid "B<dhcp-server-state> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:69
|
|
msgid "Remove DHCP server leases."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:71
|
|
msgid "B<dovecot-data> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:74
|
|
msgid "Remove Dovecot (mail server) data."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:76
|
|
msgid "B<firewall-rules>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:78
|
|
msgid "Remove the firewall rules."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:80
|
|
msgid ""
|
|
"This removes custom firewall rules by removing C</etc/sysconfig/iptables> or "
|
|
"custom firewalld configuration in C</etc/firewalld/*/*>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:83
|
|
msgid ""
|
|
"Note this is I<not> enabled by default since it may expose guests to "
|
|
"exploits. Use with care."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:86
|
|
msgid "B<firstboot> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:89
|
|
msgid "Add scripts to run once at next boot."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:91
|
|
msgid "Supply one of more shell scripts (using the I<--firstboot> option)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:93
|
|
msgid ""
|
|
"These are run the first time the guest boots, and then are deleted. So "
|
|
"these are useful for performing last minute configuration that must run in "
|
|
"the context of the guest operating system, for example C<yum update>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:98
|
|
msgid ""
|
|
"Output or errors from the scripts are written to "
|
|
"C<~root/virt-sysprep-firstboot.log> (in the guest)."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../sysprep/sysprep-operations.pod:101
|
|
msgid "Notes on firstboot"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:103
|
|
msgid ""
|
|
"Currently this is only implemented for Linux guests using either "
|
|
"SysVinit-style scripts, Upstart or systemd."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:106
|
|
msgid "B<flag-reconfiguration>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:108
|
|
msgid "Flag the system for reconfiguration."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:110
|
|
msgid "Note that this may require user intervention when the guest is booted."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:113
|
|
msgid "B<fs-uuids>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:115
|
|
msgid "Change filesystem UUIDs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:117
|
|
msgid ""
|
|
"On guests and filesystem types where this is supported, new random UUIDs are "
|
|
"generated and assigned to filesystems."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../sysprep/sysprep-operations.pod:120
|
|
msgid "Notes on fs-uuids"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:122
|
|
msgid ""
|
|
"The fs-uuids operation is disabled by default because it does not yet find "
|
|
"and update all the places in the guest that use the UUIDs. For example "
|
|
"C</etc/fstab> or the bootloader. Enabling this operation is more likely "
|
|
"than not to make your guest unbootable."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:128
|
|
msgid "See: L<https://bugzilla.redhat.com/show_bug.cgi?id=991641>"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:130
|
|
msgid "B<hostname> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:133
|
|
msgid "Change the hostname of the guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:135
|
|
msgid ""
|
|
"This operation changes the hostname of the guest to the value given in the "
|
|
"I<--hostname> parameter."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:138
|
|
msgid ""
|
|
"If the I<--hostname> parameter is not given, then the hostname is changed to "
|
|
"C<localhost.localdomain>."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../sysprep/sysprep-operations.pod:141
|
|
msgid "Notes on hostname"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:143
|
|
msgid "Currently this can only set the hostname on Linux guests."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:145
|
|
msgid "B<kerberos-data>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:147
|
|
msgid "Remove Kerberos data in the guest."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:149
|
|
msgid "B<logfiles> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:152
|
|
msgid "Remove many log files from the guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:154
|
|
msgid "On Linux the following files are removed:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sysprep/sysprep-operations.pod:156
|
|
#, no-wrap
|
|
msgid ""
|
|
" /etc/Pegasus/*.cnf\n"
|
|
" /etc/Pegasus/*.crt\n"
|
|
" /etc/Pegasus/*.csr\n"
|
|
" /etc/Pegasus/*.pem\n"
|
|
" /etc/Pegasus/*.srl\n"
|
|
" /root/anaconda-ks.cfg\n"
|
|
" /root/anaconda-post.log\n"
|
|
" /root/install.log\n"
|
|
" /root/install.log.syslog\n"
|
|
" /var/cache/fontconfig/*\n"
|
|
" /var/cache/gdm/*\n"
|
|
" /var/cache/man/*\n"
|
|
" /var/lib/AccountService/users/*\n"
|
|
" /var/lib/fprint/*\n"
|
|
" /var/lib/logrotate.status\n"
|
|
" /var/log/*.log*\n"
|
|
" /var/log/BackupPC/LOG\n"
|
|
" /var/log/anaconda.syslog\n"
|
|
" /var/log/apache2/*_log\n"
|
|
" /var/log/apache2/*_log-*\n"
|
|
" /var/log/audit/*\n"
|
|
" /var/log/btmp*\n"
|
|
" /var/log/ceph/*.log\n"
|
|
" /var/log/chrony/*.log\n"
|
|
" /var/log/cron*\n"
|
|
" /var/log/cups/*_log\n"
|
|
" /var/log/dmesg*\n"
|
|
" /var/log/gdm/*\n"
|
|
" /var/log/glusterfs/*glusterd.vol.log\n"
|
|
" /var/log/glusterfs/glusterfs.log\n"
|
|
" /var/log/httpd/*log\n"
|
|
" /var/log/jetty/jetty-console.log\n"
|
|
" /var/log/lastlog*\n"
|
|
" /var/log/libvirt/libvirtd.log\n"
|
|
" /var/log/libvirt/lxc/*.log\n"
|
|
" /var/log/libvirt/qemu/*.log\n"
|
|
" /var/log/libvirt/uml/*.log\n"
|
|
" /var/log/mail/*\n"
|
|
" /var/log/maillog*\n"
|
|
" /var/log/messages*\n"
|
|
" /var/log/ntp\n"
|
|
" /var/log/ntpstats/*\n"
|
|
" /var/log/ppp/connect-errors\n"
|
|
" /var/log/rhsm/*\n"
|
|
" /var/log/sa/*\n"
|
|
" /var/log/secure*\n"
|
|
" /var/log/setroubleshoot/*.log\n"
|
|
" /var/log/spooler*\n"
|
|
" /var/log/squid/*.log\n"
|
|
" /var/log/tallylog*\n"
|
|
" /var/log/tuned/tuned.log\n"
|
|
" /var/log/wtmp*\n"
|
|
" /var/named/data/named.run\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:210
|
|
msgid "B<lvm-uuids> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:213
|
|
msgid "Change LVM2 PV and VG UUIDs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:215
|
|
msgid ""
|
|
"On Linux guests that have LVM2 physical volumes (PVs) or volume groups "
|
|
"(VGs), new random UUIDs are generated and assigned to those PVs and VGs."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:218
|
|
msgid "B<machine-id> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:221
|
|
msgid "Remove the local machine ID."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:223
|
|
msgid ""
|
|
"The machine ID is usually generated from a random source during system "
|
|
"installation and stays constant for all subsequent boots. Optionally, for "
|
|
"stateless systems it is generated during runtime at boot if it is found to "
|
|
"be empty."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:228
|
|
msgid "B<mail-spool> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:231
|
|
msgid "Remove email from the local mail spool directory."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:233
|
|
msgid "B<net-hostname> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:236
|
|
msgid "Remove HOSTNAME in network interface configuration."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:238 ../sysprep/sysprep-operations.pod:246
|
|
msgid ""
|
|
"For Fedora and Red Hat Enterprise Linux, this is removed from C<ifcfg-*> "
|
|
"files."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:241
|
|
msgid "B<net-hwaddr> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:244
|
|
msgid "Remove HWADDR (hard-coded MAC address) configuration."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:249
|
|
msgid "B<pacct-log> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:252
|
|
msgid "Remove the process accounting log files."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:254
|
|
msgid ""
|
|
"The system wide process accounting will store to the pacct log files if the "
|
|
"process accounting is on."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:257
|
|
msgid "B<package-manager-cache> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:260
|
|
msgid "Remove package manager cache."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:262
|
|
msgid "B<pam-data> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:265
|
|
msgid "Remove the PAM data in the guest."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:267
|
|
msgid "B<password> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:270
|
|
msgid "Set root or user password."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:272
|
|
msgid "Set root or another user's password."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:274
|
|
msgid ""
|
|
"Use the I<--root-password> option to specify a replacement root password for "
|
|
"the guest. You can only use this option once."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:277
|
|
msgid ""
|
|
"Use the I<--password> option to specify replacement user password(s). You "
|
|
"can use this option as many times as you want."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:280
|
|
msgid "Use I<--password-crypto> to change the password encryption used."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:282
|
|
msgid "See L</OPTIONS> above for details of these options."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:284
|
|
msgid ""
|
|
"This operation is enabled by default, but it only does something if there is "
|
|
"at least one I<--root-password> or I<--password> argument given."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../sysprep/sysprep-operations.pod:288
|
|
msgid "Notes on password"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:290
|
|
msgid ""
|
|
"Currently this only works for glibc-based Linux guests that use shadow "
|
|
"passwords."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:293
|
|
msgid "B<puppet-data-log> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:296
|
|
msgid "Remove the data and log files of puppet."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:298
|
|
msgid "B<random-seed> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:301
|
|
msgid "Generate random seed for guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:303
|
|
msgid ""
|
|
"Write some random bytes from the host into the random seed file of the "
|
|
"guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:306
|
|
msgid "See L</RANDOM SEED> below."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:308
|
|
msgid "B<rh-subscription-manager> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:311
|
|
msgid "Remove the RH subscription manager files."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:313
|
|
msgid "B<rhn-systemid> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:316
|
|
msgid "Remove the RHN system ID."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:318
|
|
msgid "B<rpm-db> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:321
|
|
msgid "Remove host-specific RPM database files."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:323
|
|
msgid ""
|
|
"Remove host-specific RPM database files and locks. RPM will recreate these "
|
|
"files automatically if needed."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:326
|
|
msgid "B<samba-db-log> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:329
|
|
msgid "Remove the database and log files of Samba."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:331
|
|
msgid "B<script> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:334
|
|
msgid "Run arbitrary scripts against the guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:336
|
|
msgid ""
|
|
"The C<script> module lets you run arbitrary shell scripts or programs "
|
|
"against the guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:339
|
|
msgid ""
|
|
"Note this feature requires FUSE support. You may have to enable this in "
|
|
"your host, for example by adding the current user to the C<fuse> group, or "
|
|
"by loading a kernel module."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:343
|
|
msgid ""
|
|
"Use one or more I<--script> parameters to specify scripts or programs that "
|
|
"will be run against the guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:346
|
|
msgid ""
|
|
"The script or program is run with its current directory being the guest's "
|
|
"root directory, so relative paths should be used. For example: C<rm "
|
|
"etc/resolv.conf> in the script would remove a Linux guest's DNS "
|
|
"configuration file, but C<rm /etc/resolv.conf> would (try to) remove the "
|
|
"host's file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:352
|
|
msgid ""
|
|
"Normally a temporary mount point for the guest is used, but you can choose a "
|
|
"specific one by using the I<--scriptdir> parameter."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:355
|
|
msgid ""
|
|
"B<Note:> This is different from I<--firstboot> scripts (which run in the "
|
|
"context of the guest when it is booting first time). I<--script> scripts "
|
|
"run on the host, not in the guest."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:359
|
|
msgid "B<smolt-uuid> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:362
|
|
msgid "Remove the Smolt hardware UUID."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:364
|
|
msgid "B<ssh-hostkeys> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:367
|
|
msgid "Remove the SSH host keys in the guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:369
|
|
msgid ""
|
|
"The SSH host keys are regenerated (differently) next time the guest is "
|
|
"booted."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:372
|
|
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
|
|
#: ../sysprep/sysprep-operations.pod:375
|
|
#, 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
|
|
#: ../sysprep/sysprep-operations.pod:380
|
|
msgid "B<ssh-userdir> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:383
|
|
msgid "Remove \".ssh\" directories in the guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:385
|
|
msgid ""
|
|
"Remove the C<.ssh> directory of user \"root\" and any other users who have a "
|
|
"C<.ssh> directory in their home directory."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../sysprep/sysprep-operations.pod:388
|
|
msgid "Notes on ssh-userdir"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:390
|
|
msgid ""
|
|
"Currently this only looks in C</root> and C</home/*> for home directories, "
|
|
"so users with home directories in other locations won't have the ssh files "
|
|
"removed."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:394
|
|
msgid "B<sssd-db-log> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:397
|
|
msgid "Remove the database and log files of sssd."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:399
|
|
msgid "B<timezone> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:402
|
|
msgid "Change the default timezone of the guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:404
|
|
msgid ""
|
|
"This operation changes the default timezone of the guest to the value given "
|
|
"in the I<--timezone> parameter."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:407
|
|
msgid ""
|
|
"If the I<--timezone> parameter is not given, then the timezone is not "
|
|
"changed."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:410
|
|
msgid ""
|
|
"This parameter affects the default timezone that users see when they log in, "
|
|
"but they can still change their timezone per-user account."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../sysprep/sysprep-operations.pod:413
|
|
msgid "Notes on timezone"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:415
|
|
msgid "Currently this can only set the timezone on Linux guests."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:417
|
|
msgid "B<tmp-files> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:420
|
|
msgid "Remove temporary files."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:422
|
|
msgid "This removes temporary files under C</tmp> and C</var/tmp>."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:424
|
|
msgid "B<udev-persistent-net> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:427
|
|
msgid "Remove udev persistent net rules."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:429
|
|
msgid ""
|
|
"Remove udev persistent net rules which map the guest's existing MAC address "
|
|
"to a fixed ethernet device (eg. eth0)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:432
|
|
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
|
|
#: ../sysprep/sysprep-operations.pod:437
|
|
msgid "B<user-account>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:439
|
|
msgid "Remove the user accounts in the guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:441
|
|
msgid ""
|
|
"Remove all the user accounts and their home directories. The \"root\" "
|
|
"account is not removed."
|
|
msgstr ""
|
|
|
|
#. type: =head3
|
|
#: ../sysprep/sysprep-operations.pod:444
|
|
msgid "Notes on user-account"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:446
|
|
msgid ""
|
|
"Currently this does not remove the user accounts from C</etc/shadow>. This "
|
|
"is because there is no lens for the shadow password file in Augeas."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/sysprep-operations.pod:450
|
|
msgid "B<utmp> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:453
|
|
msgid "Remove the utmp file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:455
|
|
msgid ""
|
|
"This file 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
|
|
#: ../sysprep/sysprep-operations.pod:459
|
|
msgid "B<yum-uuid> *"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:462
|
|
msgid "Remove the yum UUID."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/sysprep-operations.pod:464
|
|
msgid ""
|
|
"Yum creates a fresh UUID the next time it runs when it notices that the "
|
|
"original UUID has been erased."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:5
|
|
msgid ""
|
|
"virt-sysprep - Reset, unconfigure or customize a virtual machine so clones "
|
|
"can be made"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sysprep/virt-sysprep.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-sysprep [--options] -d domname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sysprep/virt-sysprep.pod:11
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:15
|
|
msgid ""
|
|
"Virt-sysprep can reset or unconfigure a virtual machine so that clones can "
|
|
"be made from it. Steps in this process include removing SSH host keys, "
|
|
"removing persistent network MAC configuration, and removing user accounts. "
|
|
"Virt-sysprep can also customize a virtual machine, for instance by adding "
|
|
"SSH keys, users or logos. Each step can be enabled or disabled as required."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:22
|
|
msgid ""
|
|
"Virt-sysprep modifies the guest or disk image I<in place>. The guest must "
|
|
"be shut down. If you want to preserve the existing contents of the guest, "
|
|
"I<you must snapshot, copy or clone the disk first>. See L</COPYING AND "
|
|
"CLONING> below."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:27
|
|
msgid ""
|
|
"You do I<not> 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
|
|
#: ../sysprep/virt-sysprep.pod:33
|
|
msgid ""
|
|
"\"Sysprep\" stands for \"system preparation\" tool. The name comes from the "
|
|
"Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
|
|
"machines in preparation for cloning them. Having said that, virt-sysprep "
|
|
"does I<not> 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: textblock
|
|
#: ../sysprep/virt-sysprep.pod:54
|
|
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: textblock
|
|
#: ../sysprep/virt-sysprep.pod:61
|
|
msgid ""
|
|
"Add a remote disk. The URI format is compatible with guestfish. See "
|
|
"L<guestfish(1)/ADDING REMOTE STORAGE>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/virt-sysprep.pod:64
|
|
msgid "B<--autorelabel>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/virt-sysprep.pod:66
|
|
msgid "B<--no-autorelabel>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:68
|
|
msgid ""
|
|
"I<--autorelabel> forces SELinux relabelling next time the guest boots. "
|
|
"I<--no-autorelabel> disables relabelling."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:71
|
|
msgid ""
|
|
"The default is to try to detect if SELinux relabelling is required. See "
|
|
"L</SELINUX RELABELLING> below for more details."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/virt-sysprep.pod:93
|
|
msgid "B<--dry-run>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:95
|
|
msgid ""
|
|
"Perform a read-only \"dry run\" on the guest. This runs the sysprep "
|
|
"operation, but throws away any changes to the disk at the end."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/virt-sysprep.pod:98
|
|
msgid "B<--enable> operations"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:100 ../sysprep/virt-sysprep.pod:124
|
|
msgid ""
|
|
"Choose which sysprep operations to perform. Give a comma-separated list of "
|
|
"operations, for example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sysprep/virt-sysprep.pod:103
|
|
#, no-wrap
|
|
msgid ""
|
|
" --enable ssh-hostkeys,udev-persistent-net\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:105 ../sysprep/virt-sysprep.pod:129
|
|
msgid "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:107
|
|
msgid ""
|
|
"If the I<--enable> option is not given, then we default to trying most "
|
|
"sysprep operations (see I<--list-operations> to show which are enabled)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:111
|
|
msgid ""
|
|
"Regardless of the I<--enable> option, sysprep operations are skipped for "
|
|
"some guest types."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:114 ../sysprep/virt-sysprep.pod:155
|
|
msgid ""
|
|
"Use I<--list-operations> to list operations supported by a particular "
|
|
"version of virt-sysprep."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:117 ../sysprep/virt-sysprep.pod:158
|
|
msgid "See L</OPERATIONS> below for a list and an explanation of each operation."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/virt-sysprep.pod:120
|
|
msgid "B<--operation> operations"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/virt-sysprep.pod:122
|
|
msgid "B<--operations> operations"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sysprep/virt-sysprep.pod:127
|
|
#, no-wrap
|
|
msgid ""
|
|
" --operations ssh-hostkeys,udev-persistent-net\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:131
|
|
msgid ""
|
|
"I<--operations> allows you to enable and disable any operation, including "
|
|
"the default ones (which would be tried when specifying neither "
|
|
"I<--operations> nor I<--enable>) and all the available ones; prepending a "
|
|
"C<-> in front of an operation name removes it from the list of enabled "
|
|
"operations, while the meta-names C<defaults> and C<all> represent "
|
|
"respectively the operations enabled by default and all the available ones. "
|
|
"For example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sysprep/virt-sysprep.pod:139
|
|
#, no-wrap
|
|
msgid ""
|
|
" --operations delete,defaults,-hostname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:141
|
|
msgid ""
|
|
"would enable the C<delete> operation (regardless whether it is enabled by "
|
|
"default), all the default ones, and disable the C<hostname> operation."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:144
|
|
msgid ""
|
|
"I<--operations> can be specified multiple times; the first time the set of "
|
|
"enabled operations is empty, while any further I<--operations> affects the "
|
|
"operations enabled so far."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:148
|
|
msgid ""
|
|
"If the I<--operations> option is not given, then we default to trying most "
|
|
"sysprep operations (see I<--list-operations> to show which are enabled)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:152
|
|
msgid ""
|
|
"Regardless of the I<--operations> option, sysprep operations are skipped for "
|
|
"some guest types."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/virt-sysprep.pod:161
|
|
msgid "B<--format> raw|qcow2|.."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/virt-sysprep.pod:163
|
|
msgid "B<--format> auto"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:165
|
|
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 "
|
|
"the command line. Using I<--format auto> switches back to auto-detection "
|
|
"for subsequent I<-a> options."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sysprep/virt-sysprep.pod:172
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-sysprep --format raw -a disk.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sysprep/virt-sysprep.pod:176
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-sysprep --format raw -a disk.img --format auto -a another.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/virt-sysprep.pod:185
|
|
msgid "B<--list-operations>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:187
|
|
msgid "List the operations supported by the virt-sysprep program."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:189
|
|
msgid ""
|
|
"These are listed one per line, with one or more single-space-separated "
|
|
"fields, eg:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sysprep/virt-sysprep.pod:192
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ virt-sysprep --list-operations\n"
|
|
" bash-history * Remove the bash history in the guest\n"
|
|
" cron-spool * Remove user at-jobs and cron-jobs\n"
|
|
" dhcp-client-state * Remove DHCP client leases\n"
|
|
" dhcp-server-state * Remove DHCP server leases\n"
|
|
" [etc]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:199
|
|
msgid ""
|
|
"The first field is the operation name, which can be supplied to "
|
|
"I<--enable>. The second field is a C<*> character if the operation is "
|
|
"enabled by default or blank if not. Subsequent fields on the same line are "
|
|
"the description of the operation."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:204
|
|
msgid ""
|
|
"Before libguestfs 1.17.33 only the first (operation name) field was shown "
|
|
"and all operations were enabled by default."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/virt-sysprep.pod:207
|
|
msgid "B<--mount-options> mp:opts[;mp:opts;...]"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:209
|
|
msgid ""
|
|
"Set the mount options for each mountpoint in the guest. Use a "
|
|
"semicolon-separated list of C<mountpoint:options> pairs. You may need to "
|
|
"quote this list to protect it from the shell."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sysprep/virt-sysprep.pod:215
|
|
#, no-wrap
|
|
msgid ""
|
|
" --mount-options \"/:noatime\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:217
|
|
msgid "will mount the root directory with C<notime>. This example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sysprep/virt-sysprep.pod:219
|
|
#, no-wrap
|
|
msgid ""
|
|
" --mount-options \"/:noatime;/var:rw,nodiratime\"\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:221
|
|
msgid "will do the same, plus mount C</var> with C<rw,nodiratime>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:227
|
|
msgid "Don't print log messages."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:229
|
|
msgid "To enable detailed logging of individual file operations, use I<-x>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:247
|
|
msgid "__EXTRA_OPTIONS__"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../sysprep/virt-sysprep.pod:251
|
|
msgid "OPERATIONS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:253
|
|
msgid ""
|
|
"If the I<--enable>/I<--operations> option is I<not> given, then most sysprep "
|
|
"operations are enabled."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:256
|
|
msgid ""
|
|
"Use C<virt-sysprep --list-operations> to list all operations for your "
|
|
"virt-sysprep binary. The ones which are enabled by default are marked with "
|
|
"a C<*> character. Regardless of the I<--enable>/I<--operations> options, "
|
|
"sysprep operations are skipped for some guest types."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:261
|
|
msgid ""
|
|
"Operations can be individually enabled using the I<--enable>/I<--operations> "
|
|
"options. Use a comma-separated list, for example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sysprep/virt-sysprep.pod:265
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-sysprep --operations=ssh-hostkeys,udev-persistent-net [etc..]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:267
|
|
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: textblock
|
|
#: ../sysprep/virt-sysprep.pod:271
|
|
msgid ""
|
|
"C<*> = enabled by default when no I<--enable>/I<--operations> option is "
|
|
"given."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:274
|
|
msgid "__OPERATIONS__"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../sysprep/virt-sysprep.pod:276
|
|
msgid "COPYING AND CLONING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:278
|
|
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
|
|
#: ../sysprep/virt-sysprep.pod:283
|
|
msgid "A virtual machine (when switched off) consists of two parts:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/virt-sysprep.pod:287
|
|
msgid "I<configuration>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:289
|
|
msgid ""
|
|
"The configuration or description of the guest. eg. The libvirt XML (see "
|
|
"C<virsh dumpxml>), the running configuration of the guest, or another "
|
|
"external format like OVF."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:293
|
|
msgid "Some configuration items that might need to be changed:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:299
|
|
msgid "name"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:303 ../sysprep/virt-sysprep.pod:330
|
|
msgid "UUID"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:307
|
|
msgid "path to block device(s)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:311
|
|
msgid "network card MAC address"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../sysprep/virt-sysprep.pod:315
|
|
msgid "I<block device(s)>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:317
|
|
msgid ""
|
|
"One or more hard disk images, themselves containing files, directories, "
|
|
"applications, kernels, configuration, etc."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:320
|
|
msgid "Some things inside the block devices that might need to be changed:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:326
|
|
msgid "hostname and other net configuration"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:334
|
|
msgid "SSH host keys"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:338
|
|
msgid "Windows unique security ID (SID)"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:342
|
|
msgid "Puppet registration"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/virt-sysprep.pod:348
|
|
msgid "COPYING THE BLOCK DEVICE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:350
|
|
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
|
|
#: ../sysprep/virt-sysprep.pod:355
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-sysprep\n"
|
|
" |\n"
|
|
" v\n"
|
|
" original guest --------> template ---------->\n"
|
|
" \\------> cloned\n"
|
|
" \\-----> guests\n"
|
|
" \\---->\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:363
|
|
msgid ""
|
|
"You can, of course, just copy the block device on the host using L<cp(1)> or "
|
|
"L<dd(1)>."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sysprep/virt-sysprep.pod:366
|
|
#, no-wrap
|
|
msgid ""
|
|
" dd dd\n"
|
|
" original guest --------> template ---------->\n"
|
|
" \\------> cloned\n"
|
|
" \\-----> guests\n"
|
|
" \\---->\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:372
|
|
msgid "There are some smarter (and faster) ways too:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sysprep/virt-sysprep.pod:374
|
|
#, no-wrap
|
|
msgid ""
|
|
" snapshot\n"
|
|
" template ---------->\n"
|
|
" \\------> cloned\n"
|
|
" \\-----> guests\n"
|
|
" \\---->\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:380
|
|
msgid ""
|
|
"You may want to run virt-sysprep twice, once to reset the guest (to make a "
|
|
"template) and a second time to customize the guest for a specific user:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sysprep/virt-sysprep.pod:384
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-sysprep virt-sysprep\n"
|
|
" (reset) (add user, keys, logos)\n"
|
|
" | |\n"
|
|
" dd v dd v\n"
|
|
" original guest ----> template ---------> copied ------> custom\n"
|
|
" template guest\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:395
|
|
msgid "Create a snapshot using qemu-img:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sysprep/virt-sysprep.pod:397
|
|
#, no-wrap
|
|
msgid ""
|
|
" qemu-img create -f qcow2 -o backing_file=original snapshot.qcow\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:399
|
|
msgid ""
|
|
"The advantage is that you don't need to copy the original (very fast) and "
|
|
"only changes are stored (less storage required)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:402
|
|
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
|
|
#: ../sysprep/virt-sysprep.pod:407
|
|
msgid "Create a snapshot using C<lvcreate --snapshot>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:411
|
|
msgid ""
|
|
"Other ways to create snapshots include using filesystems-level tools (for "
|
|
"filesystems such as btrfs)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:414
|
|
msgid ""
|
|
"Most Network Attached Storage (NAS) devices can also create cheap snapshots "
|
|
"from files or LUNs."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:419
|
|
msgid ""
|
|
"Get your NAS to duplicate the LUN. Most NAS devices can also duplicate LUNs "
|
|
"very cheaply (they copy them on-demand in the background)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:425
|
|
msgid "Prepare your template using L<virt-sparsify(1)>. See below."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/virt-sysprep.pod:429
|
|
msgid "VIRT-CLONE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:431
|
|
msgid ""
|
|
"A separate tool, L<virt-clone(1)>, 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
|
|
#: ../sysprep/virt-sysprep.pod:436
|
|
msgid ""
|
|
"L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
|
|
"image. This was the original motivation to write virt-sysprep."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/virt-sysprep.pod:439
|
|
msgid "SPARSIFY"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sysprep/virt-sysprep.pod:441
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-sparsify\n"
|
|
" original guest --------> template\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:444
|
|
msgid ""
|
|
"L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
|
|
"it easier to compress and/or faster to copy."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:447
|
|
msgid ""
|
|
"Notice that since virt-sparsify also copies the image, you can use it to "
|
|
"make the initial copy (instead of C<dd>)."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/virt-sysprep.pod:450
|
|
msgid "RESIZE"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sysprep/virt-sysprep.pod:452
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-resize\n"
|
|
" template ---------->\n"
|
|
" \\------> cloned\n"
|
|
" \\-----> guests\n"
|
|
" \\---->\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:458
|
|
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(1)>. Virt-resize performs a copy and resize, and thus is "
|
|
"ideal for cloning guests from a template."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../sysprep/virt-sysprep.pod:464
|
|
msgid "FIRSTBOOT VS SCRIPT"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:466
|
|
msgid ""
|
|
"The two options I<--firstboot> and I<--script> both supply shell scripts "
|
|
"that are run against the guest. However these two options are significantly "
|
|
"different."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:470
|
|
msgid ""
|
|
"I<--firstboot script> uploads the file C<script> into the guest and arranges "
|
|
"that it will run, in the guest, when the guest is next booted. (The script "
|
|
"will only run once, at the \"first boot\")."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:474
|
|
msgid ""
|
|
"I<--script script> runs the shell C<script> I<on the host>, with its current "
|
|
"directory inside the guest filesystem."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:477
|
|
msgid ""
|
|
"If you needed, for example, to C<yum install> new packages, then you I<must "
|
|
"not> use I<--script> for this, since that would (a) run the C<yum> command "
|
|
"on the host and (b) wouldn't have access to the same resources "
|
|
"(repositories, keys, etc.) as the guest. Any command that needs to run on "
|
|
"the guest I<must> be run via I<--firstboot>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:483
|
|
msgid ""
|
|
"On the other hand if you need to make adjustments to the guest filesystem "
|
|
"(eg. copying in files), then I<--script> is ideal since (a) it has access "
|
|
"to the host filesystem and (b) you will get immediate feedback on errors."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:488
|
|
msgid "Either or both options can be used multiple times on the command line."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:492
|
|
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</OPERATIONS> "
|
|
"above and the guest afterwards."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:496
|
|
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. The "
|
|
"I<--scrub> option can be used to scrub files instead of just deleting them. "
|
|
"L<virt-sparsify(1)> is another way to remove this content. See also the "
|
|
"L<scrub(1)> command to get rid of deleted content in directory entries and "
|
|
"inodes."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/virt-sysprep.pod:503
|
|
msgid "RANDOM SEED"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:505
|
|
msgid "I<(This section applies to Linux guests only)>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:507
|
|
msgid ""
|
|
"The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
|
|
"from the host into the guest's random seed file."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:510
|
|
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
|
|
#: ../sysprep/virt-sysprep.pod:514
|
|
msgid ""
|
|
"Therefore you should arrange to add more randomness I<after> cloning from a "
|
|
"template too, which can be done by just enabling the C<random-seed> "
|
|
"operation:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../sysprep/virt-sysprep.pod:518
|
|
#, no-wrap
|
|
msgid ""
|
|
" cp template.img newguest.img\n"
|
|
" virt-sysprep --enable random-seed -a newguest.img\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../sysprep/virt-sysprep.pod:521
|
|
msgid "SELINUX RELABELLING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:523
|
|
msgid "I<(This section applies to Linux guests using SELinux only)>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:525
|
|
msgid ""
|
|
"If any new files are created by virt-sysprep, then virt-sysprep touches "
|
|
"C</.autorelabel> 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
|
|
#: ../sysprep/virt-sysprep.pod:530
|
|
msgid ""
|
|
"You can force relabelling for all guests by supplying the I<--autorelabel> "
|
|
"option."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:533
|
|
msgid ""
|
|
"You can disable relabelling entirely by supplying the I<--no-autorelabel> "
|
|
"option."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:538
|
|
msgid ""
|
|
"Windows 8 \"fast startup\" can prevent virt-sysprep from working. See "
|
|
"L<guestfs(3)/WINDOWS HIBERNATION AND WINDOWS 8 FAST STARTUP>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:550
|
|
msgid "This program returns 0 on success, or 1 if there was an error."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:554
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfish(1)>, L<virt-builder(1)>, L<virt-clone(1)>, "
|
|
"L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, "
|
|
"L<lvcreate(8)>, L<qemu-img(1)>, L<scrub(1)>, L<http://libguestfs.org/>, "
|
|
"L<http://libvirt.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:572
|
|
msgid "Wanlong Gao, Fujitsu Ltd."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../sysprep/virt-sysprep.pod:578
|
|
msgid "Copyright (C) 2012 Fujitsu Ltd."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:5
|
|
msgid "libguestfs-test-tool - Diagnostics for libguestfs"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../test-tool/libguestfs-test-tool.pod:9
|
|
#, no-wrap
|
|
msgid ""
|
|
" libguestfs-test-tool [--options]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:13
|
|
msgid ""
|
|
"libguestfs-test-tool is a test program shipped with libguestfs to allow you "
|
|
"to check basic libguestfs functionality is working. This is needed because "
|
|
"libguestfs occasionally breaks for reasons beyond our control: usually "
|
|
"because of changes in the underlying qemu or kernel packages, or the host "
|
|
"environment."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:19
|
|
msgid "If you suspect a problem in libguestfs, then just run:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:23
|
|
msgid "It will print lots of diagnostic messages."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:25
|
|
msgid "If it runs to completion successfully, you will see this near the end:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../test-tool/libguestfs-test-tool.pod:27
|
|
#, no-wrap
|
|
msgid ""
|
|
" ===== TEST FINISHED OK =====\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:29
|
|
msgid "and the test tool will exit with code 0."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:31
|
|
msgid ""
|
|
"If it fails (and/or exits with non-zero error code), please paste the "
|
|
"I<complete, unedited> output of the test tool into a bug report. More "
|
|
"information about reporting bugs can be found on the "
|
|
"L<http://libguestfs.org/> website."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../test-tool/libguestfs-test-tool.pod:44
|
|
msgid "B<--qemu qemu_binary>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:46
|
|
msgid ""
|
|
"If you have downloaded another qemu binary, point this option at the full "
|
|
"path of the binary to try it."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../test-tool/libguestfs-test-tool.pod:49
|
|
msgid "B<--qemudir qemu_source_dir>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:51
|
|
msgid ""
|
|
"If you have compiled qemu from source, point this option at the source "
|
|
"directory to try it."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../test-tool/libguestfs-test-tool.pod:54
|
|
msgid "B<-t N>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../test-tool/libguestfs-test-tool.pod:56
|
|
msgid "B<--timeout N>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:58
|
|
msgid ""
|
|
"Set the launch timeout to C<N> seconds. The default is 600 seconds (10 "
|
|
"minutes) which does not usually need to be adjusted."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:65
|
|
msgid "Display the libguestfs version number and exit."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../test-tool/libguestfs-test-tool.pod:69
|
|
msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:71
|
|
msgid ""
|
|
"If you have compiled another version of qemu from source and would like to "
|
|
"try that, then you can use the I<--qemudir> option to point to the qemu "
|
|
"source directory."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:75
|
|
msgid ""
|
|
"If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
|
|
"option to point to the binary."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:78
|
|
msgid ""
|
|
"Note when using these options, you can ignore the business of qemu wrapper "
|
|
"scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
|
|
"wrapper script for you if one is needed."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../test-tool/libguestfs-test-tool.pod:82
|
|
msgid "TRYING OUT A DIFFERENT KERNEL"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:84
|
|
msgid ""
|
|
"If you are using supermin / febootstrap E<ge> 3.8 then you can select which "
|
|
"kernel libguestfs tries. You do this by setting the environment variables "
|
|
"C<SUPERMIN_KERNEL> and/or C<SUPERMIN_MODULES> (C<FEBOOTSTRAP_KERNEL> and "
|
|
"C<FEBOOTSTRAP_MODULES> if still using the old febootstrap 3.21 program)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:90
|
|
msgid "Refer to L<supermin(1)/ENVIRONMENT VARIABLES> for further information."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../test-tool/libguestfs-test-tool.pod:92
|
|
msgid "TRYING OUT A DIFFERENT VERSION OF LIBVIRT"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:94 ../test-tool/libguestfs-test-tool.pod:115 ../test-tool/libguestfs-test-tool.pod:138
|
|
msgid "To find out which backend is the default in your libguestfs package, do:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:100
|
|
msgid ""
|
|
"If you are using the libvirt backend, then you can try out a different "
|
|
"(eg. upstream) version of libvirt by running these commands (I<not> as "
|
|
"root):"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../test-tool/libguestfs-test-tool.pod:104
|
|
#, no-wrap
|
|
msgid ""
|
|
" killall libvirtd lt-libvirtd\n"
|
|
" ~/path/to/libvirt/run libguestfs-test-tool\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:107
|
|
msgid ""
|
|
"The first command kills any session C<libvirtd> process(es) that may be "
|
|
"running on the machine. The second command uses libvirt's C<run> script (in "
|
|
"the top-level libvirt build directory) to set some environment variables so "
|
|
"that the alternate version of libvirt is used to run the program."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../test-tool/libguestfs-test-tool.pod:113
|
|
msgid "TRYING OUT WITH / WITHOUT LIBVIRT"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:121
|
|
msgid ""
|
|
"If you are using the libvirt backend, you can try without (ie. libguestfs "
|
|
"directly launching qemu) by doing:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:126
|
|
msgid "Or if you are using the default (direct) backend, then you can try libvirt:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../test-tool/libguestfs-test-tool.pod:129
|
|
#, no-wrap
|
|
msgid ""
|
|
" export LIBGUESTFS_BACKEND=libvirt\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:131
|
|
msgid "or with libvirt and a specific L<libvirt URI|http://libvirt.org/uri.html>:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../test-tool/libguestfs-test-tool.pod:134
|
|
#, no-wrap
|
|
msgid ""
|
|
" export LIBGUESTFS_BACKEND=libvirt:qemu:///session\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../test-tool/libguestfs-test-tool.pod:136
|
|
msgid "TRYING OUT DIFFERENT SELINUX SETTINGS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:144
|
|
msgid "To find out if SELinux is being used, do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../test-tool/libguestfs-test-tool.pod:146
|
|
#, no-wrap
|
|
msgid ""
|
|
" getenforce\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:148
|
|
msgid ""
|
|
"If you are using libvirt, SELinux and sVirt, then you can try to see if "
|
|
"changing SELinux to \"permissive\" mode makes any difference. Use this "
|
|
"command as root:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../test-tool/libguestfs-test-tool.pod:152
|
|
#, no-wrap
|
|
msgid ""
|
|
" setenforce Permissive\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:154
|
|
msgid ""
|
|
"If this makes a difference, look in the audit logs for recent failures "
|
|
"(\"AVCs\"):"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../test-tool/libguestfs-test-tool.pod:157
|
|
#, no-wrap
|
|
msgid ""
|
|
" ausearch -m avc -ts recent\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:159
|
|
msgid ""
|
|
"You can convert AVCs into suggested SELinux policy rules using tools like "
|
|
"L<audit2allow(1)>. For more information, see the \"Security Enhanced Linux "
|
|
"User Guide\"."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:163
|
|
msgid "To reenable SELinux and sVirt, do:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../test-tool/libguestfs-test-tool.pod:165
|
|
#, no-wrap
|
|
msgid ""
|
|
" setenforce Enforcing\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../test-tool/libguestfs-test-tool.pod:167
|
|
msgid "SELF-DIAGNOSIS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:169
|
|
msgid ""
|
|
"Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
|
|
"produced by libguestfs-test-tool and/or possible errors."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:174
|
|
msgid ""
|
|
"libguestfs-test-tool returns I<0> if the tests completed without error, or "
|
|
"I<1> if there was an error."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../test-tool/libguestfs-test-tool.pod:184
|
|
msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-list-filesystems:31
|
|
msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-list-filesystems:35
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-list-filesystems [--options] domname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-list-filesystems:37
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-list-filesystems [--options] disk.img [disk.img ...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../tools/virt-list-filesystems:39 ../tools/virt-list-partitions:39 ../tools/virt-tar:44
|
|
msgid "OBSOLETE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-list-filesystems:41 ../tools/virt-list-partitions:41
|
|
msgid ""
|
|
"This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
|
|
"replacement."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-list-filesystems:46
|
|
msgid ""
|
|
"C<virt-list-filesystems> is a command line tool to list the filesystems that "
|
|
"are contained in a virtual machine or disk image."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-list-filesystems:50
|
|
msgid ""
|
|
"C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
|
|
"functionality. For more complex cases you should look at the "
|
|
"L<guestfish(1)> tool."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-list-filesystems:113
|
|
msgid ""
|
|
"With this option, C<virt-list-filesystems> displays the type of each "
|
|
"filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../tools/virt-list-filesystems:120
|
|
msgid "B<-a>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-list-filesystems:124
|
|
msgid ""
|
|
"Normally we only show mountable filesystems. If this option is given then "
|
|
"swap devices are shown too."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-list-filesystems:192
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
|
|
"L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
|
|
"L<Sys::Virt(3)>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-list-filesystems:208 ../tools/virt-tar:321
|
|
msgid "Copyright (C) 2009 Red Hat Inc."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-list-partitions:31
|
|
msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-list-partitions:35
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-list-partitions [--options] domname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-list-partitions:37
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-list-partitions [--options] disk.img [disk.img ...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-list-partitions:46
|
|
msgid ""
|
|
"C<virt-list-partitions> is a command line tool to list the partitions that "
|
|
"are contained in a virtual machine or disk image. It is mainly useful as a "
|
|
"first step to using L<virt-resize(1)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-list-partitions:51
|
|
msgid ""
|
|
"C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
|
|
"functionality. For more complex cases you should look at the "
|
|
"L<guestfish(1)> tool."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-list-partitions:114
|
|
msgid "Show sizes in human-readable form (eg. \"1G\")."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-list-partitions:124
|
|
msgid ""
|
|
"With this option, C<virt-list-partitions> displays the type and size of each "
|
|
"partition too (where \"type\" means C<ext3>, C<pv> etc.)"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../tools/virt-list-partitions:131
|
|
msgid "B<-t>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../tools/virt-list-partitions:133
|
|
msgid "B<--total>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-list-partitions:135
|
|
msgid "Display the total size of each block device (as a separate row or rows)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-list-partitions:274
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
|
|
"L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
|
|
"L<Sys::Virt(3)>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-tar:32
|
|
msgid "virt-tar - Extract or upload files to a virtual machine"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-tar:36
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-tar [--options] -x domname directory tarball\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-tar:38
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-tar [--options] -u domname tarball directory\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-tar:40
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-tar:42
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-tar:46
|
|
msgid ""
|
|
"This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
|
|
"L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-tar:51
|
|
msgid "Download C</home> from the VM into a local tarball:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-tar:53
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-tar -x domname /home home.tar\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-tar:55
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-tar -zx domname /home home.tar.gz\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-tar:57
|
|
msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-tar:59
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-tar -u domname uploadstuff.tar /tmp\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-tar:61
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-tar:65
|
|
msgid ""
|
|
"You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
|
|
"virtual machines. If you do this, you risk disk corruption in the VM. "
|
|
"C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-tar:70
|
|
msgid ""
|
|
"You can use I<-x> (extract) on live virtual machines, but you might get "
|
|
"inconsistent results or errors if there is filesystem activity inside the "
|
|
"VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
|
|
"work, but the only way to guarantee consistent results is if the virtual "
|
|
"machine is shut down."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-tar:78
|
|
msgid ""
|
|
"C<virt-tar> is a general purpose archive tool for downloading and uploading "
|
|
"parts of a guest filesystem. There are many possibilities: making backups, "
|
|
"uploading data files, snooping on guest activity, fixing or customizing "
|
|
"guests, etc."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-tar:83
|
|
msgid ""
|
|
"If you want to just view a single file, use L<virt-cat(1)>. If you just "
|
|
"want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
|
|
"should look at the L<guestfish(1)> tool."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-tar:87
|
|
msgid ""
|
|
"There are two modes of operation: I<-x> (eXtract) downloads a directory and "
|
|
"its contents (recursively) from the virtual machine into a local tarball. "
|
|
"I<-u> uploads from a local tarball, unpacking it into a directory inside the "
|
|
"virtual machine. You cannot use these two options together."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-tar:93
|
|
msgid ""
|
|
"In addition, you may need to use the I<-z> (gZip) option to enable "
|
|
"compression. When uploading, you have to specify I<-z> if the upload file "
|
|
"is compressed because virt-tar won't detect this on its own."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-tar:97
|
|
msgid ""
|
|
"C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
|
|
"example it cannot do PKZip files or bzip2 compression. If you want that "
|
|
"then you'll have to rebuild the tarballs yourself. (This is a limitation of "
|
|
"the L<libguestfs(3)> API)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../tools/virt-tar:159
|
|
msgid "B<--extract>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../tools/virt-tar:161
|
|
msgid "B<--download>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../tools/virt-tar:163
|
|
msgid "B<-u>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../tools/virt-tar:165
|
|
msgid "B<--upload>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-tar:167
|
|
msgid ""
|
|
"Use I<-x> to extract (download) a directory from a virtual machine to a "
|
|
"local tarball."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-tar:170
|
|
msgid ""
|
|
"Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
|
|
"Please read the L</WARNING> section above before using this option."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-tar:174
|
|
msgid "You must specify exactly one of these options."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../tools/virt-tar:180
|
|
msgid "B<-z>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../tools/virt-tar:182
|
|
msgid "B<--gzip>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-tar:184
|
|
msgid "Specify that the input or output tarball is gzip-compressed."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-tar:303
|
|
msgid ""
|
|
"L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
|
|
"L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
|
|
"L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Virt(3)>, "
|
|
"L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:36
|
|
msgid ""
|
|
"virt-win-reg - Export and merge Windows Registry entries from a Windows "
|
|
"guest"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-win-reg:40
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-win-reg:42
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-win-reg:44
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-win-reg:46
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-win-reg --merge domname [input.reg ...]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-win-reg:48
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-win-reg [--options] disk.img ... # instead of domname\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:52
|
|
msgid ""
|
|
"You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
|
|
"virtual machines. If you do this, you I<will> get irreversible disk "
|
|
"corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
|
|
"but doesn't catch all cases."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:57
|
|
msgid ""
|
|
"Modifying the Windows Registry is an inherently risky operation. The format "
|
|
"is deliberately obscure and undocumented, and Registry changes can leave the "
|
|
"system unbootable. Therefore when using the I<--merge> option, make sure "
|
|
"you have a reliable backup first."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:64
|
|
msgid ""
|
|
"This program can export and merge Windows Registry entries from a Windows "
|
|
"guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:67
|
|
msgid ""
|
|
"The first parameter is the libvirt guest name or the raw disk image of a "
|
|
"Windows guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:70
|
|
msgid ""
|
|
"If I<--merge> is I<not> specified, then the chosen registry key is "
|
|
"displayed/exported (recursively). For example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-win-reg:73
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:75
|
|
msgid "You can also display single values from within registry keys, for example:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-win-reg:78
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
|
|
" $ virt-win-reg Windows7 $cvkey ProductName\n"
|
|
" Windows 7 Enterprise\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:82
|
|
msgid ""
|
|
"With I<--merge>, you can merge a textual regedit file into the Windows "
|
|
"Registry:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-win-reg:85
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ virt-win-reg --merge Windows7 changes.reg\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../tools/virt-win-reg:87
|
|
msgid "NOTE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:89
|
|
msgid ""
|
|
"This program is only meant for simple access to the registry. If you want "
|
|
"to do complicated things with the registry, we suggest you download the "
|
|
"Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
|
|
"and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
|
|
"L<hivexregedit(1)>."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../tools/virt-win-reg:158
|
|
msgid "B<--merge>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:160
|
|
msgid ""
|
|
"In merge mode, this merges a textual regedit file into the Windows Registry "
|
|
"of the virtual machine. If this flag is I<not> given then virt-win-reg "
|
|
"displays or exports Registry entries instead."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:164
|
|
msgid ""
|
|
"Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
|
|
"result in disk corruption. However exporting (without this flag) is always "
|
|
"safe."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../tools/virt-win-reg:172
|
|
msgid "B<--encoding> UTF-16LE|ASCII"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:174
|
|
msgid ""
|
|
"When merging (only), you may need to specify the encoding for strings to be "
|
|
"used in the hive file. This is explained in detail in "
|
|
"L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:178
|
|
msgid ""
|
|
"The default is to use UTF-16LE, which should work with recent versions of "
|
|
"Windows."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../tools/virt-win-reg:185
|
|
msgid "B<--unsafe-printable-strings>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:187
|
|
msgid ""
|
|
"When exporting (only), assume strings are UTF-16LE and print them as strings "
|
|
"instead of hex sequences. Remove the final zero codepoint from strings if "
|
|
"present."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:191
|
|
msgid ""
|
|
"This is unsafe and does not preserve the fidelity of strings in the original "
|
|
"Registry for various reasons:"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:198
|
|
msgid ""
|
|
"Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
|
|
"other encodings will be corrupted by this transformation."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:203
|
|
msgid ""
|
|
"Assumes that everything which has type 1 or 2 is really a string and that "
|
|
"everything else is not a string, but the type field in real Registries is "
|
|
"not reliable."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:209
|
|
msgid ""
|
|
"Loses information about whether a zero codepoint followed the string in the "
|
|
"Registry or not."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:214
|
|
msgid ""
|
|
"This all happens because the Registry itself contains no information about "
|
|
"how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:218
|
|
msgid ""
|
|
"You should only use this option for quick hacking and debugging of the "
|
|
"Registry contents, and I<never> use it if the output is going to be passed "
|
|
"into another program or stored in another Registry."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../tools/virt-win-reg:585
|
|
msgid "SUPPORTED SYSTEMS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:587
|
|
msgid ""
|
|
"The program currently supports Windows NT-derived guests starting with "
|
|
"Windows XP through to at least Windows 8."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:590
|
|
msgid "The following Registry keys are supported:"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../tools/virt-win-reg:594
|
|
msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../tools/virt-win-reg:596
|
|
msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../tools/virt-win-reg:598
|
|
msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../tools/virt-win-reg:600
|
|
msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../tools/virt-win-reg:602
|
|
msgid "C<HKEY_USERS\\.DEFAULT>"
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../tools/virt-win-reg:604
|
|
msgid "C<HKEY_USERS\\I<SID>>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:606
|
|
msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
|
|
msgstr ""
|
|
|
|
#. type: =item
|
|
#: ../tools/virt-win-reg:608
|
|
msgid "C<HKEY_USERS\\I<username>>"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:610
|
|
msgid "where I<username> is a local user name (this is a libguestfs extension)."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:614
|
|
msgid ""
|
|
"You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
|
|
"C<HKEY_USERS>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:617
|
|
msgid ""
|
|
"The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
|
|
"supported (there is no \"current user\")."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:622
|
|
msgid ""
|
|
"Windows 8 \"fast startup\" can prevent virt-win-reg from being able to edit "
|
|
"the Registry. See L<guestfs(3)/WINDOWS HIBERNATION AND WINDOWS 8 FAST "
|
|
"STARTUP>."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../tools/virt-win-reg:626
|
|
msgid "ENCODING"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:628
|
|
msgid ""
|
|
"C<virt-win-reg> expects that regedit files have already been reencoded in "
|
|
"the local encoding. Usually on Linux hosts, this means UTF-8 with "
|
|
"Unix-style line endings. Since Windows regedit files are often in UTF-16LE "
|
|
"with Windows-style line endings, you may need to reencode the whole file "
|
|
"before or after processing."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:634
|
|
msgid ""
|
|
"To reencode a file from Windows format to Linux (before processing it with "
|
|
"the I<--merge> option), you would do something like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-win-reg:637
|
|
#, no-wrap
|
|
msgid ""
|
|
" iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:639
|
|
msgid ""
|
|
"To go in the opposite direction, after exporting and before sending the file "
|
|
"to a Windows user, do something like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-win-reg:642
|
|
#, no-wrap
|
|
msgid ""
|
|
" unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:644
|
|
msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:646
|
|
msgid ""
|
|
"If you are unsure about the current encoding, use the L<file(1)> command. "
|
|
"Recent versions of Windows regedit.exe produce a UTF-16LE file with "
|
|
"Windows-style (CRLF) line endings, like this:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-win-reg:650
|
|
#, no-wrap
|
|
msgid ""
|
|
" $ file software.reg\n"
|
|
" software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
|
|
" with CRLF line terminators\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:654
|
|
msgid "This file would need conversion before you could I<--merge> it."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../tools/virt-win-reg:656
|
|
msgid "CurrentControlSet etc."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:658
|
|
msgid ""
|
|
"Registry keys like C<CurrentControlSet> don't really exist in the Windows "
|
|
"Registry at the level of the hive file, and therefore you cannot modify "
|
|
"these."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:662
|
|
msgid ""
|
|
"C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
|
|
"circumstances it might refer to another control set. The way to find out is "
|
|
"to look at the C<HKLM\\SYSTEM\\Select> key:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-win-reg:666
|
|
#, no-wrap
|
|
msgid ""
|
|
" # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
|
|
" [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
|
|
" \"Current\"=dword:00000001\n"
|
|
" \"Default\"=dword:00000001\n"
|
|
" \"Failed\"=dword:00000000\n"
|
|
" \"LastKnownGood\"=dword:00000002\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:673
|
|
msgid "\"Current\" is the one which Windows will choose when it boots."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:675
|
|
msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../tools/virt-win-reg:678
|
|
msgid "DELETING REGISTRY KEYS AND VALUES"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:680
|
|
msgid "To delete a whole registry key, use the syntax:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-win-reg:682
|
|
#, no-wrap
|
|
msgid ""
|
|
" [-HKEY_LOCAL_MACHINE\\Foo]\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:684
|
|
msgid "To delete a single value within a key, use the syntax:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-win-reg:686
|
|
#, no-wrap
|
|
msgid ""
|
|
" [HKEY_LOCAL_MACHINE\\Foo]\n"
|
|
" \"Value\"=-\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head1
|
|
#: ../tools/virt-win-reg:689
|
|
msgid "WINDOWS TIPS"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:691
|
|
msgid ""
|
|
"Note that some of these tips modify the guest disk image. The guest I<must> "
|
|
"be shut off, else you will get disk corruption."
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../tools/virt-win-reg:694
|
|
msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:696
|
|
msgid ""
|
|
"Prepare a DOS batch script, VBScript or executable. Upload this using "
|
|
"L<guestfish(1)>. For this example the script is called C<test.bat> and it "
|
|
"is uploaded into C<C:\\>:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-win-reg:700
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:702
|
|
msgid "Prepare a regedit file containing the registry change:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-win-reg:704
|
|
#, no-wrap
|
|
msgid ""
|
|
" cat > test.reg <<'EOF'\n"
|
|
" [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
|
|
" \"Test\"=\"c:\\\\test.bat\"\n"
|
|
" EOF\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:709
|
|
msgid ""
|
|
"In this example we use the key C<RunOnce> which means that the script will "
|
|
"run precisely once when the first user logs in. If you want it to run every "
|
|
"time a user logs in, replace C<RunOnce> with C<Run>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:713
|
|
msgid "Now update the registry:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-win-reg:715
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-win-reg --merge WindowsGuest test.reg\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: =head2
|
|
#: ../tools/virt-win-reg:717
|
|
msgid "INSTALLING A SERVICE"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:719
|
|
msgid ""
|
|
"This section assumes you are familiar with Windows services, and you either "
|
|
"have a program which handles the Windows Service Control Protocol directly "
|
|
"or you want to run any program using a service wrapper like SrvAny or the "
|
|
"free RHSrvAny."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:724
|
|
msgid ""
|
|
"First upload the program and optionally the service wrapper. In this case "
|
|
"the test program is called C<test.exe> and we are using the RHSrvAny "
|
|
"wrapper:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-win-reg:728
|
|
#, no-wrap
|
|
msgid ""
|
|
" guestfish -i -d WindowsGuest <<EOF\n"
|
|
" upload rhsrvany.exe /rhsrvany.exe\n"
|
|
" upload test.exe /test.exe\n"
|
|
" EOF\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:733
|
|
msgid ""
|
|
"Prepare a regedit file containing the registry changes. In this example, "
|
|
"the first registry change is needed for the service itself or the service "
|
|
"wrapper (if used). The second registry change is only needed because I am "
|
|
"using the RHSrvAny service wrapper."
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-win-reg:738
|
|
#, no-wrap
|
|
msgid ""
|
|
" cat > service.reg <<'EOF'\n"
|
|
" [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
|
|
" \"Type\"=dword:00000010\n"
|
|
" \"Start\"=dword:00000002\n"
|
|
" \"ErrorControl\"=dword:00000001\n"
|
|
" \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
|
|
" \"DisplayName\"=\"RHSrvAny\"\n"
|
|
" \"ObjectName\"=\"NetworkService\"\n"
|
|
" \n"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-win-reg:747
|
|
#, no-wrap
|
|
msgid ""
|
|
" [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
|
|
" \"CommandLine\"=\"c:\\\\test.exe\"\n"
|
|
" \"PWD\"=\"c:\\\\Temp\"\n"
|
|
" EOF\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:758
|
|
msgid ""
|
|
"For use of C<ControlSet001> see the section above in this manual page. You "
|
|
"may need to adjust this according to the control set that is in use by the "
|
|
"guest."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:764
|
|
msgid ""
|
|
"C<\"ObjectName\"> controls the privileges that the service will have. An "
|
|
"alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
|
|
"privileged account."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:770
|
|
msgid ""
|
|
"For the meaning of the magic numbers, see this Microsoft KB article: "
|
|
"L<http://support.microsoft.com/kb/103000>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:775
|
|
msgid "Update the registry:"
|
|
msgstr ""
|
|
|
|
#. type: verbatim
|
|
#: ../tools/virt-win-reg:777
|
|
#, no-wrap
|
|
msgid ""
|
|
" virt-win-reg --merge WindowsGuest service.reg\n"
|
|
"\n"
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:781
|
|
msgid ""
|
|
"Be careful when passing parameters containing C<\\> (backslash) in the "
|
|
"shell. Usually you will have to use 'single quotes' or double backslashes "
|
|
"(but not both) to protect them from the shell."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:785
|
|
msgid "Paths and value names are case-insensitive."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:794
|
|
msgid ""
|
|
"L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
|
|
"L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Win::Hivex(3)>, "
|
|
"L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
|
|
msgstr ""
|
|
|
|
#. type: textblock
|
|
#: ../tools/virt-win-reg:812
|
|
msgid "Copyright (C) 2010 Red Hat Inc."
|
|
msgstr ""
|