30 |
|
|
31 |
#include <config.h> |
#include <config.h> |
32 |
|
|
33 |
|
#include <stdio.h> |
34 |
|
#include <errno.h> |
35 |
|
|
36 |
|
#ifdef HAVE_STRINGS_H |
37 |
|
# include <strings.h> |
38 |
|
#endif |
39 |
|
|
40 |
|
#ifdef HAVE_TYPES_H |
41 |
|
# include <sys/types.h> |
42 |
|
#endif |
43 |
|
|
44 |
#ifdef HAVE_SYS_STATVFS_H |
#ifdef HAVE_SYS_STATVFS_H |
45 |
# include <sys/statvfs.h> |
# include <sys/statvfs.h> |
46 |
#endif |
#endif |
115 |
} |
} |
116 |
|
|
117 |
devinfo->f_bsize= usage.f_bsize; |
devinfo->f_bsize= usage.f_bsize; |
118 |
devinfo->f_blocks= usage.f_blocks; |
devinfo->f_blocks= usage.f_blocks/(usage.f_frsize?(usage.f_bsize/usage.f_frsize):1); |
119 |
devinfo->f_blocksfree= usage.f_bavail; |
devinfo->f_blocksfree= usage.f_bavail/(usage.f_frsize?(usage.f_bsize/usage.f_frsize):1); |
120 |
devinfo->f_blocksfreetotal= usage.f_bfree; |
devinfo->f_blocksfreetotal= usage.f_bfree/(usage.f_frsize?(usage.f_bsize/usage.f_frsize):1); |
121 |
devinfo->f_files= usage.f_files; |
devinfo->f_files= usage.f_files; |
122 |
devinfo->f_filesfree= usage.f_ffree; |
devinfo->f_filesfree= usage.f_ffree; |
123 |
|
|