summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-11-04 23:15:26 +0000
committerRichard Jones <rjones@redhat.com>2009-11-10 16:32:20 +0000
commitb1e1ca2f74a921b3f784537d59c617df29ea1d60 (patch)
tree2aff7ca53f4314e5dcb12236a86583a9c00777f2 /java
parentb03995b67f9bc23d066b282bb7dad9b7c71c90da (diff)
downloadlibguestfs-b1e1ca2f74a921b3f784537d59c617df29ea1d60.tar.gz
libguestfs-b1e1ca2f74a921b3f784537d59c617df29ea1d60.tar.xz
libguestfs-b1e1ca2f74a921b3f784537d59c617df29ea1d60.zip
Generic partition creation interface.
This commit introduces a generic partition creation interface which should be future-proof and extensible, and partially replaces the old sfdisk-based interface. The implementation is based on parted but is hopefully not too dependent on the particulars of parted. The following new calls are introduced: guestfs_part_init: Initialize a disk with a partition table. Unlike the sfdisk- based interface, we also support GPT and other partition types, which is essential to scale to devices larger than 2TB. guestfs_part_add: Add a partition to an existing disk. guestfs_part_disk: Convenience function which combines part_init & part_add, creating a single partition that covers the whole disk. guestfs_part_set_bootable: guestfs_part_set_name: Set various aspects of existing partitions. guestfs_part_list: List partitions on a device. This returns a programming-friendly list of partition structs (in contrast to sfdisk-l which cannot be parsed). guestfs_part_get_parttype: Return the partition table type, eg. "msdos" or "gpt". The following calls are planned, but not added currently: guestfs_part_get_bootable guestfs_part_get_name guestfs_part_set_type guestfs_part_get_type
Diffstat (limited to 'java')
-rw-r--r--java/Makefile.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/java/Makefile.inc b/java/Makefile.inc
index 03b60497..c76184f1 100644
--- a/java/Makefile.inc
+++ b/java/Makefile.inc
@@ -29,4 +29,5 @@ java_built_sources = \
com/redhat/et/libguestfs/Version.java \
com/redhat/et/libguestfs/XAttr.java \
com/redhat/et/libguestfs/INotifyEvent.java \
+ com/redhat/et/libguestfs/Partition.java \
com/redhat/et/libguestfs/GuestFS.java