]> git.ipfire.org Git - thirdparty/tvheadend.git/commit
fix storage space calculation
authorDaniel Becker <razzfazz@gmail.com>
Thu, 21 Sep 2017 04:42:39 +0000 (21:42 -0700)
committerJaroslav Kysela <perex@perex.cz>
Thu, 9 Nov 2017 14:50:24 +0000 (15:50 +0100)
commitbfa663532648ad6ecb5ea09ec7b560225cd46d15
tree3c982d7b340be9afded0a9d145f154153f6ebbc8
parent88508f58c792eb4a352dd4cfbcf7d57e63213c80
fix storage space calculation

The f_bfree and f_bavail members in struct statvfs are expressed in
units of f_frsize, not f_bsize (see the statvfs(2) manpage, e.g. here:
<https://linux.die.net/man/2/statvfs>). The two can differ quite
substantially, e.g. on ZFS.
src/dvr/dvr_vfsmgr.c