diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2009-06-29 16:03:54 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2009-06-29 16:03:54 +0100 |
commit | a548d51b703f5385797594a37287f4532af289a2 (patch) | |
tree | cc8a77bda99f9a3f8ec6160c6d3592958e72884e /src | |
parent | 25ebdcd50685c4364fc852feca201f8335d47b52 (diff) | |
download | libguestfs-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-x | src/generator.ml | 8 |
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 |