summaryrefslogtreecommitdiff
path: root/src/recover.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/recover.c')
-rw-r--r--src/recover.c29
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;