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

RFC: btrfs plugin: use libbtrfsutil #999

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Mar 4, 2024

  1. btrfs: link against libbtrfsutil

    libblockdev has historically used btrfs-progs CLI utilities in the
    meanwhile libbtrfsutil has been developed and used by snapper.
    
    Not parsing CLI output and using the library functions should provide a
    more stable way to gather information from btrfs.
    jelly committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    40f1df9 View commit details
    Browse the repository at this point in the history
  2. btrfs: use libbtrfsutil for get/set default subvolume

    libbtrfsutil provides it's own error enum for libbtrfsutil functions and
    as we no longer parse output this introduces a BD_BTRFS_ERROR_NOT_FOUND
    error type. As the mount point not being found is the most likely
    failure scenario.
    jelly committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    2b47e34 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2024

  1. btrfs: use libbtrfsutil for listing subvolumes

    Use libbtrfsutil's subvolume iterator to obtain a list of subvolumes in
    order. In the future this would allow exposing more information about a
    subvolume to list_subvolumes.
    jelly committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    3857501 View commit details
    Browse the repository at this point in the history
  2. btrfs: port create/delete subvolume to libbtrfsutil

    Avoids having to exec btrfs-progs and allows us to implement recursive
    subvolume deletion in the future.
    jelly committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    b7587d9 View commit details
    Browse the repository at this point in the history