Open GregorKopka opened 9 years ago
This sounds like a good use case for the propsed ZFS channels interface.
Very nice feature! Would appreciate that.
The ZFS Channel Programs project was recently merged: both zfs.list.children()
and zfs.sync.rollback()
, with some limitations (see below), can be used to perform recursive rollbacks.
Rollbacks can be performed on filesystems or zvols, but not on snapshots or mounted datasets. EBUSY is returned in the case where the filesystem is mounted.
I take it the same limitation (root only, as I suspect in https://github.com/zfsonlinux/zfs/issues/6041#issuecomment-364744480) applies?
@GregorKopka I was wondering if this feature request is completed, for you? In this case, feel free to close it.
As long as it is root only (can't be delegated to normal users): not really completed.
It would be great to have the option to rollback a complete dataset subtree, similar to zfs snapshot/destroy -r.
Sadly for zfs rollback -r is already used for recursive on the specified dataset (insted of the children, which is counterintuitive since on all other functions -r operates on child datasets).
Nevertheless, a way to rollback a complete subtree would be handy.