Avoids to use inodes in disk with UUID changed.

This commit is contained in:
Andrea Mazzoleni 2013-12-14 17:54:04 +01:00
parent 90d1cf01df
commit 7be2420cf3
5 changed files with 62 additions and 25 deletions

5
elem.h
View file

@ -283,8 +283,9 @@ struct snapraid_disk {
char dir[PATH_MAX]; /**< Mount point of the disk. It always terminates with /. */
uint64_t device; /**< Device identifier. */
block_off_t first_free_block; /**< First free searching block. */
int has_not_persistent_inodes; /**< If the underline filesystem has dynamic inodes. */
int has_not_reliable_physical; /**< If the physical offset of files has duplicates. */
int has_volatile_inodes; /**< If the underline filesystem has not persistent inodes. */
int has_unreliable_physical; /**< If the physical offset of files has duplicates. */
int has_different_uuid; /**< If the disk has a different UUID, meaning that it is not the same filesystem. */
int mapping; /**< Index in the mapping vector. Used only as buffer when writing the content file. */
/**<