Added some more common logical operators.
[virt-df.git] / lib / diskimage.mli
index 5711630..3f59bad 100644 (file)
@@ -108,6 +108,17 @@ class offset_device : string -> int64 -> int64 -> int -> device ->
        Useful for things like partitions.
     *)
 
+class blocksize_overlay : int -> device ->
+  object
+    method name : string
+    method size : int64
+    method read : int64 -> int -> string
+    method read_bitstring : int64 -> int -> Bitmatch.bitstring
+    method blocksize : int
+    method mapblock : int64 -> (device * int64) list
+  end
+    (** Change the blocksize of an existing device. *)
+
 val null_device : device
     (** The null device.  Any attempt to read generates an error. *)
 
@@ -195,7 +206,8 @@ and partition_content =
 
 and filesystem = {
   fs_plugin_id : fs_plugin_id;         (** Filesystem type. *)
-  fs_block_size : int64;               (** Block size (bytes). *)
+  fs_dev : device;                     (** Device containing the filesystem. *)
+  fs_blocksize : int;                  (** Block size (bytes). *)
   fs_blocks_total : int64;             (** Total blocks. *)
   fs_is_swap : bool;                   (** If swap, following not valid. *)
   fs_blocks_reserved : int64;          (** Blocks reserved for super-user. *)