Skip to content

Commit

Permalink
Upstream: cmd/zfs rollback [squash]
Browse files Browse the repository at this point in the history
Add zfs_rollback_os() call to the rollback logic, so platforms can
do specific requirements.

macOS: need to kick Finder to update.

Signed-off-by: Jorgen Lundman <lundman@lundman.net>
  • Loading branch information
lundman committed May 24, 2021
1 parent 47ca292 commit e4865cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/zfs/zfs_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4137,6 +4137,11 @@ zfs_do_rollback(int argc, char **argv)
*/
ret = zfs_rollback(zhp, snap, force);

#ifdef __APPLE__
if (ret == 0)
zfs_rollback_os(zhp);
#endif

out:
zfs_close(snap);
zfs_close(zhp);
Expand Down

0 comments on commit e4865cd

Please sign in to comment.