mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-26 18:04:22 +03:00
Add missing callback_context_t and fid_t types
This commit is contained in:
parent
703e7a3cf4
commit
23f5c4c281
@ -5,4 +5,16 @@ typedef struct vfs {
|
||||
int foo;
|
||||
} vfs_t;
|
||||
|
||||
#define MAXFIDSZ 64
|
||||
|
||||
typedef struct fid {
|
||||
union {
|
||||
long fid_pad;
|
||||
struct {
|
||||
ushort_t len; /* length of data in bytes */
|
||||
char data[MAXFIDSZ];/* data (variable len) */
|
||||
} _fid;
|
||||
} un;
|
||||
} fid_t;
|
||||
|
||||
#endif /* SPL_ZFS_H */
|
||||
|
@ -187,9 +187,16 @@ typedef struct vn_file {
|
||||
kmutex_t f_lock; /* struct lock */
|
||||
loff_t f_offset; /* offset */
|
||||
vnode_t *f_vnode; /* vnode */
|
||||
struct list_head f_list; /* list of referenced file_t's */
|
||||
struct list_head f_list /* list referenced file_t's */
|
||||
} file_t;
|
||||
|
||||
typedef struct caller_context {
|
||||
pid_t cc_pid; /* Process ID of the caller */
|
||||
int cc_sysid; /* System ID, used for remote calls */
|
||||
u_longlong_t cc_caller_id; /* Identifier for (set of) caller(s) */
|
||||
ulong_t cc_flags;
|
||||
} caller_context_t;
|
||||
|
||||
extern vnode_t *vn_alloc(int flag);
|
||||
void vn_free(vnode_t *vp);
|
||||
extern int vn_open(const char *path, uio_seg_t seg, int flags, int mode,
|
||||
|
Loading…
Reference in New Issue
Block a user