summaryrefslogtreecommitdiffstats
path: root/java/com/redhat/et
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-05-18 20:22:53 +0100
committerRichard Jones <rjones@redhat.com>2009-05-18 20:22:53 +0100
commitca49c50e06834bbc68e21630a5552c57494f2b53 (patch)
tree0d1c98fd038abf05d7491f044c8affbfb461ce00 /java/com/redhat/et
parent0695593702b8612b500ff0b3bf800e5934f9b56e (diff)
downloadlibguestfs-ca49c50e06834bbc68e21630a5552c57494f2b53.tar.gz
libguestfs-ca49c50e06834bbc68e21630a5552c57494f2b53.tar.xz
libguestfs-ca49c50e06834bbc68e21630a5552c57494f2b53.zip
Generated code for lvresize, resize2fs.
Diffstat (limited to 'java/com/redhat/et')
-rw-r--r--java/com/redhat/et/libguestfs/GuestFS.java37
1 files changed, 37 insertions, 0 deletions
diff --git a/java/com/redhat/et/libguestfs/GuestFS.java b/java/com/redhat/et/libguestfs/GuestFS.java
index a6d6f6db..2846a80b 100644
--- a/java/com/redhat/et/libguestfs/GuestFS.java
+++ b/java/com/redhat/et/libguestfs/GuestFS.java
@@ -2914,4 +2914,41 @@ public class GuestFS {
private native void _vg_activate (long g, boolean activate, String[] volgroups)
throws LibGuestFSException;
+ /**
+ * resize an LVM logical volume
+ *
+ * This resizes (expands or shrinks) an existing LVM
+ * logical volume to "mbytes". When reducing, data in the
+ * reduced part is lost.
+ *
+ * @throws LibGuestFSException
+ */
+ public void lvresize (String device, int mbytes)
+ throws LibGuestFSException
+ {
+ if (g == 0)
+ throw new LibGuestFSException ("lvresize: handle is closed");
+ _lvresize (g, device, mbytes);
+ }
+ private native void _lvresize (long g, String device, int mbytes)
+ throws LibGuestFSException;
+
+ /**
+ * resize an ext2/ext3 filesystem
+ *
+ * This resizes an ext2 or ext3 filesystem to match the
+ * size of the underlying device.
+ *
+ * @throws LibGuestFSException
+ */
+ public void resize2fs (String device)
+ throws LibGuestFSException
+ {
+ if (g == 0)
+ throw new LibGuestFSException ("resize2fs: handle is closed");
+ _resize2fs (g, device);
+ }
+ private native void _resize2fs (long g, String device)
+ throws LibGuestFSException;
+
}