mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Makes a backup copy of the content file.
Before overwriting the existing content file, rename it adding the .backup extension, but only if such content file was read and validated.
This commit is contained in:
parent
68042d528d
commit
da08ca4497
8 changed files with 49 additions and 16 deletions
|
|
@ -91,6 +91,7 @@ struct snapraid_state {
|
|||
int filter_hidden; /**< Filter out hidden files. */
|
||||
uint64_t autosave; /**< Autosave after the specified amount of data. 0 to disable. */
|
||||
int need_write; /**< If the state is changed. */
|
||||
int checked_read; /**< If the state was read and checked. */
|
||||
uint32_t block_size; /**< Block size in bytes. */
|
||||
unsigned raid_mode; /**< Raid mode to use. RAID_MODE_DEFAULT or RAID_MODE_ALTERNATE. */
|
||||
char parity_path[LEV_MAX][PATH_MAX]; /**< Path of the parity file. One for each parity. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue