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.
This commit is contained in:
parent
647fa73cf3
commit
d700637207
|
@ -25,11 +25,14 @@
|
||||||
#ifndef _SPL_ZFS_H
|
#ifndef _SPL_ZFS_H
|
||||||
#define _SPL_ZFS_H
|
#define _SPL_ZFS_H
|
||||||
|
|
||||||
typedef struct vfs {
|
#include <linux/mount.h>
|
||||||
int foo;
|
#include <linux/fs.h>
|
||||||
} vfs_t;
|
#include <linux/dcache.h>
|
||||||
|
#include <linux/statfs.h>
|
||||||
|
#include <linux/xattr.h>
|
||||||
|
#include <linux/security.h>
|
||||||
|
|
||||||
#define MAXFIDSZ 64
|
#define MAXFIDSZ 64
|
||||||
|
|
||||||
typedef struct fid {
|
typedef struct fid {
|
||||||
union {
|
union {
|
||||||
|
@ -41,4 +44,7 @@ typedef struct fid {
|
||||||
} un;
|
} un;
|
||||||
} fid_t;
|
} fid_t;
|
||||||
|
|
||||||
|
#define fid_len un._fid.len
|
||||||
|
#define fid_data un._fid.data
|
||||||
|
|
||||||
#endif /* SPL_ZFS_H */
|
#endif /* SPL_ZFS_H */
|
||||||
|
|
Loading…
Reference in New Issue