Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
Fixed maximum volume size for darwin archs
Browse files Browse the repository at this point in the history
Signed-off-by: Xavier Lucas <xavier.lucas@corp.ovh.com>
  • Loading branch information
Xavier Lucas committed May 18, 2016
1 parent adcb56f commit 0da4298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion svfs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (s *SVFS) Statfs(ctx context.Context, req *fuse.StatfsRequest, resp *fuse.S
} else {
// Else there's theorically no limit to available storage space.
used := resp.Blocks
resp.Blocks = uint64(1<<64-1) / uint64(resp.Bsize)
resp.Blocks = uint64(1<<63-1) / uint64(resp.Bsize)
resp.Bavail = resp.Blocks - used
resp.Bfree = resp.Bavail
}
Expand Down

0 comments on commit 0da4298

Please sign in to comment.