Updating output dir patch.
Christophe Monniez
11 years ago
2 | 2 | instead default directory ./RESTORE_FILES |
3 | 3 | Forwarded: yes |
4 | 4 | Author: Elías Alejandro Año Mendoza <ealmdz@gmail.com> |
5 | Last-Update: 2010-10-25 | |
5 | Last-Update: 2012-12-13 | |
6 | 6 | |
7 | 7 | =================================================================== |
8 | --- extundelete.orig/src/extundelete.cc 2010-10-25 11:50:25.000000000 -0500 | |
9 | +++ extundelete/src/extundelete.cc 2010-10-25 12:01:12.000000000 -0500 | |
10 | @@ -466,6 +466,8 @@ | |
8 | --- a/src/cli.cc | |
9 | +++ b/src/cli.cc | |
10 | @@ -120,6 +120,8 @@ | |
11 | 11 | os << " --restore-files 'path' Will restore files which are listed in the file 'path'.\n"; |
12 | 12 | os << " Each filename should be in the same format as an option\n"; |
13 | 13 | os << " to --restore-file, and there should be one per line.\n"; |
16 | 16 | os << " --restore-all Attempts to restore everything.\n"; |
17 | 17 | os << " -j journal Reads an external journal from the named file.\n"; |
18 | 18 | os << " -b blocknumber Uses the backup superblock at blocknumber when opening\n"; |
19 | @@ -601,6 +603,7 @@ | |
19 | @@ -422,6 +424,7 @@ | |
20 | 20 | opt_show_journal_inodes, |
21 | 21 | opt_restore_file, |
22 | 22 | opt_restore_files, |
24 | 24 | opt_restore_directory, |
25 | 25 | opt_restore_inode, |
26 | 26 | opt_restore_all, |
27 | @@ -626,6 +629,7 @@ | |
27 | @@ -445,6 +448,7 @@ | |
28 | 28 | {"restore-inode", 1, &long_option, opt_restore_inode}, |
29 | 29 | {"restore-file", 1, &long_option, opt_restore_file}, |
30 | 30 | {"restore-files", 1, &long_option, opt_restore_files}, |
31 | 31 | + {"output-dir", 1, &long_option, opt_output_dir}, |
32 | 32 | {"restore-directory", 1, &long_option, opt_restore_directory}, |
33 | 33 | {"restore-all", 0, &long_option, opt_restore_all}, |
34 | {"show-hardlinks", 0, &long_option, opt_show_hardlinks}, | |
35 | @@ -688,6 +692,21 @@ | |
34 | {"log", 1, &long_option, opt_log}, | |
35 | @@ -497,6 +501,21 @@ | |
36 | 36 | case opt_restore_files: |
37 | 37 | commandline_restore_files = optarg; |
38 | 38 | break; |