From c63efa1ecee2c9cbb1ac3b64910e8048263a0859 Mon Sep 17 00:00:00 2001 From: Bolshevik Date: Tue, 1 May 2018 19:02:09 +0200 Subject: [PATCH] Fixed mapping in FromStatfsT for Darwin, previously it resulted into incorrect reporting of total and free space in the "df" command. --- fuse/types_darwin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fuse/types_darwin.go b/fuse/types_darwin.go index 5419d0bb9..4eb1641ab 100644 --- a/fuse/types_darwin.go +++ b/fuse/types_darwin.go @@ -148,6 +148,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. + s.Bsize = uint32(statfs.Bsize) + s.Frsize = uint32(statfs.Bsize) }