diff --git a/fuse/types_darwin.go b/fuse/types_darwin.go index 693fa69fe..b763f1cd8 100644 --- a/fuse/types_darwin.go +++ b/fuse/types_darwin.go @@ -151,16 +151,6 @@ func (s *StatfsOut) FromStatfsT(statfs *syscall.Statfs_t) { s.Bavail = statfs.Bavail s.Files = statfs.Files s.Ffree = statfs.Ffree - s.Bsize = uint32(statfs.Iosize) // Iosize translates to Bsize: the optimal transfer size. - s.Frsize = s.Bsize // Bsize translates to Frsize: the minimum transfer size. - - // The block counts are in units of statfs.Bsize. - // If s.Bsize != statfs.Bsize, we have to recalculate the block counts - // accordingly (s.Bsize is usually 256*statfs.Bsize). - if s.Bsize > statfs.Bsize { - adj := uint64(s.Bsize / statfs.Bsize) - s.Blocks /= adj - s.Bfree /= adj - s.Bavail /= adj - } + s.Bsize = uint32(statfs.Bsize) + s.Frsize = uint32(statfs.Bsize) }