~vorlon/ubuntu/natty/e2fsprogs/multiarch

« back to all changes in this revision

Viewing changes to misc/e2freefrag.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2009-08-25 18:34:46 UTC
  • mfrom: (8.2.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090825183446-p2iuz63g8g4ytlf4
Tags: 1.41.9-1ubuntu1
* Merge from Debian, remaining changes:
  - Do not build-depend on dietlibc-dev, which is universe.
  - Do now allow pkg-create-dbgsym to operate on this package.
  - Use external libblkid and libuuid from util-linux, rather than
    building our own.
  - Do not include /etc/e2fsck.conf and remove on upgrade.

* Included a couple of extra revisions from GIT maint:
  - (ffd8078) e2freefrag: Update manpage to include e2fsprogs version
    and release date
  - (31b5a2b) mke2fs.conf: Use the feature name "extent" instead of
    "extents"
  - (8bafedb) tune2fs: Fix "tune2fs -j <dev>" for extent-enabled
     filesystems.  LP: #416648.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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_chunks[MAX_HIST];
 
8
        unsigned long fc_blocks[MAX_HIST];
 
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
};