libbtrfs 0.0.30

Rust library for working with the btrfs filesystem
Documentation
1
2
3
4
5
6
7
8
/// Get the supportes, send version for a btrfs filesystem. Default to v1 if version could not be
/// determined
pub(crate) fn supported_send_version() -> u32
{
    std::fs::read_to_string("/sys/fs/btrfs/features/send_stream_version")
        .map(|v| v.trim().parse::<u32>().unwrap_or(1))
        .unwrap_or(1)
}