diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-11-20 23:12:35 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-11-20 23:12:35 +0000 |
commit | bd17bba359ecf2749e18c98b354a2633d35f88ac (patch) | |
tree | 6fa4eb4e27ff058123d24decbd1f0ccac8d126b1 /pkg/p9/version.go | |
parent | a98f44c8726eeec97e8b1e43978dd40d04d0b705 (diff) | |
parent | 012102eefd2b145ddee774cba28e4fa889fadd49 (diff) |
Merge release-20191114.0-16-g012102e (automated)
Diffstat (limited to 'pkg/p9/version.go')
-rw-r--r-- | pkg/p9/version.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkg/p9/version.go b/pkg/p9/version.go index f1ffdd23a..36a694c58 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 = 8 + highestSupportedVersion uint32 = 9 // lowestSupportedVersion is the lowest supported version X in a // version string of the format 9P2000.L.Google.X. @@ -155,3 +155,9 @@ func versionSupportsTallocate(v uint32) bool { func versionSupportsFlipcall(v uint32) bool { return v >= 8 } + +// VersionSupportsOpenTruncateFlag returns true if version v supports +// passing the OpenTruncate flag to Tlopen. +func VersionSupportsOpenTruncateFlag(v uint32) bool { + return v >= 9 +} |