summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2009-06-29 16:03:54 +0100
committerRichard W.M. Jones <rjones@redhat.com>2009-06-29 16:03:54 +0100
commita548d51b703f5385797594a37287f4532af289a2 (patch)
treecc8a77bda99f9a3f8ec6160c6d3592958e72884e /src
parent25ebdcd50685c4364fc852feca201f8335d47b52 (diff)
downloadlibguestfs-a548d51b703f5385797594a37287f4532af289a2.tar.gz
libguestfs-a548d51b703f5385797594a37287f4532af289a2.tar.xz
libguestfs-a548d51b703f5385797594a37287f4532af289a2.zip
Add mount-loop command (RHBZ#508668).
Loop device mounts don't work for the generic 'mount' commands because the first parameter should be a file not a device. We want to separate out files parameters from device parameters in the long term, so this adds a new mount-loop command for this purpose.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/generator.ml8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/generator.ml b/src/generator.ml
index 2dfc8cb3..27a75868 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -2615,6 +2615,14 @@ Old Linux kernels (2.4 and earlier) used a compressed ext2
filesystem as initrd. We I<only> support the newer initramfs
format (compressed cpio files).");
+ ("mount_loop", (RErr, [String "file"; String "mountpoint"]), 129, [],
+ [],
+ "mount a file using the loop device",
+ "\
+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>.");
+
]
let all_functions = non_daemon_functions @ daemon_functions