summaryrefslogtreecommitdiffstats
path: root/usr.bin/fstat
diff options
context:
space:
mode:
authorbland <bland@FreeBSD.org>2009-06-09 03:35:42 +0000
committerbland <bland@FreeBSD.org>2009-06-09 03:35:42 +0000
commit7f2da90f38689c0dc0603116284b303e8351c297 (patch)
tree9ba7afa19901e903c8e8e141497f28e42e37e2bd /usr.bin/fstat
parentd14474a66cf12fdd52ae5cd77c2c9676937dc738 (diff)
downloadFreeBSD-src-7f2da90f38689c0dc0603116284b303e8351c297.zip
FreeBSD-src-7f2da90f38689c0dc0603116284b303e8351c297.tar.gz
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
Diffstat (limited to 'usr.bin/fstat')
-rw-r--r--usr.bin/fstat/zfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/fstat/zfs.c b/usr.bin/fstat/zfs.c
index fc23261..cc284fb 100644
--- a/usr.bin/fstat/zfs.c
+++ b/usr.bin/fstat/zfs.c
@@ -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)
OpenPOWER on IntegriCloud