Skip to content

cezarmathe/btrfsutil-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

btrfsutil-rs

Pre-release Checks btrfsutil docs libbtrfsutil version License: MIT

Safe wrappers for libbtrfsutil.

Building

This library links to libbtrfsutil, a shared library provided by installing btrfs-progs on most Linux systems.

  • Arch Linux: pacman -S btrfs-progs
  • Ubuntu: apt install btrfs-progs

Usage

Add the latest version to your project with:

cargo add btrfsutil

For further details, please refer to the documentation.

Also, please keep in mind that many of the operations this library can perform may require elevated privileges(CAP_SYSTEM_ADMIN).

Examples

Examples require elevated privileges. Environment variables can be used to run examples with sudo, like so:

CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER='sudo -E' cargo run --example subvolume_iterator_info

About

Safe wrappers for libbtrfsutil.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages