Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Consider using --subvolid when deleting subvolumes #1017

Open
vojtechtrefny opened this issue Feb 7, 2022 · 1 comment
Open

Consider using --subvolid when deleting subvolumes #1017

vojtechtrefny opened this issue Feb 7, 2022 · 1 comment

Comments

@vojtechtrefny
Copy link
Member

Not to suggest a change in strategy, but just extra info: it is possible to delete subvolumes without "line of sight" via path-to-suvolume. One is btrfs subvolume delete --subvolid <subvolid> option. Less obvious, is the example in libbtrfsutil, both C API and Python bindings have an _fd variant for removing subvolumes. There's also a recursive delete subvolume option, not available in the CLI commands.

Originally posted by @cmurf in #1015 (comment)

@vojtechtrefny
Copy link
Member Author

Thanks, this is definitely something we should consider doing in the future. We are also planning to switch libblockdev to use libbtrfsutil (storaged-project/libblockdev#552) so that might be also a good opportunity to change few things in the btrfs implementation in Blivet.

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

No branches or pull requests

1 participant