From e29dea04cbd2d71631aa524a2c8a9ac488dc2424 Mon Sep 17 00:00:00 2001 From: Alexander Nedotsukov Date: Tue, 9 Jun 2009 03:35:42 +0000 Subject: [PATCH] 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(-) diff --git a/usr.bin/fstat/zfs.c b/usr.bin/fstat/zfs.c index fc23261c76a..cc284fb58ba 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)