)
const (
- blockSize = 4096 // TODO(r): use statfs
+ blockSize = 4096
)
// Readdirnames reads the contents of the directory associated with file and
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
)
const (
- blockSize = 4096 // TODO(r): use statfs
+ blockSize = 4096
)
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
)
const (
- blockSize = 4096 // TODO(r): use statfs
+ blockSize = 4096
)
func clen(n []byte) int {
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