possum-db 0.3.0

concurrent disk-backed cache supporting efficient direct file I/O, transactions, and snapshots using file cloning and sparse files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::*;

// I thought this would match the cluster size which can be 4KiB to 64KiB, but maybe Windows
// actually tracks down to the individual bytes.
const ZERO_DATA_OFFSET_ALIGNMENT: u64 = 1;

pub(crate) fn fd_min_hole_size(_file: &File) -> std::io::Result<u64> {
    Ok(ZERO_DATA_OFFSET_ALIGNMENT)
}

pub(crate) fn path_min_hole_size(_path: &Path) -> std::io::Result<u64> {
    Ok(ZERO_DATA_OFFSET_ALIGNMENT)
}