/* this file implements the /dev/pvfs2-req device node */
+uint32_t userspace_version;
+
static int open_access_count;
#define DUMP_DEVICE_ERROR() \
return -EPROTO;
}
+ if (!userspace_version) {
+ userspace_version = head.version;
+ } else if (userspace_version != head.version) {
+ gossip_err("Error: userspace version changes\n");
+ return -EPROTO;
+ }
+
/* remove the op from the in progress hash table */
op = orangefs_devreq_remove_op(head.tag);
if (!op) {
gossip_debug(GOSSIP_DEV_DEBUG,
"pvfs2-client-core: device close complete\n");
open_access_count = 0;
+ userspace_version = 0;
mutex_unlock(&devreq_mutex);
return 0;
}
/*
* defined in devorangefs-req.c
*/
+extern uint32_t userspace_version;
+
int orangefs_dev_init(void);
void orangefs_dev_cleanup(void);
int is_daemon_in_service(void);