Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jan 2018 11:19:19 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r328217 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201801211119.w0LBJJRx071703@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Sun Jan 21 11:19:18 2018
New Revision: 328217
URL: https://svnweb.freebsd.org/changeset/base/328217

Log:
  zfs: no need to check that size of zfs_cmd_t is not greater than IOCPARM_MAX
  
  Nowadays we do not pass zfs_cmd_t directly through the ioctl interface.
  Instead a small zfs_iocparm_t object is passed and the command is
  explicitly copied in and out.  So, the check has become irrelevant.
  
  MFC after:	3 weeks
  Sponsored by:	Panzura

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	Sun Jan 21 10:43:01 2018	(r328216)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c	Sun Jan 21 11:19:18 2018	(r328217)
@@ -204,7 +204,6 @@
 #include "lua.h"
 #include "lauxlib.h"
 
-CTASSERT(sizeof(zfs_cmd_t) < IOCPARM_MAX);
 static struct cdev *zfsdev;
 
 extern void zfs_init(void);



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