1
0
mirror of https://github.com/golang/go synced 2024-11-17 23:04:56 -07:00

os: remove fstat TODO

R=rsc
CC=golang-dev
https://golang.org/cl/3559041
This commit is contained in:
Caine Tighe 2011-03-17 13:57:36 -04:00 committed by Russ Cox
parent 9ad091e178
commit b3166bcb8e
3 changed files with 3 additions and 6 deletions

View 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

View 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

View 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