From 7f2da90f38689c0dc0603116284b303e8351c297 Mon Sep 17 00:00:00 2001 From: bland Date: Tue, 9 Jun 2009 03:35:42 +0000 Subject: 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 --- usr.bin/fstat/zfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin') 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 #define _KERNEL #include +#include #undef _KERNEL #include @@ -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) -- cgit v1.1