Removes the --find-by-name, -N option. Now it automatically searches

by name if a file is not found searching by inode, automatically
reassigning inodes in restored files
This commit is contained in:
Andrea Mazzoleni 2013-08-26 20:33:25 +02:00
parent 3a5ce4e522
commit 8eafeafcb6
11 changed files with 204 additions and 227 deletions

9
elem.h
View file

@ -196,6 +196,15 @@ struct snapraid_block {
#define FILE_IS_JUNCTION 0x800 /**< If it's a junction for Windows. Not yet supported. */
#define FILE_IS_LINK_MASK 0xF00 /**< Mask for link type. */
/**
* If the file is without inode.
* It could happen in filesystem where inodes are not persistent,
* or when restoring a full disk with "fix".
* In such cases we have to clear any stored duplicate inode.
* After the scan process completes, no file should have this flag set.
*/
#define FILE_IS_WITHOUT_INODE 0x1000
/**
* File.
*/