X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=e2fsck%2Fe2fsck.h;h=5a4a0de0a76c9ba84b2641a81e21178ff46e72f2;hb=30ab7f4c65bd32a7d24f53e8c87ed5b5ae757626;hp=bd173af4dae7f9b5b04440866fcdd06a51ee1ed7;hpb=49a7360ba6b986242d9f0f33e102291d2e0dfb47;p=tools%2Fe2fsprogs.git diff --git a/e2fsck/e2fsck.h b/e2fsck/e2fsck.h index bd173af..5a4a0de 100644 --- a/e2fsck/e2fsck.h +++ b/e2fsck/e2fsck.h @@ -154,6 +154,7 @@ struct resource_track { #define E2F_OPT_FORCE 0x0100 #define E2F_OPT_WRITECHECK 0x0200 #define E2F_OPT_COMPRESS_DIRS 0x0400 +#define E2F_OPT_FRAGCHECK 0x0800 /* * E2fsck flags @@ -194,6 +195,8 @@ typedef struct ea_refcount *ext2_refcount_t; */ typedef struct e2fsck_struct *e2fsck_t; +#define MAX_EXTENT_DEPTH_COUNT 5 + struct e2fsck_struct { ext2_filsys fs; const char *program_name; @@ -328,6 +331,7 @@ struct e2fsck_struct { __u32 large_files; __u32 fs_ext_attr_inodes; __u32 fs_ext_attr_blocks; + __u32 extent_depth_count[MAX_EXTENT_DEPTH_COUNT]; /* misc fields */ time_t now; @@ -374,6 +378,9 @@ extern int e2fsck_run(e2fsck_t ctx); extern void read_bad_blocks_file(e2fsck_t ctx, const char *bad_blocks_file, int replace_bad_blocks); +/* crc32.c */ +extern __u32 crc32_be(__u32 crc, unsigned char const *p, size_t len); + /* dirinfo.c */ extern void e2fsck_add_dir_info(e2fsck_t ctx, ext2_ino_t ino, ext2_ino_t parent); extern void e2fsck_free_dir_info(e2fsck_t ctx);