summaryrefslogtreecommitdiff
path: root/fs/orangefs/orangefs-kernel.h
diff options
context:
space:
mode:
authorMartin Brandenburg <martin@omnibond.com>2016-08-09 22:59:26 +0300
committerMartin Brandenburg <martin@omnibond.com>2016-08-09 23:25:51 +0300
commitf2ee3b759593c184f1249e03d613a84b4b69db2b (patch)
tree6e6bef9e829fa929c9858e6e906e843b703a2be3 /fs/orangefs/orangefs-kernel.h
parenta21aae3bb15a1d08040bdcf5a73504c0da9f5080 (diff)
downloadlinux-f2ee3b759593c184f1249e03d613a84b4b69db2b.tar.xz
orangefs: record userspace version for feature compatbility
The client reports its version to the kernel on startup. We already test that it is above the minimum version. Now we record it in a global variable so code elsewhere can consult it before making a request the client may not understand. Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Diffstat (limited to 'fs/orangefs/orangefs-kernel.h')
-rw-r--r--fs/orangefs/orangefs-kernel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/orangefs/orangefs-kernel.h b/fs/orangefs/orangefs-kernel.h
index 633c07a6e3d8..ff3566a8388f 100644
--- a/fs/orangefs/orangefs-kernel.h
+++ b/fs/orangefs/orangefs-kernel.h
@@ -506,6 +506,8 @@ ssize_t orangefs_inode_read(struct inode *inode,
/*
* 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);