X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=lib%2Fdiskimage.mli;h=0689a6913fd7c4525f71ebf0ff9c47ae015b05d4;hb=de49d4605c37574f38b55b400db310f368640c94;hp=b926193db343441f1c8a7d43ee1c43cd229aa3ee;hpb=e2895899d12b62600d3fe861e206e7538d159d29;p=virt-df.git diff --git a/lib/diskimage.mli b/lib/diskimage.mli index b926193..0689a69 100644 --- a/lib/diskimage.mli +++ b/lib/diskimage.mli @@ -203,6 +203,7 @@ and disk_content = and partitions = { parts_plugin_id : parts_plugin_id; (** Partitioning scheme. *) + parts_dev : device; (** Partitions (whole) device. *) parts : partition list; (** Partitions. *) } and partition = { @@ -239,6 +240,7 @@ and filesystem = { and pv = { lvm_plugin_id : lvm_plugin_id; (** The LVM plug-in which detected this. *) + pv_dev : device; (** Device covering whole PV. *) pv_uuid : string; (** UUID. *) } and lv = { @@ -256,7 +258,9 @@ val name_of_filesystem : fs_plugin_id -> string val name_of_lvm : lvm_plugin_id -> string (** Convert plug-in IDs to printable strings. *) -(** {2 Scanning functions} *) +(** {2 Functions} *) + +(** {3 Create 'machine'} *) val open_machine : string -> (string * string) list -> machine (** [open_machine m_name devs] @@ -278,6 +282,8 @@ val close_machine : machine -> unit opened by these devices. *) +(** {3 Scanning for filesystems} *) + val scan_machine : machine -> machine (** This does a complete scan of all devices owned by a machine, identifying all partitions, filesystems, physical and logical @@ -288,6 +294,13 @@ val scan_machine : machine -> machine Returns an updated {!machine} structure with the scan results. *) +(** {3 Create ownership tables} *) + +val create_ownership : machine -> (*ownership*)unit + (** This creates the ownership tables (mapping disk blocks to the + ultimate filesystem, etc., which owns each). + *) + (** {2 Debugging} *) val debug : bool ref