summaryrefslogtreecommitdiffstats
path: root/perl
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2009-06-29 16:05:22 +0100
committerRichard W.M. Jones <rjones@redhat.com>2009-06-29 16:05:22 +0100
commit5d6b6a3fbbfea19c606b984bac9cf64b6b81cafe (patch)
treeb1d34b141b935fc6acc46930acd0496dfcc0df8b /perl
parenta548d51b703f5385797594a37287f4532af289a2 (diff)
downloadlibguestfs-5d6b6a3fbbfea19c606b984bac9cf64b6b81cafe.tar.gz
libguestfs-5d6b6a3fbbfea19c606b984bac9cf64b6b81cafe.tar.xz
libguestfs-5d6b6a3fbbfea19c606b984bac9cf64b6b81cafe.zip
Generated code for mount-loop command.
Diffstat (limited to 'perl')
-rw-r--r--perl/Guestfs.xs12
-rw-r--r--perl/lib/Sys/Guestfs.pm6
2 files changed, 18 insertions, 0 deletions
diff --git a/perl/Guestfs.xs b/perl/Guestfs.xs
index c0846d8f..f19ea1a1 100644
--- a/perl/Guestfs.xs
+++ b/perl/Guestfs.xs
@@ -2831,3 +2831,15 @@ PREINIT:
}
free (filenames);
+void
+mount_loop (g, file, mountpoint)
+ guestfs_h *g;
+ char *file;
+ char *mountpoint;
+PREINIT:
+ int r;
+ PPCODE:
+ r = guestfs_mount_loop (g, file, mountpoint);
+ if (r == -1)
+ croak ("mount_loop: %s", guestfs_last_error (g));
+
diff --git a/perl/lib/Sys/Guestfs.pm b/perl/lib/Sys/Guestfs.pm
index 144e127e..f0eb6a0f 100644
--- a/perl/lib/Sys/Guestfs.pm
+++ b/perl/lib/Sys/Guestfs.pm
@@ -962,6 +962,12 @@ on the underlying device.
The filesystem options C<sync> and C<noatime> are set with this
call, in order to improve reliability.
+=item $h->mount_loop ($file, $mountpoint);
+
+This command lets you mount C<file> (a filesystem image
+in a file) on a mount point. It is entirely equivalent to
+the command C<mount -o loop file mountpoint>.
+
=item $h->mount_options ($options, $device, $mountpoint);
This is the same as the C<$h-E<gt>mount> command, but it