106 |
|
const char *types[] = VALID_FS_TYPES; |
107 |
|
int i; |
108 |
|
|
109 |
< |
for (i = 0; i < (sizeof types / sizeof *types); i++) { |
109 |
> |
for (i = 0; i < (int) (sizeof types / sizeof *types); i++) { |
110 |
|
if (strcmp(types[i], type) == 0) { |
111 |
|
return 1; |
112 |
|
} |
392 |
|
} |
393 |
|
|
394 |
|
/* We can't seperate the reads from the writes, we'll |
395 |
< |
just give the same to each. */ |
396 |
< |
rbytes = wbytes = di->psd_dkwds / 2; |
395 |
> |
* just give the same to each. (This value is in |
396 |
> |
* 64-byte chunks according to the pstat header file, |
397 |
> |
* and can wrap to be negative.) |
398 |
> |
*/ |
399 |
> |
rbytes = wbytes = ((unsigned long) di->psd_dkwds) * 64LL; |
400 |
|
|
401 |
|
/* Skip unused disks. */ |
402 |
|
if (rbytes == 0 && wbytes == 0) { |