-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Document raised exceptions - Update README.md: - Update the example to the changed interface - Explain more - mirage-block-partition-mbr
- Loading branch information
Showing
3 changed files
with
26 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
module Make(B : Mirage_block.S) : sig | ||
include Mirage_block.S | ||
val connect : B.t -> ((Mbr.Partition.t * t) list, [ `Overlapping_partitions ]) result Lwt.t | ||
(** [connect b] returns a pair of [Mbr.Partition.t] from the MBR and a | ||
corresponding device representing the partition. An error is returned if | ||
any of the partitions overlap. | ||
@raise Invalid_argument if the the sector size of [b] is not exactly 512 bytes or if any of the partitions are outsie the device. | ||
@raise Failure if reading the MBR fails or does not parse. *) | ||
end |