Closed sprhawk closed 4 years ago
Hi!
I was thinking about storing the path of the subvolume inside the Subvolume
struct, too. I think that would solve this issue.
Hi! I was thinking about storing the path of the subvolume inside the
Subvolume
struct, too. I think that would solve this issue.
Yeah, sure, it will do. And I think it needs to transform relative path into absolute path too if you save that path.
Waiting to see what happens to this: https://github.com/kdave/btrfs-progs/issues/252
Fixed by #14
Cool
Some functions in libbtrfsutil, like
btrfs_subvolume_create_snapshot
, do not require privilege (CAP_SYS_ADMIN), But insideSubvolume::snapshot
, it callsSubvolume::path
, which requires privilege, that cause these functions require privilege too.