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. *)
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. *)