3 ms·
The disk is a block device, i.e. it reads and writes data in blocks, the system just abstracts that into a stream interface.
by GoblinSlayer 7y ago
The disk is a block device, i.e. it reads and writes data in blocks, the system just abstracts that into a stream interface.
- zaarn 7y agoYeah and that is IMO the wrong abstraction. Blocks on disk should be organized into records, where multiple blocks can belong to a single or multiple (if using dedup or Copy-on-Write) records. Implementing a performant stream over that can be done in libc with minimal overhead.
- GoblinSlayer 7y agoNow you want a different block structure.
- zaarn 7y agoNo? ZFS already organizes blocks on disks this way to some extend and Btrfs uses extends which include multiple blocks together and can be referenced multiple times.