Whamcloud - gitweb
Many files:
[tools/e2fsprogs.git] / e2fsck / e2fsck.h
index 140c018..efb7549 100644 (file)
@@ -95,8 +95,8 @@ struct resource_track {
  */
 #define E2F_FLAG_ABORT         0x0001 /* Abort signaled */
 #define E2F_FLAG_CANCEL                0x0002 /* Cancel signaled */
+#define E2F_FLAG_SIGNAL_MASK   0x0003
 #define E2F_FLAG_RESTART       0x0004 /* Restart signaled */
-#define E2F_FLAG_SIGNAL_MASK   0x000F
 
 #define E2F_FLAG_SETJMP_OK     0x0010 /* Setjmp valid for abort */
 
@@ -131,8 +131,8 @@ struct e2fsck_struct {
 #endif
        unsigned long abort_code;
 
-       void (*progress)(e2fsck_t ctx, int pass, unsigned long cur,
-                        unsigned long max);
+       int (*progress)(e2fsck_t ctx, int pass, unsigned long cur,
+                       unsigned long max);
 
        ext2fs_inode_bitmap inode_used_map; /* Inodes which are in use */
        ext2fs_inode_bitmap inode_bad_map; /* Inodes which are bad somehow */
@@ -205,6 +205,7 @@ struct e2fsck_struct {
        int fs_dind_count;
        int fs_tind_count;
        int fs_fragmented;
+       int large_files;
 
        /*
         * For the use of callers of the e2fsck functions; not used by
@@ -260,6 +261,7 @@ extern void ehandler_init(io_channel channel);
 
 /* super.c */
 void check_super_block(e2fsck_t ctx);
+errcode_t e2fsck_get_device_size(e2fsck_t ctx);
 
 /* swapfs.c */
 void swap_filesys(e2fsck_t ctx);