posix: Use sync.Pool buffers to copy in large buffers. (#3106)

These fixes are borrowed from the fixes required for GlusterFS i/o throughput.
This commit is contained in:
Harshavardhana
2016-10-26 17:14:05 -07:00
committed by GitHub
parent 8871eb8e1e
commit e9c45102b0
5 changed files with 33 additions and 11 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ func TestUNCPaths(t *testing.T) {
{string(bytes.Repeat([]byte("界"), 85)), true},
// Each path component must be <= 255 bytes long.
{string(bytes.Repeat([]byte("界"), 100)), false},
{`\\p\q\r\s\t`, true},
{`/p/q/r/s/t`, true},
}
// Instantiate posix object to manage a disk
var err error