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:
mckusick 2000-03-17 03:44:47 +00:00
parent c1a1c736a7
commit a02c1c5b8a

View File

@ -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.