From d700637207b7e3870badcdb8389646a865835627 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 12 Jan 2011 11:22:34 -0800 Subject: [PATCH] Minimal VFS additions This patch simply removes the place holder vfs_t type and includes some generic Linux VFS headers. It also makes some minor fid_t additions for compatibility. --- include/sys/vfs.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/include/sys/vfs.h b/include/sys/vfs.h index b18c909..cc6c3b6 100644 --- a/include/sys/vfs.h +++ b/include/sys/vfs.h @@ -25,11 +25,14 @@ #ifndef _SPL_ZFS_H #define _SPL_ZFS_H -typedef struct vfs { - int foo; -} vfs_t; +#include +#include +#include +#include +#include +#include -#define MAXFIDSZ 64 +#define MAXFIDSZ 64 typedef struct fid { union { @@ -41,4 +44,7 @@ typedef struct fid { } un; } fid_t; +#define fid_len un._fid.len +#define fid_data un._fid.data + #endif /* SPL_ZFS_H */ -- 2.40.0