Registry / utility / dennwc-btrfs

dennwc-btrfs

JSON →
library0.0.0-20230312211831-a1f570bd01a1gogounverified

Go bindings for the Btrfs filesystem, providing access to subvolumes and snapshots.

go get github.com/dennwc/btrfs
INSTALL
IMPORT
SIG · DENNWC-BTRFS
D
dennwc-btrfs
utilitygov0.0.0-20230312211831-a1f570bd01a1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

btrfs
github.com/dennwc/btrfs

Open a Btrfs filesystem and read its label

package main import ( "fmt" "github.com/dennwc/btrfs" ) func main() { fs, _ := btrfs.Open("/") defer fs.Close() fmt.Println(fs.Label()) }
Debug
Known issues
gotchaRequires root privileges or CAP_SYS_ADMIN to access Btrfs ioctls.
fix
Run the program with sudo or appropriate capabilities
affects: *
Upgrade
Version history
0.0.0-20230312211831-a1f570bd01a1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
dennwc-btrfs — go get dennwc-btrfs · libregistry