Whamcloud - gitweb
util.c:
[tools/e2fsprogs.git] / e2fsck / e2fsck.h
index 782edbc..83f0889 100644 (file)
@@ -102,6 +102,9 @@ struct resource_track {
 
 #define E2F_FLAG_SETJMP_OK     0x0010 /* Setjmp valid for abort */
 
+#define E2F_FLAG_PROG_BAR      0x0020 /* Progress bar on screen */
+#define E2F_FLAG_PROG_SUPPRESS 0x0040 /* Progress suspended */
+
 /*
  * Defines for indicating the e2fsck pass number
  */
@@ -140,6 +143,8 @@ struct e2fsck_struct {
        ext2fs_inode_bitmap inode_bad_map; /* Inodes which are bad somehow */
        ext2fs_inode_bitmap inode_dir_map; /* Inodes which are directories */
        ext2fs_inode_bitmap inode_bb_map; /* Inodes which are in bad blocks */
+       ext2fs_inode_bitmap inode_imagic_map; /* AFS inodes */
+       ext2fs_inode_bitmap inode_reg_map; /* Inodes which are regular files*/
 
        ext2fs_block_bitmap block_found_map; /* Blocks which are in use */
        ext2fs_block_bitmap block_dup_map; /* Blks referenced more than once */
@@ -196,6 +201,7 @@ struct e2fsck_struct {
         */
        int progress_fd;
        int progress_pos;
+       int progress_last_percent;
 
        /* File counts */
        int fs_directory_count;
@@ -299,3 +305,5 @@ extern void mtrace_print(char *mesg);
 #endif
 extern blk_t get_backup_sb(ext2_filsys fs);
 
+/* unix.c */
+extern void e2fsck_clear_progbar(e2fsck_t ctx);