summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorrobi <robi>2010-08-22 19:09:46 +0000
committerrobi <robi>2010-08-22 19:09:46 +0000
commite66d5f9b85fd816571fe4a780f05fc0ad0b8256f (patch)
tree73c4c5a2fa73417bde86f777ba4dd0903f3947ac /src/util.h
parent8f27364faf5c58eebce6616be246afaeff734a14 (diff)
magic functions Part1 (inactive)
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 3ead8ff..9551805 100644
--- a/src/util.h
+++ b/src/util.h
@@ -30,6 +30,7 @@
// control flags for recover- and listmodus
#define DOUPLE_QUOTES_LIST 0x0100
+#define LOST_DIR_SEARCH 0x0400
#define LIST_ALL 0x1000
#define LIST_STATUS 0x2000
#define RECOV_DEL 0x4000
@@ -73,7 +74,25 @@ struct inode_nr_collect{
ext2_ino_t count;
ext2_ino_t *list;
};
+
+
+//FIXME
+//struct for generic bitmap (only temporarily for the development)
+struct ext2fs_struct_loc_generic_bitmap {
+ errcode_t magic;
+ ext2_filsys fs;
+ __u32 start, end;
+ __u32 real_end;
+ char * description;
+ char * bitmap;
+ errcode_t base_error_code;
+ __u32 reserved[7];
+};
+
+
#define ALLOC_SIZE 1024
+extern ext2fs_inode_bitmap imap ;
+extern ext2fs_block_bitmap bmap ;
// public functions util.c
void read_all_inode_time(ext2_filsys , __u32 , __u32 , int ); //analyse an print histogram
@@ -102,5 +121,11 @@ void recover_list(char*, char*,__u32, __u32, int); // recover files from a "doub
int recover_file( char* ,char* , char* , struct ext2_inode* , ext2_ino_t, int); //recover all filetypes
int check_file_recover(struct ext2_inode*); // return percentage of not allocated blocks
void set_dir_attributes(char* ,char* ,struct ext2_inode*); //set owner,file mode bits an timestamps for directory
+int check_dir(char*);//check if the target directory existent
+
+
+//public functions imap_search.c
+void search_imap_inode(char* , __u32, __u32, int); // search inode by imap (step1 + step2)
+int check_find_dir(char*, ext2_ino_t, char*, char*); //check if the directory always recovert; then move
#endif