Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jun 2013 16:45:37 +0000 (UTC)
From:      Martin Matuska <mm@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r252380 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201306291645.r5TGjbGa037257@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mm
Date: Sat Jun 29 16:45:37 2013
New Revision: 252380
URL: http://svnweb.freebsd.org/changeset/base/252380

Log:
  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

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c	Sat Jun 29 16:05:44 2013	(r252379)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c	Sat Jun 29 16:45:37 2013	(r252380)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306291645.r5TGjbGa037257>