Block device abstraction for OCaml 5 with Eio direct-style I/O and Bytesrw integration
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

block: fix README — remove nonexistent of_flow, fix of_file path type

+3 -4
+3 -4
README.md
··· 12 12 13 13 - Eio direct-style I/O (no monads) 14 14 - Bytesrw integration for streaming access 15 - - Memory, file, and flow backends 15 + - Memory, file, string, and bigarray backends 16 16 - CRC32C integrity checking wrapper 17 17 - Sub-device views for partitioning 18 18 - Read-only wrapper ··· 30 30 Eio.Switch.run @@ fun sw -> 31 31 32 32 (* Create a file-backed block device *) 33 - let blk = Block.of_file ~sw env#fs "disk.img" ~sector_size:512 ~create:1000L () in 33 + let blk = Block.of_file ~sw Eio.Path.(env#fs / "disk.img") ~sector_size:512 ~create:1000L () in 34 34 let info = Block.info blk in 35 35 Printf.printf "Sectors: %Ld\n" info.sectors; 36 36 ··· 63 63 64 64 - `Block.of_memory` - In-memory device (for testing) 65 65 - `Block.of_string` - Read-only device from string 66 - - `Block.of_file` - File-backed device 67 - - `Block.of_flow` - Eio flow-backed device 66 + - `Block.of_file` - File-backed device (takes `Eio.Path.t`) 68 67 - `Block.of_bigarray` - Bigarray-backed device 69 68 70 69 ### Wrappers