Skip to content

storage: Creating btrfs subvolumes doesn't check for duplicate mount points #21930

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

Open
mvollmer opened this issue Apr 17, 2025 · 0 comments
Open

Comments

@mvollmer
Copy link
Member

mvollmer commented Apr 17, 2025

Cockpit is supposed to prevent people from assigning the same mount point to multiple things. This doesn't work within the subvolumes of a single btrfs filesystem however.

  • Create btrfs filesystem, mount at "/run/butter"
  • Create subvolume in it, also mount at "/run/butter"
    => Cockpit writes two fstab entries for "/run/butter"

Instead it should prevent the creation of the subvolume with the error "Mount point /run/butter already used for top-level subvolume of ..."

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