diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2009-06-29 16:05:22 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2009-06-29 16:05:22 +0100 |
commit | 5d6b6a3fbbfea19c606b984bac9cf64b6b81cafe (patch) | |
tree | b1d34b141b935fc6acc46930acd0496dfcc0df8b /java/com | |
parent | a548d51b703f5385797594a37287f4532af289a2 (diff) | |
download | libguestfs-5d6b6a3fbbfea19c606b984bac9cf64b6b81cafe.tar.gz libguestfs-5d6b6a3fbbfea19c606b984bac9cf64b6b81cafe.tar.xz libguestfs-5d6b6a3fbbfea19c606b984bac9cf64b6b81cafe.zip |
Generated code for mount-loop command.
Diffstat (limited to 'java/com')
-rw-r--r-- | java/com/redhat/et/libguestfs/GuestFS.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/java/com/redhat/et/libguestfs/GuestFS.java b/java/com/redhat/et/libguestfs/GuestFS.java index 8ab3a4fe..f2901497 100644 --- a/java/com/redhat/et/libguestfs/GuestFS.java +++ b/java/com/redhat/et/libguestfs/GuestFS.java @@ -3820,4 +3820,23 @@ public HashMap<String,String> test0rhashtableerr () private native String[] _initrd_list (long g, String path) throws LibGuestFSException; + /** + * mount a file using the loop device + * <p> + * This command lets you mount "file" (a filesystem image + * in a file) on a mount point. It is entirely equivalent + * to the command "mount -o loop file mountpoint". + * <p> + * @throws LibGuestFSException + */ + public void mount_loop (String file, String mountpoint) + throws LibGuestFSException + { + if (g == 0) + throw new LibGuestFSException ("mount_loop: handle is closed"); + _mount_loop (g, file, mountpoint); + } + private native void _mount_loop (long g, String file, String mountpoint) + throws LibGuestFSException; + } |