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
This commit is contained in:
Alexander Nedotsukov 2009-06-09 03:35:42 +00:00
parent fb70e72b0c
commit e29dea04cb

View File

@ -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)