Ported disk free space checking code to work on Solaris.
On Solaris, using f_bsize provided a value that is apparently much larger than the real block size. The solaris docs for statvfs say f_bsize is the "preferred" file system block size, and I guess the filesystem prefers larger blocks, but uses smaller ones or something. The docs also say that f_frsize is the "fundamental" block size. Switched to using f_frsize on Linux and kFreeBSD too, since I guess f_bsize could in theory vary the same way there too. Assuming that Solaris is not violating the posix spec, I guess the linux man page for statvfs is not as well written and I misunderstood it.
This commit is contained in:
parent
cdbce512bd
commit
06f1f03e7a
2 changed files with 7 additions and 3 deletions
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -10,6 +10,7 @@ git-annex (5.20150931) UNRELEASED; urgency=medium
|
|||
* reinject: Already verified content; this can now be disabled by
|
||||
setting annex.verify=false.
|
||||
* Allow building with S3 disabled again.
|
||||
* Ported disk free space checking code to work on Solaris.
|
||||
|
||||
-- Joey Hess <id@joeyh.name> Thu, 01 Oct 2015 12:42:56 -0400
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue