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:
parent
9ad091e178
commit
b3166bcb8e
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user