diff options
author | Ayush Ranjan <ayushranjan@google.com> | 2021-09-23 23:31:17 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-09-23 23:33:45 -0700 |
commit | 12175748aba75c0b3be5b3981763c1a1f5e73763 (patch) | |
tree | a8096ad5b526e05f9eece1e6a0883806746eaea3 /pkg/lisafs/testsuite | |
parent | 2b776633303f696a552d41ead53b33e594c812d1 (diff) |
Allow lisafs client to send more data than MaxMessageSize using chunks.
The p9 client does the same. This allows applications to read/write >= 2MB of
data. This enables the read write benchmarks to work with lisafs.
Updates #5466
PiperOrigin-RevId: 398659947
Diffstat (limited to 'pkg/lisafs/testsuite')
-rw-r--r-- | pkg/lisafs/testsuite/testsuite.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/lisafs/testsuite/testsuite.go b/pkg/lisafs/testsuite/testsuite.go index 476ff76a5..5fc7c364d 100644 --- a/pkg/lisafs/testsuite/testsuite.go +++ b/pkg/lisafs/testsuite/testsuite.go @@ -330,8 +330,8 @@ func testRegularFileIO(ctx context.Context, t *testing.T, tester Tester, root li defer closeFD(ctx, t, fd) defer unix.Close(hostFD) - // Test Read/Write RPCs. - data := make([]byte, 100) + // Test Read/Write RPCs with 2MB of data to test IO in chunks. + data := make([]byte, 1<<21) rand.Read(data) if err := writeFD(ctx, t, fd, 0, data); err != nil { t.Fatalf("write failed: %v", err) |