github.com/grailbio/base@v0.0.11/file/fsnodefuse/attr_linux.go (about) 1 package fsnodefuse 2 3 import "github.com/hanwen/go-fuse/v2/fuse" 4 5 // blockSize is defined in the stat(2) man page: 6 // The st_blocks field indicates the number of blocks allocated to the file, 512-byte units. (This may be smaller than st_size/512 when the file has holes.) 7 const blockSize = 512 8 9 func setBlockSize(a *fuse.Attr, size uint32) { 10 a.Blksize = size 11 }