35 |
|
#endif |
36 |
|
|
37 |
|
#ifdef LINUX |
38 |
+ |
#include <time.h> |
39 |
|
#include <sys/vfs.h> |
40 |
|
#include <mntent.h> |
41 |
|
#include "tools.h" |
345 |
|
} |
346 |
|
#ifdef FREEBSD5 |
347 |
|
if ((devstat_getdevs(NULL, &stats)) < 0) return NULL; |
348 |
< |
/* Not aware of a get all devices, so i said 999. If we ever * find a machine with more than 999 disks, then i'll change * this number :) */ |
348 |
> |
/* Not aware of a get all devices, so i said 999. If we ever |
349 |
> |
* find a machine with more than 999 disks, then i'll change |
350 |
> |
* this number :) |
351 |
> |
*/ |
352 |
|
if (devstat_selectdevs(&dev_sel, &n_selected, &n_selections, &sel_gen, stats.dinfo->generation, stats.dinfo->devices, stats.dinfo->numdevs, NULL, 0, NULL, 0, DS_SELECT_ONLY, 999, 1) < 0) return NULL; |
353 |
|
#else |
354 |
|
if ((getdevs(&stats)) < 0) return NULL; |