From: Caine Tighe Date: Thu, 17 Mar 2011 17:57:36 +0000 (-0400) Subject: os: remove fstat TODO X-Git-Tag: weekly.2011-03-28~100 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b3166bcb8e0a3cda0b3f81e88c66f73deb734641;p=gostls13.git os: remove fstat TODO R=rsc CC=golang-dev https://golang.org/cl/3559041 --- diff --git a/src/pkg/os/dir_darwin.go b/src/pkg/os/dir_darwin.go index 861bcef27d..55d96879cf 100644 --- a/src/pkg/os/dir_darwin.go +++ b/src/pkg/os/dir_darwin.go @@ -10,7 +10,7 @@ import ( ) const ( - blockSize = 4096 // TODO(r): use statfs + blockSize = 4096 ) // Readdirnames reads the contents of the directory associated with file and @@ -23,7 +23,6 @@ func (file *File) Readdirnames(count int) (names []string, err Error) { if file.dirinfo == nil { file.dirinfo = new(dirInfo) // The buffer must be at least a block long. - // TODO(r): use fstatfs to find fs block size. file.dirinfo.buf = make([]byte, blockSize) } d := file.dirinfo diff --git a/src/pkg/os/dir_freebsd.go b/src/pkg/os/dir_freebsd.go index 2ebe368a65..c9802e3362 100644 --- a/src/pkg/os/dir_freebsd.go +++ b/src/pkg/os/dir_freebsd.go @@ -10,7 +10,7 @@ import ( ) const ( - blockSize = 4096 // TODO(r): use statfs + blockSize = 4096 ) func (file *File) Readdirnames(count int) (names []string, err Error) { @@ -18,7 +18,6 @@ func (file *File) Readdirnames(count int) (names []string, err Error) { if file.dirinfo == nil { file.dirinfo = new(dirInfo) // The buffer must be at least a block long. - // TODO(r): use fstatfs to find fs block size. file.dirinfo.buf = make([]byte, blockSize) } d := file.dirinfo diff --git a/src/pkg/os/dir_linux.go b/src/pkg/os/dir_linux.go index 09aad6367d..554b98a140 100644 --- a/src/pkg/os/dir_linux.go +++ b/src/pkg/os/dir_linux.go @@ -10,7 +10,7 @@ import ( ) const ( - blockSize = 4096 // TODO(r): use statfs + blockSize = 4096 ) func clen(n []byte) int { @@ -27,7 +27,6 @@ func (file *File) Readdirnames(count int) (names []string, err Error) { if file.dirinfo == nil { file.dirinfo = new(dirInfo) // The buffer must be at least a block long. - // TODO(r): use fstatfs to find fs block size. file.dirinfo.buf = make([]byte, blockSize) } d := file.dirinfo