From owner-svn-src-head@FreeBSD.ORG Thu Sep 17 14:58:22 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1641E10656DD; Thu, 17 Sep 2009 14:58:22 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 040B28FC08; Thu, 17 Sep 2009 14:58:22 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n8HEwLeN061192; Thu, 17 Sep 2009 14:58:21 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n8HEwLYx061190; Thu, 17 Sep 2009 14:58:21 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <200909171458.n8HEwLYx061190@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Thu, 17 Sep 2009 14:58:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r197287 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Sep 2009 14:58:22 -0000 Author: pjd Date: Thu Sep 17 14:58:21 2009 New Revision: 197287 URL: http://svn.freebsd.org/changeset/base/197287 Log: Purge namecache for the file system being rolled back, so it doesn't point at invalid vnodes after the rollback resulting in EIO errors when trying to access files which are in the namecache. Reported by: des 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 Thu Sep 17 14:52:15 2009 (r197286) +++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c Thu Sep 17 14:58:21 2009 (r197287) @@ -2354,6 +2354,9 @@ zfs_ioc_rollback(zfs_cmd_t *zc) if (error == 0) { int resume_err; +#ifdef FREEBSD_NAMECACHE + cache_purgevfs(zfsvfs->z_vfs); +#endif ASSERT(strcmp(osname, zc->zc_name) == 0); error = dmu_objset_rollback(os); resume_err = zfs_resume_fs(zfsvfs, osname, mode);