summaryrefslogtreecommitdiff
path: root/fs/orangefs/orangefs-cache.c
diff options
context:
space:
mode:
authorMartin Brandenburg <martin@omnibond.com>2016-08-12 19:02:31 +0300
committerMartin Brandenburg <martin@omnibond.com>2016-08-12 22:12:54 +0300
commit482664ddba81b3a5404fd083bb9697dfffc0b6a4 (patch)
treef4dd0268a8cf58fd898f73dd7b26a0a9ef5d2eff /fs/orangefs/orangefs-cache.c
parentf2ee3b759593c184f1249e03d613a84b4b69db2b (diff)
downloadlinux-482664ddba81b3a5404fd083bb9697dfffc0b6a4.tar.xz
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-cache.c')
-rw-r--r--fs/orangefs/orangefs-cache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/orangefs/orangefs-cache.c b/fs/orangefs/orangefs-cache.c
index eb0b6e00b519..aa3830b741c7 100644
--- a/fs/orangefs/orangefs-cache.c
+++ b/fs/orangefs/orangefs-cache.c
@@ -97,6 +97,8 @@ char *get_opname_string(struct orangefs_kernel_op_s *new_op)
return "OP_FSYNC";
else if (type == ORANGEFS_VFS_OP_FSKEY)
return "OP_FSKEY";
+ else if (type == ORANGEFS_VFS_OP_FEATURES)
+ return "OP_FEATURES";
}
return "OP_UNKNOWN?";
}