summaryrefslogtreecommitdiffstats
path: root/usr.bin/fstat
diff options
context:
space:
mode:
authorbland <bland@FreeBSD.org>2009-06-09 04:09:31 +0000
committerbland <bland@FreeBSD.org>2009-06-09 04:09:31 +0000
commitcd8208ffdba50996e9cc7811e953dd65d9bb9c5c (patch)
tree9bf1ed049ab8889bd6977c90c5cc11052752fcbb /usr.bin/fstat
parent7f2da90f38689c0dc0603116284b303e8351c297 (diff)
downloadFreeBSD-src-cd8208ffdba50996e9cc7811e953dd65d9bb9c5c.zip
FreeBSD-src-cd8208ffdba50996e9cc7811e953dd65d9bb9c5c.tar.gz
Fix bug in zphys offset calculation I introduced while retyping
original patch.
Diffstat (limited to 'usr.bin/fstat')
-rw-r--r--usr.bin/fstat/zfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/fstat/zfs.c b/usr.bin/fstat/zfs.c
index cc284fb..008f174 100644
--- a/usr.bin/fstat/zfs.c
+++ b/usr.bin/fstat/zfs.c
@@ -58,7 +58,7 @@
* definition.
*/
#define LOCATION_ZID (2 * sizeof(void *))
-#define LOCATION_ZPHYS(zsize) ((zsize) - (2 * sizeof(void *) - sizeof(struct task)))
+#define LOCATION_ZPHYS(zsize) ((zsize) - (2 * sizeof(void *) + sizeof(struct task)))
int
zfs_filestat(struct vnode *vp, struct filestat *fsp)
OpenPOWER on IntegriCloud