diff options
author | bland <bland@FreeBSD.org> | 2009-06-09 03:35:42 +0000 |
---|---|---|
committer | bland <bland@FreeBSD.org> | 2009-06-09 03:35:42 +0000 |
commit | 7f2da90f38689c0dc0603116284b303e8351c297 (patch) | |
tree | 9ba7afa19901e903c8e8e141497f28e42e37e2bd /usr.bin/fstat | |
parent | d14474a66cf12fdd52ae5cd77c2c9676937dc738 (diff) | |
download | FreeBSD-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.c | 3 |
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) |