Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jun 2009 03:35:43 +0000 (UTC)
From:      Alexander Nedotsukov <bland@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r193799 - head/usr.bin/fstat
Message-ID:  <200906090335.n593Zh39054386@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bland (ports committer)
Date: Tue Jun  9 03:35:42 2009
New Revision: 193799
URL: http://svn.freebsd.org/changeset/base/193799

Log:
  Chase ZFS v13 import changes.
  This is a temporary fix until we find a way to avoid fstat
  to be broken each time we change the znode.
  
  Approved by:	lulf

Modified:
  head/usr.bin/fstat/zfs.c

Modified: head/usr.bin/fstat/zfs.c
==============================================================================
--- head/usr.bin/fstat/zfs.c	Tue Jun  9 03:27:08 2009	(r193798)
+++ head/usr.bin/fstat/zfs.c	Tue Jun  9 03:35:42 2009	(r193799)
@@ -29,6 +29,7 @@
 #include <sys/param.h>
 #define _KERNEL
 #include <sys/mount.h>
+#include <sys/taskqueue.h>
 #undef _KERNEL
 #include <sys/sysctl.h>
 
@@ -57,7 +58,7 @@
  * definition.
  */
 #define LOCATION_ZID (2 * sizeof(void *))
-#define LOCATION_ZPHYS(zsize) ((zsize) - (2 * sizeof(void *)))
+#define LOCATION_ZPHYS(zsize) ((zsize) - (2 * sizeof(void *) - sizeof(struct task)))
 
 int
 zfs_filestat(struct vnode *vp, struct filestat *fsp)



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