Conversation
Passes basic and real testsuites
Also fixed a typo in `snapper.cc`
|
Hi @mumblepins (cc @aschnell). I'm new to ZFS and I was previously using snapper on BTRFS. I'd like to stick with a tool I know to manage my snapshots. I see this PR is stale and was not updated since its creation in 2017 so i wonder what's missing to see it merged? @aschnell, it seems that you're snapper's main dev, could you please review this changes and tell us what you think? I'm not a C++ developer but the changes look simple enough that I may be able to work on it if needed. @mumblepins, regarding your notes:
Could this be made a requirement for using snapper on ZFS, with a documentation statement and a warning logged at startup if ACLs aren't enabled?
Is it required that snapshots are stored in the In #145 @aschnell said that LVM snapshots were also not “visible” by default. I know it would be great to have something consistent with how snapshots are managed on BTRFS but, maybe we could do that in a future iteration if it's a blocking point.
Could you elaborate on this? If ZFS doesn't provide a way to sync deletion, could we just ignore the |
An initial version of Snapper with ZFS (#145); it at least passes the testsuite, and seems to work.
It uses the
zfsbinary as the front end. The calls are generally simple enough, and it seemed easier.Notes:
.zfs/snapshot). I'm using symlinks from.snapper/1/snapshot --> .zfs/snapshot/snapper-1. Oh yeah, snapshots are calledsnapper-#. I've put some stubs in the code for potentially using either bind mounts to this point or using the legacy mounting system.zfs mountdoesn't like to mount snapshots, and really, there's not much reason to.zpool get freeingstat as a substitute for thesynccommand. Kinda busy with lots of other things though, so if anyone else wants to implement it, be my guest.