+#: ../src/guestfs-actions.pod:4810
+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:4820
+msgid "guestfs_mknod_c"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:4822
+#, 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:4829
+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:4839
+msgid "guestfs_mkswap"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:4841
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_mkswap (guestfs_h *g,\n"
+" const char *device);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:4851
+msgid "guestfs_mkswap_L"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:4853
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_mkswap_L (guestfs_h *g,\n"
+" const char *label,\n"
+" const char *device);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:4868
+msgid "guestfs_mkswap_U"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:4870
+#, 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:4881
+msgid "guestfs_mkswap_file"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:4883
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_mkswap_file (guestfs_h *g,\n"
+" const char *path);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:4889
+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:4896
+msgid "guestfs_modprobe"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:4898
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_modprobe (guestfs_h *g,\n"
+" const char *modulename);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:4911
+msgid "guestfs_mount"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:4913
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_mount (guestfs_h *g,\n"
+" const char *device,\n"
+" const char *mountpoint);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:4932
+msgid ""
+"B<Important note:> When you use this call, the filesystem options C<sync> "
+"and C<noatime> are set implicitly. This was originally done because we "
+"thought it would improve reliability, but it turns out that I<-o sync> has a "
+"very large negative performance impact and negligible effect on "
+"reliability. Therefore we recommend that you avoid using C<guestfs_mount> "
+"in any code that needs performance, and instead use C<guestfs_mount_options> "
+"(use an empty string for the first parameter if you don't want any options)."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:4953
+msgid "guestfs_mount_9p"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:4955
+#, 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:4966
+#, no-wrap
+msgid ""
+" GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:4979
+msgid "guestfs_mount_9p_va"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:4981
+#, 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:4987
+msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:4991
+msgid "guestfs_mount_9p_argv"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:4993
+#, 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:4999
+msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5003
+msgid "guestfs_mount_loop"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5005
+#, 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:5018
+msgid "guestfs_mount_options"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5020
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_mount_options (guestfs_h *g,\n"
+" const char *options,\n"
+" const char *device,\n"
+" const char *mountpoint);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:5026
+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:5036 ../src/guestfs-actions.pod:5050
+#: ../src/guestfs-actions.pod:5067
+msgid "(Added in 1.0.10)"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5038
+msgid "guestfs_mount_ro"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5040
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_mount_ro (guestfs_h *g,\n"
+" const char *device,\n"
+" const char *mountpoint);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:5045
+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:5052
+msgid "guestfs_mount_vfs"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5054
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_mount_vfs (guestfs_h *g,\n"
+" const char *options,\n"
+" const char *vfstype,\n"
+" const char *device,\n"
+" const char *mountpoint);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:5061
+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:5069
+msgid "guestfs_mountpoints"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5071
+#, no-wrap
+msgid ""
+" char **\n"
+" guestfs_mountpoints (guestfs_h *g);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:5074
+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:5086
+msgid "guestfs_mounts"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5088
+#, no-wrap
+msgid ""
+" char **\n"
+" guestfs_mounts (guestfs_h *g);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:5096
+msgid "See also: C<guestfs_mountpoints>"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5104
+msgid "guestfs_mv"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5106
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_mv (guestfs_h *g,\n"
+" const char *src,\n"
+" const char *dest);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5118
+msgid "guestfs_ntfs_3g_probe"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5120
+#, 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:5139
+msgid "(Added in 1.0.43)"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5141
+msgid "guestfs_ntfsresize"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5143
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_ntfsresize (guestfs_h *g,\n"
+" const char *device);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5171
+msgid "guestfs_ntfsresize_opts"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5173
+#, 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:5183
+#, 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:5203
+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_opts> multiple "
+"times on a single filesystem without booting into Windows between each "
+"resize."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5218
+msgid "guestfs_ntfsresize_opts_va"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5220
+#, 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:5225
+msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5229
+msgid "guestfs_ntfsresize_opts_argv"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5231
+#, 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:5236
+msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5240
+msgid "guestfs_ntfsresize_size"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5242
+#, 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:5247
+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:5259 ../src/guestfs-actions.pod:5701
+#: ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:6042
+#: ../src/guestfs-actions.pod:7665
+msgid "(Added in 1.3.14)"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5261
+msgid "guestfs_part_add"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5263
+#, 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:5270
+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:5282
+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:5287 ../src/guestfs-actions.pod:5325
+#: ../src/guestfs-actions.pod:5378 ../src/guestfs-actions.pod:5462
+#: ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5519
+#: ../src/guestfs-actions.pod:5559
+msgid "(Added in 1.0.78)"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5289
+msgid "guestfs_part_del"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5291
+#, 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:5306
+msgid "guestfs_part_disk"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5308
+#, 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:5313
+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:5317
+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:5327
+msgid "guestfs_part_get_bootable"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5329
+#, 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:5337
+msgid "See also C<guestfs_part_set_bootable>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5343
+msgid "guestfs_part_get_mbr_id"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5345
+#, 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:5353 ../src/guestfs-actions.pod:5535
+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:5361
+msgid "guestfs_part_get_parttype"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5363
+#, 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:5370
+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:5380
+msgid "guestfs_part_init"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5382
+#, 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:5391
+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:5464
+msgid "guestfs_part_list"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5466
+#, 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:5483
+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:5496
+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:5502
+msgid "guestfs_part_set_bootable"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5504
+#, 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:5521
+msgid "guestfs_part_set_mbr_id"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5523
+#, 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:5543
+msgid "guestfs_part_set_name"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5545
+#, 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:5561
+msgid "guestfs_part_to_dev"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5563
+#, 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:5571
+msgid ""
+"The named partition must exist, for example as a string returned from "
+"C<guestfs_list_partitions>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5579
+msgid "guestfs_ping_daemon"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5581
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_ping_daemon (guestfs_h *g);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5593
+msgid "guestfs_pread"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5595
+#, 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:5608
+msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5619
+msgid "guestfs_pread_device"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5621
+#, 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:5634
+msgid "See also C<guestfs_pread>."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:5643
+msgid "(Added in 1.5.21)"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5645
+msgid "guestfs_pvcreate"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5647
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_pvcreate (guestfs_h *g,\n"
+" const char *device);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5659
+msgid "guestfs_pvremove"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5661
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_pvremove (guestfs_h *g,\n"
+" const char *device);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5676
+msgid "guestfs_pvresize"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5678
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_pvresize (guestfs_h *g,\n"
+" const char *device);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5689
+msgid "guestfs_pvresize_size"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5691
+#, 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:5696
+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:5703
+msgid "guestfs_pvs"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5705
+#, no-wrap
+msgid ""
+" char **\n"
+" guestfs_pvs (guestfs_h *g);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:5714
+msgid "See also C<guestfs_pvs_full>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5722
+msgid "guestfs_pvs_full"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5724
+#, no-wrap
+msgid ""
+" struct guestfs_lvm_pv_list *\n"
+" guestfs_pvs_full (guestfs_h *g);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:5730
+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:5736
+msgid "guestfs_pvuuid"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5738
+#, no-wrap
+msgid ""
+" char *\n"
+" guestfs_pvuuid (guestfs_h *g,\n"
+" const char *device);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5749
+msgid "guestfs_pwrite"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5751
+#, 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:5767
+msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5776
+msgid "guestfs_pwrite_device"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5778
+#, 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:5793
+msgid "See also C<guestfs_pwrite>."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:5800
+msgid "(Added in 1.5.20)"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5802
+msgid "guestfs_read_file"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5804
+#, 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:5812
+msgid ""
+"Unlike C<guestfs_cat>, this function can correctly handle files that contain "
+"embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
+"function is limited in the total size of file that can be handled."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:5824
+msgid "(Added in 1.0.63)"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5826
+msgid "guestfs_read_lines"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5828
+#, no-wrap
+msgid ""
+" char **\n"
+" guestfs_read_lines (guestfs_h *g,\n"
+" const char *path);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:5837
+msgid ""
+"Note that this function cannot correctly handle binary files (specifically, "
+"files containing C<\\0> character which is treated as end of line). For "
+"those you need to use the C<guestfs_read_file> function which has a more "
+"complex interface."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5848
+msgid "guestfs_readdir"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5850
+#, 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:5904
+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:5908
+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:5914
+msgid "guestfs_readlink"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5916
+#, no-wrap
+msgid ""
+" char *\n"
+" guestfs_readlink (guestfs_h *g,\n"
+" const char *path);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5927
+msgid "guestfs_readlinklist"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5929
+#, 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:5962
+msgid "guestfs_realpath"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5964
+#, no-wrap
+msgid ""
+" char *\n"
+" guestfs_realpath (guestfs_h *g,\n"
+" const char *path);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5976
+msgid "guestfs_removexattr"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5978
+#, 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:5986
+msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:5992
+msgid "guestfs_resize2fs"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:5994
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_resize2fs (guestfs_h *g,\n"
+" const char *device);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:6001
+msgid ""
+"I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
+"C<device> before calling this command. For unknown reasons C<resize2fs> "
+"sometimes gives an error about this and sometimes not. In any case, it is "
+"always safe to call C<guestfs_e2fsck_f> before calling this function."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6011
+msgid "guestfs_resize2fs_M"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6013
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_resize2fs_M (guestfs_h *g,\n"
+" const char *device);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:6017
+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:6021
+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:6030
+msgid "guestfs_resize2fs_size"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6032
+#, 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:6037
+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:6044
+msgid "guestfs_rm"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6046
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_rm (guestfs_h *g,\n"
+" const char *path);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6056
+msgid "guestfs_rm_rf"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6058
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_rm_rf (guestfs_h *g,\n"
+" const char *path);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6070
+msgid "guestfs_rmdir"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6072
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_rmdir (guestfs_h *g,\n"
+" const char *path);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6082
+msgid "guestfs_rmmountpoint"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6084
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_rmmountpoint (guestfs_h *g,\n"
+" const char *exemptpath);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:6088
+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:6096
+msgid "guestfs_scrub_device"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6098
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_scrub_device (guestfs_h *g,\n"
+" const char *device);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6131
+#: ../src/guestfs-actions.pod:6150
+msgid "(Added in 1.0.52)"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6115
+msgid "guestfs_scrub_file"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6117
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_scrub_file (guestfs_h *g,\n"
+" const char *file);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6133
+msgid "guestfs_scrub_freespace"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6135
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_scrub_freespace (guestfs_h *g,\n"
+" const char *dir);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:6139
+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:6152
+msgid "guestfs_set_append"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6154
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_set_append (guestfs_h *g,\n"
+" const char *append);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6171
+msgid "guestfs_set_attach_method"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6173
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_set_attach_method (guestfs_h *g,\n"
+" const char *attachmethod);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6201
+msgid "guestfs_set_autosync"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6203
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_set_autosync (guestfs_h *g,\n"
+" int autosync);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6219
+msgid "guestfs_set_direct"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6221
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_set_direct (guestfs_h *g,\n"
+" int direct);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:6229
+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:6242
+msgid "guestfs_set_e2label"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6244
+#, 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:6253
+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:6260
+msgid "guestfs_set_e2uuid"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6262
+#, 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:6272
+msgid ""
+"You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
+"the existing UUID of a filesystem."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6279
+msgid "guestfs_set_memsize"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6281
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_set_memsize (guestfs_h *g,\n"
+" int memsize);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:6285
+msgid ""
+"This sets the memory size in megabytes allocated to the qemu subprocess. "
+"This only has any effect if called before C<guestfs_launch>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6300
+msgid "guestfs_set_network"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6302
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_set_network (guestfs_h *g,\n"
+" int network);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:6312
+msgid ""
+"You must call this before calling C<guestfs_launch>, otherwise it has no "
+"effect."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6319
+msgid "guestfs_set_path"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6321
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_set_path (guestfs_h *g,\n"
+" const char *searchpath);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6336
+msgid "guestfs_set_pgroup"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6338
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_set_pgroup (guestfs_h *g,\n"
+" int pgroup);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6355
+msgid "guestfs_set_qemu"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6357
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_set_qemu (guestfs_h *g,\n"
+" const char *qemu);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6383
+msgid "guestfs_set_recovery_proc"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6385
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_set_recovery_proc (guestfs_h *g,\n"
+" int recoveryproc);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:6389
+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 qemu processes in the case where the main program aborts "
+"abruptly."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:6394
+msgid ""
+"This only has any effect if called before C<guestfs_launch>, and the default "
+"is true."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6407
+msgid "guestfs_set_selinux"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6409
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_set_selinux (guestfs_h *g,\n"
+" int selinux);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6426
+msgid "guestfs_set_trace"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6428
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_set_trace (guestfs_h *g,\n"
+" int trace);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:6442
+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:6450
+msgid "guestfs_set_verbose"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6452
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_set_verbose (guestfs_h *g,\n"
+" int verbose);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:6461
+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:6469
+msgid "guestfs_setcon"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6471
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_setcon (guestfs_h *g,\n"
+" const char *context);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6484
+msgid "guestfs_setxattr"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6486
+#, 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:6497
+msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6503
+msgid "guestfs_sfdisk"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6505
+#, 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:6533
+msgid ""
+"See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6550
+msgid "guestfs_sfdiskM"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6552
+#, 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:6557
+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:6563
+msgid ""
+"See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
+"C<guestfs_part_disk>"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6580
+msgid "guestfs_sfdisk_N"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6582
+#, 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:6594
+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:6597
+msgid "See also: C<guestfs_part_add>"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6613
+msgid "guestfs_sfdisk_disk_geometry"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6615
+#, 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:6619
+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:6632
+msgid "guestfs_sfdisk_kernel_geometry"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6634
+#, 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:6648
+msgid "guestfs_sfdisk_l"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6650
+#, no-wrap
+msgid ""
+" char *\n"
+" guestfs_sfdisk_l (guestfs_h *g,\n"
+" const char *device);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:6658
+msgid "See also: C<guestfs_part_list>"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6672
+msgid "guestfs_sh"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6674
+#, no-wrap
+msgid ""
+" char *\n"
+" guestfs_sh (guestfs_h *g,\n"
+" const char *command);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:6681
+msgid "This is like C<guestfs_command>, but passes the command to:"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:6689
+msgid "All the provisos about C<guestfs_command> apply to this call."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6696
+msgid "guestfs_sh_lines"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6698
+#, no-wrap
+msgid ""
+" char **\n"
+" guestfs_sh_lines (guestfs_h *g,\n"
+" const char *command);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:6702
+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:6705
+msgid "See also: C<guestfs_command_lines>"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6713
+msgid "guestfs_sleep"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6715
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_sleep (guestfs_h *g,\n"
+" int secs);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:6723
+msgid "(Added in 1.0.41)"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6725 ../src/guestfs-structs.pod:109
+msgid "guestfs_stat"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6727
+#, 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:6741 ../src/guestfs-structs.pod:135
+msgid "guestfs_statvfs"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6743
+#, 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:6753
+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:6759
+msgid "guestfs_strings"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6761
+#, no-wrap
+msgid ""
+" char **\n"
+" guestfs_strings (guestfs_h *g,\n"
+" const char *path);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6777
+msgid "guestfs_strings_e"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6779
+#, 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:6784
+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:6794
+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:6832
+msgid "guestfs_swapoff_device"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6834
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_swapoff_device (guestfs_h *g,\n"
+" const char *device);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:6838
+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:6846
+msgid "guestfs_swapoff_file"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6848
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_swapoff_file (guestfs_h *g,\n"
+" const char *file);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6858
+msgid "guestfs_swapoff_label"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6860
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_swapoff_label (guestfs_h *g,\n"
+" const char *label);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6871
+msgid "guestfs_swapoff_uuid"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6873
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_swapoff_uuid (guestfs_h *g,\n"
+" const char *uuid);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6884
+msgid "guestfs_swapon_device"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6886
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_swapon_device (guestfs_h *g,\n"
+" const char *device);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:6890
+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:6906
+msgid "guestfs_swapon_file"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6908
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_swapon_file (guestfs_h *g,\n"
+" const char *file);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:6912
+msgid ""
+"This command enables swap to a file. See C<guestfs_swapon_device> for other "
+"notes."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6919
+msgid "guestfs_swapon_label"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6921
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_swapon_label (guestfs_h *g,\n"
+" const char *label);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:6925
+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:6932
+msgid "guestfs_swapon_uuid"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6934
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_swapon_uuid (guestfs_h *g,\n"
+" const char *uuid);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:6938
+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:6945
+msgid "guestfs_sync"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6947
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_sync (guestfs_h *g);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6960
+msgid "guestfs_tail"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6962
+#, no-wrap
+msgid ""
+" char **\n"
+" guestfs_tail (guestfs_h *g,\n"
+" const char *path);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:6978
+msgid "guestfs_tail_n"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:6980
+#, 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:7002
+msgid "guestfs_tar_in"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7004
+#, 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:7012
+msgid ""
+"To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:7017 ../src/guestfs-actions.pod:7034
+#: ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7066
+msgid "(Added in 1.0.3)"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7019
+msgid "guestfs_tar_out"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7021
+#, 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:7029
+msgid ""
+"To download a compressed tarball, use C<guestfs_tgz_out> or "
+"C<guestfs_txz_out>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7036
+msgid "guestfs_tgz_in"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7038
+#, 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:7046
+msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7052
+msgid "guestfs_tgz_out"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7054
+#, 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:7062
+msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7068
+msgid "guestfs_touch"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7070
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_touch (guestfs_h *g,\n"
+" const char *path);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7085
+msgid "guestfs_truncate"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7087
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_truncate (guestfs_h *g,\n"
+" const char *path);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7098
+msgid "guestfs_truncate_size"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7100
+#, 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:7108
+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:7118
+msgid "guestfs_tune2fs_l"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7120
+#, no-wrap
+msgid ""
+" char **\n"
+" guestfs_tune2fs_l (guestfs_h *g,\n"
+" const char *device);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7140
+msgid "guestfs_txz_in"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7142
+#, 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:7154
+msgid "guestfs_txz_out"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7156
+#, 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:7168
+msgid "guestfs_umask"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7170
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_umask (guestfs_h *g,\n"
+" int mask);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:7186
+msgid ""
+"See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
+"C<guestfs_mkdir>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7195
+msgid "guestfs_umount"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7197
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_umount (guestfs_h *g,\n"
+" const char *pathordevice);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7209
+msgid "guestfs_umount_all"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7211
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_umount_all (guestfs_h *g);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7222
+msgid "guestfs_upload"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7224
+#, 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:7234
+msgid "See also C<guestfs_download>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7245
+msgid "guestfs_upload_offset"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7247
+#, 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:7263
+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:7268
+msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7279
+msgid "guestfs_utimens"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7281
+#, 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:7310 ../src/guestfs-structs.pod:175
+msgid "guestfs_version"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7312
+#, no-wrap
+msgid ""
+" struct guestfs_version *\n"
+" guestfs_version (guestfs_h *g);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:7340
+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> instead."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:7346
+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:7350
+msgid "(Added in 1.0.58)"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7352
+msgid "guestfs_vfs_label"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7354
+#, no-wrap
+msgid ""
+" char *\n"
+" guestfs_vfs_label (guestfs_h *g,\n"
+" const char *device);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:7363
+msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:7368 ../src/guestfs-actions.pod:7405
+msgid "(Added in 1.3.18)"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7370
+msgid "guestfs_vfs_type"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7372
+#, no-wrap
+msgid ""
+" char *\n"
+" guestfs_vfs_type (guestfs_h *g,\n"
+" const char *device);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7389
+msgid "guestfs_vfs_uuid"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7391
+#, no-wrap
+msgid ""
+" char *\n"
+" guestfs_vfs_uuid (guestfs_h *g,\n"
+" const char *device);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:7400
+msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7407
+msgid "guestfs_vg_activate"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7409
+#, 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:7426
+msgid "guestfs_vg_activate_all"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7428
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_vg_activate_all (guestfs_h *g,\n"
+" int activate);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7441
+msgid "guestfs_vgcreate"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7443
+#, 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:7455
+msgid "guestfs_vglvuuids"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7457
+#, no-wrap
+msgid ""
+" char **\n"
+" guestfs_vglvuuids (guestfs_h *g,\n"
+" const char *vgname);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:7464
+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:7467
+msgid "See also C<guestfs_vgpvuuids>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7475
+msgid "guestfs_vgpvuuids"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7477
+#, no-wrap
+msgid ""
+" char **\n"
+" guestfs_vgpvuuids (guestfs_h *g,\n"
+" const char *vgname);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:7484
+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:7487
+msgid "See also C<guestfs_vglvuuids>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7495
+msgid "guestfs_vgremove"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7497
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_vgremove (guestfs_h *g,\n"
+" const char *vgname);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7510
+msgid "guestfs_vgrename"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7512
+#, 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:7523
+msgid "guestfs_vgs"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7525
+#, no-wrap
+msgid ""
+" char **\n"
+" guestfs_vgs (guestfs_h *g);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:7534
+msgid "See also C<guestfs_vgs_full>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7542
+msgid "guestfs_vgs_full"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7544
+#, no-wrap
+msgid ""
+" struct guestfs_lvm_vg_list *\n"
+" guestfs_vgs_full (guestfs_h *g);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:7550
+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:7556
+msgid "guestfs_vgscan"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7558
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_vgscan (guestfs_h *g);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7568
+msgid "guestfs_vguuid"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7570
+#, no-wrap
+msgid ""
+" char *\n"
+" guestfs_vguuid (guestfs_h *g,\n"
+" const char *vgname);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7581
+msgid "guestfs_wait_ready"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7583
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_wait_ready (guestfs_h *g);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:7586
+msgid "This function is a no op."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:7588
+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:7593
+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: textblock
+#: ../src/guestfs-actions.pod:7599
+msgid ""
+"This function is deprecated. In new code, use the C<launch> call instead."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7608
+msgid "guestfs_wc_c"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7610
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_wc_c (guestfs_h *g,\n"
+" const char *path);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7621
+msgid "guestfs_wc_l"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7623
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_wc_l (guestfs_h *g,\n"
+" const char *path);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7634
+msgid "guestfs_wc_w"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7636
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_wc_w (guestfs_h *g,\n"
+" const char *path);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7647
+msgid "guestfs_write"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7649
+#, 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:7658
+msgid "See also C<guestfs_write_append>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7667
+msgid "guestfs_write_append"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7669
+#, 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:7678
+msgid "See also C<guestfs_write>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7687
+msgid "guestfs_write_file"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7689
+#, 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: =head2
+#: ../src/guestfs-actions.pod:7720
+msgid "guestfs_zegrep"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7722
+#, 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:7739
+msgid "guestfs_zegrepi"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7741
+#, 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:7758
+msgid "guestfs_zero"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7760
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_zero (guestfs_h *g,\n"
+" const char *device);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:7770
+msgid ""
+"See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
+"C<guestfs_is_zero_device>"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7782
+msgid "guestfs_zero_device"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7784
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_zero_device (guestfs_h *g,\n"
+" const char *device);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-actions.pod:7788
+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:7802
+msgid "(Added in 1.3.1)"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7804
+msgid "guestfs_zerofree"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7806
+#, no-wrap
+msgid ""
+" int\n"
+" guestfs_zerofree (guestfs_h *g,\n"
+" const char *device);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7825
+msgid "guestfs_zfgrep"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7827
+#, 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:7844
+msgid "guestfs_zfgrepi"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7846
+#, 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:7863
+msgid "guestfs_zfile"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7865
+#, 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:7875
+msgid ""
+"Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
+"files."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-actions.pod:7890
+msgid "guestfs_zgrep"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7892
+#, 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:7909
+msgid "guestfs_zgrepi"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-actions.pod:7911
+#, 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<augeas>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-availability.pod:5
+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_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>"
+msgstr ""
+
+#. type: =item
+#: ../src/guestfs-availability.pod:21
+msgid "B<btrfs>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-availability.pod:23
+msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
+msgstr ""
+
+#. type: =item
+#: ../src/guestfs-availability.pod:26
+msgid "B<inotify>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-availability.pod:28
+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:36
+msgid "B<linuxfsuuid>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-availability.pod:38
+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:45
+msgid "B<linuxmodules>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-availability.pod:47
+msgid "The following functions: L</guestfs_modprobe>"
+msgstr ""
+
+#. type: =item
+#: ../src/guestfs-availability.pod:50
+msgid "B<linuxxattrs>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-availability.pod:52
+msgid ""
+"The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
+"guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
+"guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
+"guestfs_setxattr>"
+msgstr ""
+
+#. type: =item
+#: ../src/guestfs-availability.pod:63
+msgid "B<luks>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-availability.pod:65
+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:74
+msgid "B<lvm2>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-availability.pod:76
+msgid ""
+"The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> 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_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_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
+msgstr ""
+
+#. type: =item
+#: ../src/guestfs-availability.pod:99
+msgid "B<mknod>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-availability.pod:101
+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:107
+msgid "B<ntfs3g>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-availability.pod:109
+msgid "The following functions: L</guestfs_ntfs_3g_probe>"
+msgstr ""
+
+#. type: =item
+#: ../src/guestfs-availability.pod:112
+msgid "B<ntfsprogs>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-availability.pod:114
+msgid ""
+"The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
+"L</guestfs_ntfsresize_size>"
+msgstr ""
+
+#. type: =item
+#: ../src/guestfs-availability.pod:119
+msgid "B<realpath>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-availability.pod:121
+msgid "The following functions: L</guestfs_realpath>"
+msgstr ""
+
+#. type: =item
+#: ../src/guestfs-availability.pod:124
+msgid "B<scrub>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-availability.pod:126
+msgid ""
+"The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
+"guestfs_scrub_freespace>"
+msgstr ""
+
+#. type: =item
+#: ../src/guestfs-availability.pod:131
+msgid "B<selinux>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-availability.pod:133
+msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
+msgstr ""
+
+#. type: =item
+#: ../src/guestfs-availability.pod:137
+msgid "B<xz>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-availability.pod:139
+msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
+msgstr ""
+
+#. type: =item
+#: ../src/guestfs-availability.pod:143
+msgid "B<zerofree>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs-availability.pod:145
+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 ""
+" void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
+" void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-structs.pod:16
+msgid "guestfs_lvm_pv"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-structs.pod:18
+#, 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:36
+#, 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:41
+#, no-wrap
+msgid ""
+" void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
+" void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-structs.pod:44
+msgid "guestfs_lvm_vg"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-structs.pod:46
+#, 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:69
+#, 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:74
+#, no-wrap
+msgid ""
+" void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
+" void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-structs.pod:77
+msgid "guestfs_lvm_lv"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-structs.pod:79
+#, 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:101
+#, 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:106
+#, no-wrap
+msgid ""
+" void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
+" void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
+"\n"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-structs.pod:111
+#, 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:127
+#, 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:132
+#, no-wrap
+msgid ""
+" void guestfs_free_stat (struct guestfs_free_stat *);\n"
+" void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
+"\n"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-structs.pod:137
+#, 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:151
+#, 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:156
+#, no-wrap
+msgid ""
+" void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
+" void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-structs.pod:159
+msgid "guestfs_dirent"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-structs.pod:161
+#, 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:167
+#, 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:172
+#, no-wrap
+msgid ""
+" void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
+" void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
+"\n"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-structs.pod:177
+#, 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:184
+#, 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:189
+#, no-wrap
+msgid ""
+" void guestfs_free_version (struct guestfs_free_version *);\n"
+" void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-structs.pod:192
+msgid "guestfs_xattr"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-structs.pod:194
+#, 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:201
+#, 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:206
+#, no-wrap
+msgid ""
+" void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
+" void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-structs.pod:209
+msgid "guestfs_inotify_event"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-structs.pod:211
+#, 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:218
+#, 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:223
+#, no-wrap
+msgid ""
+" void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
+" void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-structs.pod:226
+msgid "guestfs_partition"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-structs.pod:228
+#, 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:235
+#, 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:240
+#, no-wrap
+msgid ""
+" void guestfs_free_partition (struct guestfs_free_partition *);\n"
+" void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
+"\n"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs-structs.pod:243
+msgid "guestfs_application"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs-structs.pod:245
+#, 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:260
+#, 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:265
+#, no-wrap
+msgid ""
+" void guestfs_free_application (struct guestfs_free_application *);\n"
+" void guestfs_free_application_list (struct guestfs_free_application_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_close (g);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:25
+msgid ""
+"Libguestfs is a library for accessing and modifying guest disk images. "
+"Amongst the things this is good for: making batch configuration changes to "
+"guests, getting disk used/free statistics (see also: virt-df), migrating "
+"between virtualization systems (see also: virt-p2v), performing partial "
+"backups, performing partial guest clones, cloning guests and changing "
+"registry/UUID/hostname info, and much else besides."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:33
+msgid ""
+"Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
+"filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
+"btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
+"qcow2, vmdk."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:38
+msgid ""
+"Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
+"what filesystem is in each LV, etc.). It can also run commands in the "
+"context of the guest. Also you can access filesystems over FUSE."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:43
+msgid ""
+"Libguestfs is a library that can be linked with C and C++ management "
+"programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
+"PHP, Haskell or C#). You can also use it from shell scripts or the command "
+"line."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:48
+msgid ""
+"You don't need to be root to use libguestfs, although obviously you do need "
+"enough permissions to access the disk images."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:51
+msgid ""
+"Libguestfs is a large API because it can do many things. For a gentle "
+"introduction, please read the L</API OVERVIEW> section next."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:54
+msgid ""
+"There are also some example programs in the L<guestfs-examples(3)> manual "
+"page."
+msgstr ""
+
+#. type: =head1
+#: ../src/guestfs.pod:57
+msgid "API OVERVIEW"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:59
+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:64
+msgid "HANDLES"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:66
+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:73
+msgid "The general structure of all libguestfs-using programs looks like this:"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs.pod:76
+#, no-wrap
+msgid ""
+" guestfs_h *g = guestfs_create ();\n"
+" \n"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs.pod:78
+#, 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:83
+#, 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:89
+#, no-wrap
+msgid ""
+" /* Now you can examine what partitions, LVs etc are available.\n"
+" */\n"
+" char **partitions = guestfs_list_partitions (g);\n"
+" char **logvols = guestfs_lvs (g);\n"
+" \n"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs.pod:94
+#, no-wrap
+msgid ""
+" /* To access a filesystem in the image, you must mount it.\n"
+" */\n"
+" guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
+" \n"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs.pod:98
+#, 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:103
+#, no-wrap
+msgid ""
+" /* This is only needed for libguestfs < 1.5.24. Since then\n"
+" * it is done automatically when you close the handle. See\n"
+" * discussion of autosync in this page.\n"
+" */\n"
+" guestfs_sync (g);\n"
+" \n"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs.pod:109
+#, no-wrap
+msgid ""
+" /* Close the handle 'g'. */\n"
+" guestfs_close (g);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:112
+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:121
+msgid "DISK IMAGES"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:123
+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:129
+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:133
+#, 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:137
+msgid "You can add a disk read-only using:"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs.pod:139
+#, 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:144
+msgid ""
+"or by calling the older function L</guestfs_add_drive_ro>. In either case "
+"libguestfs won't modify the file."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:147
+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:151
+msgid ""
+"You must add at least one disk image, and you may add multiple disk images. "
+"In the API, the disk images are usually referred to as C</dev/sda> (for the "
+"first one you added), C</dev/sdb> (for the second one you added), etc."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:156
+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: =head2
+#: ../src/guestfs.pod:161
+msgid "MOUNTING"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:163
+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_options> 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:170
+#, no-wrap
+msgid ""
+" guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:172
+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:178
+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:186
+msgid ""
+"Libguestfs also has a set of APIs for inspection of unknown disk images (see "
+"L</INSPECTION> below). But you might find it easier to look at higher level "
+"programs built on top of libguestfs, in particular L<virt-inspector(1)>."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:191
+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:194
+msgid "FILESYSTEM ACCESS AND MODIFICATION"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:196
+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:202
+msgid ""
+"Specify filenames as full paths, starting with C<\"/\"> and including the "
+"mount point."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:205
+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:208
+#, no-wrap
+msgid ""
+" char *data = guestfs_cat (g, \"/etc/passwd\");\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:210
+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:214
+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:217
+#, no-wrap
+msgid ""
+" guestfs_mkdir (g, \"/var\");\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:219
+msgid "To create a symlink you could do:"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs.pod:221
+#, no-wrap
+msgid ""
+" guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
+" \"/etc/rc3.d/S30portmap\");\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:224
+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:227
+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:233
+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: =head2
+#: ../src/guestfs.pod:236
+msgid "PARTITIONING"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:238
+msgid ""
+"Libguestfs contains API calls to read, create and modify partition tables on "
+"disk images."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:241
+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:245
+#, 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:250
+msgid ""
+"Obviously this effectively wipes anything that was on that disk image before."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs.pod:253
+msgid "LVM2"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:255
+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:260
+msgid ""
+"This author strongly recommends reading the LVM HOWTO, online at L<http://"
+"tldp.org/HOWTO/LVM-HOWTO/>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs.pod:263
+msgid "DOWNLOADING"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:265
+msgid ""
+"Use L</guestfs_cat> to download small, text only files. This call is "
+"limited to files which are less than 2 MB and which cannot contain any ASCII "
+"NUL (C<\\0>) characters. However the API is very simple to use."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:269
+msgid ""
+"L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
+"bit data, since it returns a (pointer, size) pair. However it is still "
+"limited to \"small\" files, less than 2 MB."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:273
+msgid ""
+"L</guestfs_download> can be used to download any file, with no limits on "
+"content or size (even files larger than 4 GB)."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:276
+msgid ""
+"To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs.pod:279
+msgid "UPLOADING"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:281
+msgid ""
+"It's often the case that you want to write a file or files to the disk image."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:284
+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:290
+msgid ""
+"To upload a single file, use L</guestfs_upload>. This call has no limits on "
+"file content or size (even files larger than 4 GB)."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:293
+msgid ""
+"To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:295
+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:306
+msgid "COPYING"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:308
+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:314
+msgid "B<file> to B<file>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:316
+msgid ""
+"Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
+"directories recursively."
+msgstr ""
+
+#. type: =item
+#: ../src/guestfs.pod:319
+msgid "B<file or device> to B<file or device>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:321
+msgid ""
+"Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
+"devices in the guest."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:324
+msgid "Example: duplicate the contents of an LV:"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs.pod:326
+#, no-wrap
+msgid ""
+" guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:328
+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 L</"
+"guestfs_copy_size>."
+msgstr ""
+
+#. type: =item
+#: ../src/guestfs.pod:332
+msgid "B<file on the host> to B<file or device>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:334
+msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
+msgstr ""
+
+#. type: =item
+#: ../src/guestfs.pod:336
+msgid "B<file or device> to B<file on the host>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:338
+msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs.pod:342
+msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:344
+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:352
+msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs.pod:355
+#, no-wrap
+msgid ""
+" guestfs_download (g, filename, \"/dev/stdout\");\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:357
+msgid "and you can write tar output to a file descriptor C<fd> by doing:"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs.pod:359
+#, 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:363
+msgid "LISTING FILES"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:365
+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:368
+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:371
+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:375
+msgid ""
+"L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs.pod:378
+msgid "RUNNING COMMANDS"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:380
+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:384
+msgid "There are many limitations to this:"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:390
+msgid ""
+"The kernel version that the command runs under will be different from what "
+"it expects."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:395
+msgid ""
+"If the command needs to communicate with daemons, then most likely they "
+"won't be running."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:400
+msgid "The command will be running in limited memory."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:404
+msgid ""
+"The network may not be available unless you enable it (see L</"
+"guestfs_set_network>)."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:409
+msgid "Only supports Linux guests (not Windows, BSD, etc)."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:413
+msgid ""
+"Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:418
+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:423
+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:432
+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:440
+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:443
+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:446
+msgid "CONFIGURATION FILES"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:448
+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:453
+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:457
+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:461
+msgid "SELINUX"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:463
+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:471
+msgid "Before launching, do:"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs.pod:473
+#, no-wrap
+msgid ""
+" guestfs_set_selinux (g, 1);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:477
+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:481
+#, no-wrap
+msgid ""
+" guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:483
+msgid ""
+"(Older versions of C<load_policy> require you to specify the name of the "
+"policy file)."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:488
+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:492
+#, no-wrap
+msgid ""
+" guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:496
+msgid "This will work for running commands and editing existing files."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:498
+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:502
+msgid "UMASK"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:504
+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:510
+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:513
+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:517
+msgid "For more information about umask, see L<umask(2)>."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:521
+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:527
+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:530
+msgid ""
+"Then open these devices by calling L</guestfs_luks_open>. Obviously you "
+"will require the passphrase!"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:533
+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:539
+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:543
+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:550
+msgid "INSPECTION"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:552
+msgid ""
+"Libguestfs has APIs for inspecting an unknown disk image to find out if it "
+"contains operating systems, an install CD or a live CD. (These APIs used to "
+"be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
+"version 1.5.3 the most frequently used part of this library has been "
+"rewritten in C and moved into the core code)."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:559
+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:562
+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:571
+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:577
+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:584
+#, 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:588
+msgid ""
+"The caller can then make calls to L</guestfs_mount_options> to mount the "
+"filesystems as suggested."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:591
+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:595
+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:599
+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:603
+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_applications> 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:612
+msgid "INSPECTING INSTALL DISKS"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:614
+msgid ""
+"Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
+"CDs and more."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:617
+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:621
+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:626
+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:631
+msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:633
+msgid ""
+"Libguestfs can mount NTFS partitions. It does this using the L<http://www."
+"ntfs-3g.org/> driver."
+msgstr ""
+
+#. type: =head3
+#: ../src/guestfs.pod:636
+msgid "DRIVE LETTERS AND PATHS"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:638
+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:644
+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:647
+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:651
+msgid ""
+"To resolve the case insensitivity of paths, call L</"
+"guestfs_case_sensitive_path>."
+msgstr ""
+
+#. type: =head3
+#: ../src/guestfs.pod:654
+msgid "ACCESSING THE WINDOWS REGISTRY"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:656
+msgid ""
+"Libguestfs also provides some help for decoding Windows Registry \"hive\" "
+"files, through the library C<hivex> which is part of the libguestfs project "
+"although ships as a separate tarball. You have to locate and download the "
+"hive file(s) yourself, and then pass them to C<hivex> functions. See also "
+"the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
+"reg(1)> for more help on this issue."
+msgstr ""
+
+#. type: =head3
+#: ../src/guestfs.pod:664
+msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:666
+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:670
+msgid ""
+"L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
+"symbolic-links/>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:672
+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:679
+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:684
+msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:686
+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:689
+msgid ""
+"L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs.pod:691
+msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:693
+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:696
+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:702
+msgid ""
+"Error messages are automatically transformed into exceptions if the language "
+"supports it."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:705
+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:711
+msgid "B<C++>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:713
+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:717
+msgid "B<C#>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:719
+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:722
+msgid "B<Haskell>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:724
+msgid ""
+"This is the only language binding that is working but incomplete. Only "
+"calls which return simple integers have been bound in Haskell, and we are "
+"looking for help to complete this binding."
+msgstr ""
+
+#. type: =item
+#: ../src/guestfs.pod:728
+msgid "B<Java>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:730
+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:733
+msgid "B<OCaml>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:735
+msgid "See L<guestfs-ocaml(3)>."
+msgstr ""
+
+#. type: =item
+#: ../src/guestfs.pod:737
+msgid "B<Perl>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:739
+msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
+msgstr ""
+
+#. type: =item
+#: ../src/guestfs.pod:741
+msgid "B<PHP>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:743
+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:746
+msgid "The PHP binding only works correctly on 64 bit machines."
+msgstr ""
+
+#. type: =item
+#: ../src/guestfs.pod:748
+msgid "B<Python>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:750
+msgid "See L<guestfs-python(3)>."
+msgstr ""
+
+#. type: =item
+#: ../src/guestfs.pod:752
+msgid "B<Ruby>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:754
+msgid "See L<guestfs-ruby(3)>."
+msgstr ""
+
+#. type: =item
+#: ../src/guestfs.pod:756
+msgid "B<shell scripts>"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:758
+msgid "See L<guestfish(1)>."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs.pod:762
+msgid "LIBGUESTFS GOTCHAS"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:764
+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:768
+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:776
+msgid "Autosync / forgetting to sync."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:778
+msgid ""
+"I<Update:> Autosync is enabled by default for all API users starting from "
+"libguestfs 1.5.24. This section only applies to older versions."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:781
+msgid ""
+"When modifying a filesystem from C or another language, you B<must> unmount "
+"all filesystems and call L</guestfs_sync> explicitly before you close the "
+"libguestfs handle. You can also call:"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs.pod:785
+#, no-wrap
+msgid ""
+" guestfs_set_autosync (g, 1);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:787
+msgid ""
+"to have the unmount/sync done automatically for you when the handle 'g' is "
+"closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:791
+msgid ""
+"If you forget to do this, then it is entirely possible that your changes "
+"won't be written out, or will be partially written, or (very rarely) that "
+"you'll get disk corruption."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:795
+msgid ""
+"Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
+"guestfish scripts that forget to sync will work just fine, which can make "
+"this very puzzling if you are trying to debug a problem."
+msgstr ""
+
+#. type: =item
+#: ../src/guestfs.pod:799
+msgid "Mount option C<-o sync> should not be the default."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:801
+msgid ""
+"If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
+"However C<-o sync> does not add any reliability benefit, but does have a "
+"very large performance impact."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:805
+msgid ""
+"The work around is to use L</guestfs_mount_options> and set the mount "
+"options that you actually want to use."
+msgstr ""
+
+#. type: =item
+#: ../src/guestfs.pod:808
+msgid "Read-only should be the default."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:810
+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:813
+msgid "This would reduce the potential to corrupt live VM images."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:815
+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:819
+msgid "guestfish command line is hard to use."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:821
+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:828
+msgid "guestfish megabyte modifiers don't work right on all commands"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:830
+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:837
+msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs.pod:839
+#, no-wrap
+msgid ""
+" lvcreate LV VG 100M\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:841
+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:846
+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:849
+msgid "Ambiguity between devices and paths"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:851
+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:856
+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:862
+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:868
+#, no-wrap
+msgid ""
+" type path = Path of string | Device of int | Partition of int * int\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:870
+msgid "which would allow you to pass arguments like:"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs.pod:872
+#, 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:877
+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:882
+msgid "KEYS AND PASSPHRASES"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:884
+msgid ""
+"Certain libguestfs calls take a parameter that contains sensitive key "
+"material, passed in as a C string."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:887
+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:892
+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:897
+msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:899
+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:902
+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."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:906
+msgid ""
+"See the graphical program guestfs-browser for one possible architecture for "
+"multithreaded programs using libvirt and libguestfs."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs.pod:909
+msgid "PATH"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:911
+msgid ""
+"Libguestfs needs a supermin appliance, which it finds by looking along an "
+"internal path."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:914
+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:917
+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:924
+msgid "QEMU WRAPPERS"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:926
+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:930
+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:935
+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:938
+#, 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:942
+msgid ""
+"Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
+"then use it by setting the LIBGUESTFS_QEMU environment variable. For "
+"example:"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs.pod:946
+#, no-wrap
+msgid ""
+" LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:948
+msgid ""
+"Note that libguestfs also calls qemu with the -help and -version options in "
+"order to determine features."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs.pod:951
+msgid "ATTACHING TO RUNNING DAEMONS"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:953
+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:956
+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:960
+msgid "Using guestfs_set_attach_method"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:962
+msgid ""
+"By calling L</guestfs_set_attach_method> you can change how the library "
+"connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
+"ARCHITECTURE> for some background)."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:966
+msgid ""
+"The normal attach method is C<appliance>, where a small appliance is created "
+"containing the daemon, and then the library connects to this."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:969
+msgid ""
+"Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
+"Unix domain socket) causes L</guestfs_launch> to connect to an existing "
+"daemon over the Unix domain socket."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:973
+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:977
+msgid "Using guestfs_add_domain with live flag"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:979
+msgid ""
+"L</guestfs_add_domain> provides some help for getting the correct attach "
+"method. If you pass the C<live> option to this function, then (if the "
+"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:985
+#, 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:997
+msgid ""
+"L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
+"method to C<unix:/path/to/socket>."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1000
+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:1004
+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:1008
+msgid "ABI GUARANTEE"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1010
+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:1016
+msgid "BLOCK DEVICE NAMING"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1018
+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:1030
+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:1034
+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:1039
+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:1045
+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."
+msgstr ""
+
+#. type: =head3
+#: ../src/guestfs.pod:1050
+msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1052
+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:1058
+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:1066
+msgid "Is the string a parameter which is a device or partition name?"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1070
+msgid "Does the string begin with C</dev/sd>?"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1074
+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:1079
+msgid "Replace initial C</dev/sd> string with C</dev/hd>."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1081
+msgid "For example, change C</dev/sda2> to C</dev/hda2>."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1083
+msgid "If that named device exists, use it. If not, continue."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1087
+msgid "Replace initial C</dev/sd> string with C</dev/vd>."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1089
+msgid "If that named device exists, use it. If not, return an error."
+msgstr ""
+
+#. type: =head3
+#: ../src/guestfs.pod:1093
+msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1095
+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:1099
+msgid ""
+"Where possible for maximum future portability programs using libguestfs "
+"should use these future-proof techniques:"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1106
+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:1109
+msgid ""
+"Since those device names exist by definition, they will never be translated."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1114
+msgid ""
+"Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
+"filesystem labels."
+msgstr ""
+
+#. type: =head1
+#: ../src/guestfs.pod:1119
+msgid "SECURITY"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1121
+msgid ""
+"This section discusses security implications of using libguestfs, "
+"particularly with untrusted or malicious guests or disk images."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs.pod:1124
+msgid "GENERAL SECURITY CONSIDERATIONS"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1126
+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:1136
+msgid "the data (file etc) not being present"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1140
+msgid "being present but empty"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1144
+msgid "being much larger than normal"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1148
+msgid "containing arbitrary 8 bit data"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1152
+msgid "being in an unexpected character encoding"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1156
+msgid "containing homoglyphs."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs.pod:1160
+msgid "SECURITY OF MOUNTING FILESYSTEMS"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1162
+msgid ""
+"When you mount a filesystem under Linux, mistakes in the kernel filesystem "
+"(VFS) module can sometimes be escalated into exploits by deliberately "
+"creating a malicious, malformed 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 obscure or unexpected for "
+"the administrator. 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:1175
+msgid ""
+"That explains why you should never mount a filesystem from an untrusted "
+"guest on your host kernel. How about libguestfs? We run a Linux kernel "
+"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. 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:1186