**** Merged from HEAD ****
2000-01-20 Martin Baulig <martin@home-of-linux.org> * fsusage.c (adjust_blocks): Use `u_int64_t' arguments and return value to avoid long int overflows on machines with large disks. * fsusage.h (struct fs_usage): Use `u_int64_t' here as well.
This commit is contained in:
committed by
Martin Baulig
parent
64b3db2dc0
commit
23c7449898
@@ -18,10 +18,10 @@
|
||||
/* Space usage statistics for a filesystem. Blocks are 512-byte. */
|
||||
struct fs_usage
|
||||
{
|
||||
long fsu_blocks; /* Total blocks. */
|
||||
long fsu_bfree; /* Free blocks available to superuser. */
|
||||
long fsu_bavail; /* Free blocks available to non-superuser. */
|
||||
long fsu_files; /* Total file nodes. */
|
||||
long fsu_ffree; /* Free file nodes. */
|
||||
u_int64_t fsu_blocks; /* Total blocks. */
|
||||
u_int64_t fsu_bfree; /* Free blocks available to superuser. */
|
||||
u_int64_t fsu_bavail; /* Free blocks available to non-superuser. */
|
||||
u_int64_t fsu_files; /* Total file nodes. */
|
||||
u_int64_t fsu_ffree; /* Free file nodes. */
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user