diff options
author | robi <robi> | 2010-09-24 02:03:00 +0000 |
---|---|---|
committer | robi <robi> | 2010-09-24 02:03:00 +0000 |
commit | 2761a6bac18b775c6ddd5dcdc83ade0ce6e4944c (patch) | |
tree | 62226f1e1439c8c1e7241722fe86bfcb2e728528 /src/recover.c | |
parent | 2a7afdee4772f99afdc404bcafea2b70df1bead0 (diff) |
magic functions
Diffstat (limited to 'src/recover.c')
-rw-r--r-- | src/recover.c | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/src/recover.c b/src/recover.c index 1a53d8e..eba48f5 100644 --- a/src/recover.c +++ b/src/recover.c @@ -67,13 +67,13 @@ struct privat { char flag; int error;}; + struct alloc_stat{ __u32 allocated; __u32 not_allocated;}; - // recover files from a "double quotes" listfile void recover_list(char *des_dir, char *input_file,__u32 t_after, __u32 t_before, int flag){ FILE *f; @@ -564,33 +564,6 @@ return retval; -/* -//FIXME: If we ever need this function, we rewrite this -int create_all_dir(char* des_dir,char* pathname, ext2_ino_t ino_nr ){ - char *fullname; - char *p1; - int retval; - - if (ino_nr == EXT2_ROOT_INO) - return 0; - - fullname = malloc(strlen(des_dir) + strlen(pathname) + 3); - if (fullname){ - p1 = pathname; - while (*p1 == '/') p1++; - strcpy(fullname,des_dir); - strcat(fullname,"/"); - strcat(fullname,p1); - retval = mkdir(fullname,S_IRWXU); - if (retval && (errno != EEXIST)) - fprintf(stderr,"Error: mkdir %s\n", fullname); - free(fullname); - } -return retval; -} -*/ - - //set all attributes for directory void set_dir_attributes(char* des_dir,char* pathname,struct ext2_inode *inode){ char *fullname; |