Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Provide a bcachefs-tools library for other applications #188

Open
jelly opened this issue Dec 6, 2023 · 1 comment
Open

Provide a bcachefs-tools library for other applications #188

jelly opened this issue Dec 6, 2023 · 1 comment

Comments

@jelly
Copy link

jelly commented Dec 6, 2023

For libblockdev to support bcachefs it would be great to have a library shipped with bcachefs-tools, so we don't have to rely on parsing the output of bcachefs for getting devices, filesystem usage. btrfs-progs offers libbtrfsutil which has one notable user snapper.

One example where extra work has to be done is extracting the size / usage using regex which is quite brittle. Alternatively having JSON output would also be great for scripting with jq.

For reference, this is the libbtrfsutil reference

@jelly jelly changed the title Provide a bcache library for other applications Provide a bcachefs-tools library for other applications Dec 6, 2023
@koverstreet
Copy link
Owner

Yep, this needs to be worked on :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants