Theodore Ts'o | 0b2681f | 2009-07-22 03:40:58 -0400 | [diff] [blame] | 1 | #include <sys/types.h> |
| 2 | |
| 3 | #define DEFAULT_CHUNKSIZE (1024*1024) |
| 4 | |
| 5 | #define MAX_HIST 32 |
| 6 | struct free_chunk_histogram { |
Andreas Dilger | ad751f1 | 2009-07-24 18:32:25 -0400 | [diff] [blame] | 7 | unsigned long fc_chunks[MAX_HIST]; |
| 8 | unsigned long fc_blocks[MAX_HIST]; |
Theodore Ts'o | 0b2681f | 2009-07-22 03:40:58 -0400 | [diff] [blame] | 9 | }; |
| 10 | |
| 11 | struct chunk_info { |
| 12 | unsigned long chunkbytes; /* chunk size in bytes */ |
| 13 | int chunkbits; /* chunk size in bits */ |
| 14 | unsigned long free_chunks; /* total free chunks of given size */ |
| 15 | unsigned long real_free_chunks; /* free chunks of any size */ |
| 16 | int blocksize_bits; /* fs blocksize in bits */ |
| 17 | int blks_in_chunk; /* number of blocks in a chunk */ |
| 18 | unsigned long min, max, avg; /* chunk size stats */ |
| 19 | struct free_chunk_histogram histogram; /* histogram of all chunk sizes*/ |
| 20 | }; |