2 * (C) 2001 Clemson University and The University of Chicago
4 * See COPYING in top-level directory.
11 * Sanitized this header file to fix
12 * 32-64 bit interaction issues between
13 * client-core and device
15 struct pvfs2_io_request_s {
21 struct pvfs2_object_kref refn;
22 enum PVFS_io_type io_type;
26 struct pvfs2_iox_request_s {
29 struct pvfs2_object_kref refn;
30 enum PVFS_io_type io_type;
34 struct pvfs2_lookup_request_s {
37 struct pvfs2_object_kref parent_refn;
38 char d_name[PVFS2_NAME_LEN];
41 struct pvfs2_create_request_s {
42 struct pvfs2_object_kref parent_refn;
43 struct PVFS_sys_attr_s attributes;
44 char d_name[PVFS2_NAME_LEN];
47 struct pvfs2_symlink_request_s {
48 struct pvfs2_object_kref parent_refn;
49 struct PVFS_sys_attr_s attributes;
50 char entry_name[PVFS2_NAME_LEN];
51 char target[PVFS2_NAME_LEN];
54 struct pvfs2_getattr_request_s {
55 struct pvfs2_object_kref refn;
60 struct pvfs2_setattr_request_s {
61 struct pvfs2_object_kref refn;
62 struct PVFS_sys_attr_s attributes;
65 struct pvfs2_remove_request_s {
66 struct pvfs2_object_kref parent_refn;
67 char d_name[PVFS2_NAME_LEN];
70 struct pvfs2_mkdir_request_s {
71 struct pvfs2_object_kref parent_refn;
72 struct PVFS_sys_attr_s attributes;
73 char d_name[PVFS2_NAME_LEN];
76 struct pvfs2_readdir_request_s {
77 struct pvfs2_object_kref refn;
79 __s32 max_dirent_count;
83 struct pvfs2_readdirplus_request_s {
84 struct pvfs2_object_kref refn;
86 __s32 max_dirent_count;
92 struct pvfs2_rename_request_s {
93 struct pvfs2_object_kref old_parent_refn;
94 struct pvfs2_object_kref new_parent_refn;
95 char d_old_name[PVFS2_NAME_LEN];
96 char d_new_name[PVFS2_NAME_LEN];
99 struct pvfs2_statfs_request_s {
104 struct pvfs2_truncate_request_s {
105 struct pvfs2_object_kref refn;
109 struct pvfs2_mmap_ra_cache_flush_request_s {
110 struct pvfs2_object_kref refn;
113 struct pvfs2_fs_mount_request_s {
114 char pvfs2_config_server[PVFS_MAX_SERVER_ADDR_LEN];
117 struct pvfs2_fs_umount_request_s {
120 char pvfs2_config_server[PVFS_MAX_SERVER_ADDR_LEN];
123 struct pvfs2_getxattr_request_s {
124 struct pvfs2_object_kref refn;
127 char key[PVFS_MAX_XATTR_NAMELEN];
130 struct pvfs2_setxattr_request_s {
131 struct pvfs2_object_kref refn;
132 struct PVFS_keyval_pair keyval;
137 struct pvfs2_listxattr_request_s {
138 struct pvfs2_object_kref refn;
139 __s32 requested_count;
144 struct pvfs2_removexattr_request_s {
145 struct pvfs2_object_kref refn;
148 char key[PVFS_MAX_XATTR_NAMELEN];
151 struct pvfs2_op_cancel_s {
155 struct pvfs2_fsync_request_s {
156 struct pvfs2_object_kref refn;
159 enum pvfs2_param_request_type {
160 PVFS2_PARAM_REQUEST_SET = 1,
161 PVFS2_PARAM_REQUEST_GET = 2
164 enum pvfs2_param_request_op {
165 PVFS2_PARAM_REQUEST_OP_ACACHE_TIMEOUT_MSECS = 1,
166 PVFS2_PARAM_REQUEST_OP_ACACHE_HARD_LIMIT = 2,
167 PVFS2_PARAM_REQUEST_OP_ACACHE_SOFT_LIMIT = 3,
168 PVFS2_PARAM_REQUEST_OP_ACACHE_RECLAIM_PERCENTAGE = 4,
169 PVFS2_PARAM_REQUEST_OP_PERF_TIME_INTERVAL_SECS = 5,
170 PVFS2_PARAM_REQUEST_OP_PERF_HISTORY_SIZE = 6,
171 PVFS2_PARAM_REQUEST_OP_PERF_RESET = 7,
172 PVFS2_PARAM_REQUEST_OP_NCACHE_TIMEOUT_MSECS = 8,
173 PVFS2_PARAM_REQUEST_OP_NCACHE_HARD_LIMIT = 9,
174 PVFS2_PARAM_REQUEST_OP_NCACHE_SOFT_LIMIT = 10,
175 PVFS2_PARAM_REQUEST_OP_NCACHE_RECLAIM_PERCENTAGE = 11,
176 PVFS2_PARAM_REQUEST_OP_STATIC_ACACHE_TIMEOUT_MSECS = 12,
177 PVFS2_PARAM_REQUEST_OP_STATIC_ACACHE_HARD_LIMIT = 13,
178 PVFS2_PARAM_REQUEST_OP_STATIC_ACACHE_SOFT_LIMIT = 14,
179 PVFS2_PARAM_REQUEST_OP_STATIC_ACACHE_RECLAIM_PERCENTAGE = 15,
180 PVFS2_PARAM_REQUEST_OP_CLIENT_DEBUG = 16,
181 PVFS2_PARAM_REQUEST_OP_CCACHE_TIMEOUT_SECS = 17,
182 PVFS2_PARAM_REQUEST_OP_CCACHE_HARD_LIMIT = 18,
183 PVFS2_PARAM_REQUEST_OP_CCACHE_SOFT_LIMIT = 19,
184 PVFS2_PARAM_REQUEST_OP_CCACHE_RECLAIM_PERCENTAGE = 20,
185 PVFS2_PARAM_REQUEST_OP_CAPCACHE_TIMEOUT_SECS = 21,
186 PVFS2_PARAM_REQUEST_OP_CAPCACHE_HARD_LIMIT = 22,
187 PVFS2_PARAM_REQUEST_OP_CAPCACHE_SOFT_LIMIT = 23,
188 PVFS2_PARAM_REQUEST_OP_CAPCACHE_RECLAIM_PERCENTAGE = 24,
189 PVFS2_PARAM_REQUEST_OP_TWO_MASK_VALUES = 25,
192 struct pvfs2_param_request_s {
193 enum pvfs2_param_request_type type;
194 enum pvfs2_param_request_op op;
196 char s_value[PVFS2_MAX_DEBUG_STRING_LEN];
199 enum pvfs2_perf_count_request_type {
200 PVFS2_PERF_COUNT_REQUEST_ACACHE = 1,
201 PVFS2_PERF_COUNT_REQUEST_NCACHE = 2,
202 PVFS2_PERF_COUNT_REQUEST_CAPCACHE = 3,
205 struct pvfs2_perf_count_request_s {
206 enum pvfs2_perf_count_request_type type;
210 struct pvfs2_fs_key_request_s {
215 struct pvfs2_upcall_s {
221 /* currently trailer is used only by readx/writex (iox) */
226 struct pvfs2_io_request_s io;
227 struct pvfs2_iox_request_s iox;
228 struct pvfs2_lookup_request_s lookup;
229 struct pvfs2_create_request_s create;
230 struct pvfs2_symlink_request_s sym;
231 struct pvfs2_getattr_request_s getattr;
232 struct pvfs2_setattr_request_s setattr;
233 struct pvfs2_remove_request_s remove;
234 struct pvfs2_mkdir_request_s mkdir;
235 struct pvfs2_readdir_request_s readdir;
236 struct pvfs2_readdirplus_request_s readdirplus;
237 struct pvfs2_rename_request_s rename;
238 struct pvfs2_statfs_request_s statfs;
239 struct pvfs2_truncate_request_s truncate;
240 struct pvfs2_mmap_ra_cache_flush_request_s ra_cache_flush;
241 struct pvfs2_fs_mount_request_s fs_mount;
242 struct pvfs2_fs_umount_request_s fs_umount;
243 struct pvfs2_getxattr_request_s getxattr;
244 struct pvfs2_setxattr_request_s setxattr;
245 struct pvfs2_listxattr_request_s listxattr;
246 struct pvfs2_removexattr_request_s removexattr;
247 struct pvfs2_op_cancel_s cancel;
248 struct pvfs2_fsync_request_s fsync;
249 struct pvfs2_param_request_s param;
250 struct pvfs2_perf_count_request_s perf_count;
251 struct pvfs2_fs_key_request_s fs_key;
255 #endif /* __UPCALL_H */