cezarmathe / btrfsutil-rs

Safe wrappers for libbtrfsutil.
https://crates.io/crates/btrfsutil
MIT License
6 stars 5 forks source link

Subvolume::path() only works on btrfs root filesystem #3

Closed agrover closed 4 years ago

agrover commented 4 years ago

Calling btrfs_util_subvolume_path with path "/" only works if btrfs is the filesystem mounted at /. If I have a btrfs filesystem mounted at /mnt/btrfs (and some other filesystem type is mounted at /), the filesystem root that needs to be passed is /mnt/btrfs.

I think this means a Subvolume needs to have some way to remember its filesystem root.

cezarmathe commented 4 years ago

Yes, that is right. Thanks for pointing out!

cezarmathe commented 4 years ago

Fixed by #4