diff options
author | Uros Prestor <urosp@google.com> | 2020-04-02 22:01:57 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-04-02 22:03:20 -0700 |
commit | d151693530db68db43188ce0fbc9f81aa5f27e2e (patch) | |
tree | 1f721fd8660b0a48141ee1cf721bdebaa48bf2b0 /pkg/p9/messages_test.go | |
parent | dd3bc499970c22ebbd270030b4564e6b8e4e929e (diff) |
Avoid sending a partial dirent when the Rreaddir response exceeds message limit.
PiperOrigin-RevId: 304542967
Diffstat (limited to 'pkg/p9/messages_test.go')
-rw-r--r-- | pkg/p9/messages_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/p9/messages_test.go b/pkg/p9/messages_test.go index c20324404..7facc9f5e 100644 --- a/pkg/p9/messages_test.go +++ b/pkg/p9/messages_test.go @@ -216,7 +216,7 @@ func TestEncodeDecode(t *testing.T) { }, &Rreaddir{ // Count must be sufficient to encode a dirent. - Count: 0x18, + Count: 0x1a, Entries: []Dirent{{QID: QID{Type: 2}}}, }, &Tfsync{ |