diff options
author | Martin Brandenburg <martin@omnibond.com> | 2016-08-12 12:02:31 -0400 |
---|---|---|
committer | Martin Brandenburg <martin@omnibond.com> | 2016-08-12 15:12:54 -0400 |
commit | 482664ddba81b3a5404fd083bb9697dfffc0b6a4 (patch) | |
tree | f4dd0268a8cf58fd898f73dd7b26a0a9ef5d2eff /fs/orangefs/orangefs-dev-proto.h | |
parent | f2ee3b759593c184f1249e03d613a84b4b69db2b (diff) | |
download | lwn-482664ddba81b3a5404fd083bb9697dfffc0b6a4.tar.gz lwn-482664ddba81b3a5404fd083bb9697dfffc0b6a4.zip |
orangefs: add features op
This is a new userspace operation, which will be done if the client-core
version is greater than or equal to 2.9.6. This will provide a way to
implement optional features and to determine which features are
supported by the client-core. If the client-core version is older than
2.9.6, no optional features are supported and the op will not be done.
The intent is to allow protocol extensions without relying on the
client-core's current behavior of ignoring what it doesn't understand.
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Diffstat (limited to 'fs/orangefs/orangefs-dev-proto.h')
-rw-r--r-- | fs/orangefs/orangefs-dev-proto.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/orangefs/orangefs-dev-proto.h b/fs/orangefs/orangefs-dev-proto.h index 71902899b1da..a3d84ffee905 100644 --- a/fs/orangefs/orangefs-dev-proto.h +++ b/fs/orangefs/orangefs-dev-proto.h @@ -41,6 +41,10 @@ #define ORANGEFS_VFS_OP_FSYNC 0xFF00EE01 #define ORANGEFS_VFS_OP_FSKEY 0xFF00EE02 #define ORANGEFS_VFS_OP_READDIRPLUS 0xFF00EE03 +#define ORANGEFS_VFS_OP_FEATURES 0xFF00EE05 /* 2.9.6 */ + +/* features is a 64-bit unsigned bitmask */ +#define ORANGEFS_FEATURE_READAHEAD 1 /* * Misc constants. Please retain them as multiples of 8! |