Use 64-bit math to calculate if we have hit our freespace limit.
Necessary for coherent results on filesystems bigger than 0.5Tb.
This commit is contained in:
parent
c1a1c736a7
commit
a02c1c5b8a
@ -479,7 +479,8 @@ struct ocg {
|
||||
*/
|
||||
#define freespace(fs, percentreserved) \
|
||||
(blkstofrags((fs), (fs)->fs_cstotal.cs_nbfree) + \
|
||||
(fs)->fs_cstotal.cs_nffree - ((fs)->fs_dsize * (percentreserved) / 100))
|
||||
(fs)->fs_cstotal.cs_nffree - \
|
||||
((off_t)((fs)->fs_dsize) * (percentreserved) / 100))
|
||||
|
||||
/*
|
||||
* Determining the size of a file block in the file system.
|
||||
|
Loading…
x
Reference in New Issue
Block a user