2 * (C) 2001 Clemson University and The University of Chicago
4 * See COPYING in top-level directory.
8 * Definitions of downcalls used in Linux kernel module.
15 * Sanitized the device-client core interaction
16 * for clean 32-64 bit usage
18 struct orangefs_io_response {
22 struct orangefs_lookup_response {
23 struct orangefs_object_kref refn;
26 struct orangefs_create_response {
27 struct orangefs_object_kref refn;
30 struct orangefs_symlink_response {
31 struct orangefs_object_kref refn;
34 struct orangefs_getattr_response {
35 struct ORANGEFS_sys_attr_s attributes;
36 char link_target[ORANGEFS_NAME_MAX];
39 struct orangefs_mkdir_response {
40 struct orangefs_object_kref refn;
44 * duplication of some system interface structures so that I don't have
45 * to allocate extra memory
47 struct orangefs_dirent {
50 struct orangefs_khandle khandle;
53 struct orangefs_statfs_response {
61 struct orangefs_fs_mount_response {
64 struct orangefs_khandle root_khandle;
67 /* the getxattr response is the attribute value */
68 struct orangefs_getxattr_response {
71 char val[ORANGEFS_MAX_XATTR_VALUELEN];
74 /* the listxattr response is an array of attribute names */
75 struct orangefs_listxattr_response {
79 char key[ORANGEFS_MAX_XATTR_LISTLEN * ORANGEFS_MAX_XATTR_NAMELEN];
82 __s32 lengths[ORANGEFS_MAX_XATTR_LISTLEN];
85 struct orangefs_param_response {
92 #define PERF_COUNT_BUF_SIZE 4096
93 struct orangefs_perf_count_response {
94 char buffer[PERF_COUNT_BUF_SIZE];
97 #define FS_KEY_BUF_SIZE 4096
98 struct orangefs_fs_key_response {
101 char fs_key[FS_KEY_BUF_SIZE];
105 struct orangefs_features_response {
109 struct orangefs_downcall_s {
112 /* currently trailer is used only by readdir */
117 struct orangefs_io_response io;
118 struct orangefs_lookup_response lookup;
119 struct orangefs_create_response create;
120 struct orangefs_symlink_response sym;
121 struct orangefs_getattr_response getattr;
122 struct orangefs_mkdir_response mkdir;
123 struct orangefs_statfs_response statfs;
124 struct orangefs_fs_mount_response fs_mount;
125 struct orangefs_getxattr_response getxattr;
126 struct orangefs_listxattr_response listxattr;
127 struct orangefs_param_response param;
128 struct orangefs_perf_count_response perf_count;
129 struct orangefs_fs_key_response fs_key;
130 struct orangefs_features_response features;
134 struct orangefs_readdir_response_s {
136 __u64 directory_version;
138 __u32 orangefs_dirent_outcount;
139 struct orangefs_dirent *dirent_array;
142 #endif /* __DOWNCALL_H */