]> Cypherpunks repositories - gostls13.git/commitdiff
os: remove fstat TODO
authorCaine Tighe <arctanofyourface@gmail.com>
Thu, 17 Mar 2011 17:57:36 +0000 (13:57 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 17 Mar 2011 17:57:36 +0000 (13:57 -0400)
R=rsc
CC=golang-dev
https://golang.org/cl/3559041

src/pkg/os/dir_darwin.go
src/pkg/os/dir_freebsd.go
src/pkg/os/dir_linux.go

index 861bcef27d46f53ef8e3adac6e1d6eae94d15817..55d96879cff36312ee71b98ad06cf203df3d7b48 100644 (file)
@@ -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
index 2ebe368a65f8469f3e6cbbe710feaed158f7ee7a..c9802e3362eeefdfa57285f1130c7833eef3fdb2 100644 (file)
@@ -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
index 09aad6367d27f96ba2c93c769c64850833d1f254..554b98a14093a811c56f312522dc7d79158c85e4 100644 (file)
@@ -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