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

Remove trailing slash except for '/' mountpoints #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexadriaanse
Copy link

btrfs-snap is currently broken when used against root filesystems. For example, invoking .../btrfs-snap -r / daily 3 results in the following message:

btrfs subvolume show: too few arguments
usage: btrfs subvolume show <subvol-path>

    Show more information of the subvolume

ERROR:  is not a btrfs mountpoint (or old version of btrfs-tools, try > 0.19)

This broke in commit 30ef9f3, which set mp incorrectly for root mountpoints, causing mp to be set to '' instead of '/'. Switching to using readlink to fix this, which is more robust than using string manipulation.

Commit 30ef9f3 set mp incorrectly for root mountpoints, causing mp to be
set to '' instead of '/'. Switch to using readlink, which is more robust
than using string manipulation.
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

Successfully merging this pull request may close these issues.

None yet

1 participant