summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormm <mm@FreeBSD.org>2013-06-29 16:45:37 +0000
committermm <mm@FreeBSD.org>2013-06-29 16:45:37 +0000
commit8bf5f6d72deb319ed6e779603ae1de444417e17d (patch)
tree35725a543c67af33c948d2d7c6f03db725b2d68a /sys
parentfb34da0b96a663c25696aa4cd28d87b579d9ccde (diff)
downloadFreeBSD-src-8bf5f6d72deb319ed6e779603ae1de444417e17d.zip
FreeBSD-src-8bf5f6d72deb319ed6e779603ae1de444417e17d.tar.gz
Unbreak "zfs jail" and "zfs unjail" (broken since r248571)
I missed to register zfs_ioc_jail and zfs_ioc_unjail as legacy ioctl's with the new zfs_ioctl_register_legacy() function. These operations do not modify pools or datasets so there is no need to log them to pool history. Reported by: Alexander Leidinger <ale@FreeBSD.org> and others on current@ MFC after: 3 days
Diffstat (limited to 'sys')
-rw-r--r--sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
index ff9067e..a4ae7aa 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
@@ -5570,6 +5570,13 @@ zfs_ioctl_init(void)
zfs_ioctl_register_dataset_nolog(ZFS_IOC_TMP_SNAPSHOT,
zfs_ioc_tmp_snapshot, zfs_secpolicy_tmp_snapshot,
POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY);
+
+#ifdef __FreeBSD__
+ zfs_ioctl_register_dataset_nolog(ZFS_IOC_JAIL, zfs_ioc_jail,
+ zfs_secpolicy_config, POOL_CHECK_NONE);
+ zfs_ioctl_register_dataset_nolog(ZFS_IOC_UNJAIL, zfs_ioc_unjail,
+ zfs_secpolicy_config, POOL_CHECK_NONE);
+#endif
}
int
OpenPOWER on IntegriCloud