]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r322230: MFV r322229: 7600 zfs rollback should pass target snapshot to kernel
authoravg <avg@FreeBSD.org>
Tue, 19 Sep 2017 09:19:19 +0000 (09:19 +0000)
committeravg <avg@FreeBSD.org>
Tue, 19 Sep 2017 09:19:19 +0000 (09:19 +0000)
commit03af9b6f36d60060354cb818e846e20f94b2e9f9
treec61a59e60b6f99f12a9864e7eeaf49a70196440b
parent1c74a3e176eb7699f6b489d505d4328c62ea76f5
MFC r322230: MFV r322229: 7600 zfs rollback should pass target snapshot to kernel

illumos/illumos-gate@77b171372ed21642e04c873ef1e87fe2365520df
https://github.com/illumos/illumos-gate/commit/77b171372ed21642e04c873ef1e87fe2365520df

https://www.illumos.org/issues/7600
  At present, the kernel side code seems to blindly rollback to whatever happens
  to be the latest snapshot at the time when the rollback task is processed.
  The expected target's name should be passed to the kernel driver and the sync
  task should validate that the target exists and that it is the latest snapshot
  indeed.

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Pavel Zakharov <pavel.zakharov@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Andriy Gapon <avg@FreeBSD.org>
cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c
cddl/contrib/opensolaris/lib/libzfs_core/common/libzfs_core.c
cddl/contrib/opensolaris/lib/libzfs_core/common/libzfs_core.h
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dsl_dataset.h
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c