#btrfs #interface #ioctl #io #fixes #upstream #fork

btrfs2

Interface for BTRFS ioctls etc | fork of the btrfs-crate containing fixes. Intent to yank crate once fixes are accepted upstream!

1 stable release

Uses old Rust 2015

1.2.2 Jun 19, 2017

#9 in #fixes

Download history 15/week @ 2024-03-11 24/week @ 2024-03-18 23/week @ 2024-03-25 53/week @ 2024-04-01 10/week @ 2024-04-08 14/week @ 2024-04-15 17/week @ 2024-04-22 11/week @ 2024-04-29 16/week @ 2024-05-06 18/week @ 2024-05-13 16/week @ 2024-05-20 7/week @ 2024-05-27 17/week @ 2024-06-03 11/week @ 2024-06-10 7/week @ 2024-06-17 22/week @ 2024-06-24

57 downloads per month
Used in 4 crates (2 directly)

MIT license

84KB
3.5K SLoC

Rust BTRFS library

Home page at rust-btrfs.com

Git repository at [gitlab.wellbehavedsoftware.com] (https://gitlab.wellbehavedsoftware.com/well-behaved-software/rust-btrfs)

Mirrord at github.com

Available from crates.io

Written by James Pharaoh

Documentation at docs.rs

Open sourced under the permissive [MIT licence] (https://opensource.org/licenses/MIT)

Description

This is a (somewhat incomplete) rust reimplementation of the rust userspace library. In fact, there isn't a C userspace library as such, but the userspace tools include lowlevel interfaces which this project is based on.

This is mostly here to implement the things I need for now, but I'm open to any contributions to make this the standard BTRFS userspace library for rust!

Supported features

This library consists of a number of wrappers around the BTRFS ioctls.

  • Deduplication (not BTRFS specific)
  • Fiemap (file extent map, not BTRFS specific)
  • File system info
  • Space and device info

BTRFS wiki

[BTRFS utilities (kdave)] (git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git)

[BTRFS utilities (mason)] (git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git)

Dependencies

~3MB
~57K SLoC