]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - misc/e2freefrag.h
e2freefrag: New program which displays how fragmented the free space is
[thirdparty/e2fsprogs.git] / misc / e2freefrag.h
1 #include <sys/types.h>
2
3 #define DEFAULT_CHUNKSIZE (1024*1024)
4
5 #define MAX_HIST 32
6 struct free_chunk_histogram {
7 unsigned long fc_buckets[MAX_HIST];
8 };
9
10 struct chunk_info {
11 unsigned long chunkbytes; /* chunk size in bytes */
12 int chunkbits; /* chunk size in bits */
13 unsigned long free_chunks; /* total free chunks of given size */
14 unsigned long real_free_chunks; /* free chunks of any size */
15 int blocksize_bits; /* fs blocksize in bits */
16 int blks_in_chunk; /* number of blocks in a chunk */
17 unsigned long min, max, avg; /* chunk size stats */
18 struct free_chunk_histogram histogram; /* histogram of all chunk sizes*/
19 };