summaryrefslogtreecommitdiffhomepage
path: root/pkg/p9/version.go
diff options
context:
space:
mode:
authorDean Deng <deandeng@google.com>2020-01-16 14:25:56 -0800
committergVisor bot <gvisor-bot@google.com>2020-01-16 15:39:19 -0800
commit1e7f0c822b3a7c643d532d40a14ab79eb1df85c6 (patch)
tree2fd1baf1c3dd99af692327ee058d72570bfd4437 /pkg/p9/version.go
parentab48112e41427579ecf585f6280be1e2d58acf06 (diff)
Bump p9 version, adding corresponding checks to client_file.go.
PiperOrigin-RevId: 290145451
Diffstat (limited to 'pkg/p9/version.go')
-rw-r--r--pkg/p9/version.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkg/p9/version.go b/pkg/p9/version.go
index 36a694c58..34a15eb55 100644
--- a/pkg/p9/version.go
+++ b/pkg/p9/version.go
@@ -26,7 +26,7 @@ const (
//
// Clients are expected to start requesting this version number and
// to continuously decrement it until a Tversion request succeeds.
- highestSupportedVersion uint32 = 9
+ highestSupportedVersion uint32 = 10
// lowestSupportedVersion is the lowest supported version X in a
// version string of the format 9P2000.L.Google.X.
@@ -161,3 +161,9 @@ func versionSupportsFlipcall(v uint32) bool {
func VersionSupportsOpenTruncateFlag(v uint32) bool {
return v >= 9
}
+
+// versionSupportsGetSetXattr returns true if version v supports
+// the Tgetxattr and Tsetxattr messages.
+func versionSupportsGetSetXattr(v uint32) bool {
+ return v >= 10
+}