mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-22 07:56:33 -05:00
Changes come comments. No functionality change.
This commit is contained in:
parent
04a8a94f9e
commit
1314f12d64
3 changed files with 11 additions and 10 deletions
5
elem.h
5
elem.h
|
|
@ -69,6 +69,8 @@ struct snapraid_file;
|
|||
/**
|
||||
* The block has both the hash and the parity computed.
|
||||
* This is the normal state of a saved block.
|
||||
* Note that if exists at least one BLOCK_STATE_BLK in a disk, all the other
|
||||
* blocks at the same address in other disks can be only BLOCK_EMPTY or BLOCK_STATE_BLK.
|
||||
*/
|
||||
#define BLOCK_STATE_BLK 0
|
||||
|
||||
|
|
@ -80,9 +82,6 @@ struct snapraid_file;
|
|||
/**
|
||||
* The block has the hash computed, but the parity is invalid.
|
||||
* This happens when the parity is invalidated by a change in another block.
|
||||
* Note that this state is almost reduntant because we can detect that the parity is invalid
|
||||
* also checking the other disks, where for sure exists a block the BLOCK_STATE_CHG/NEW state
|
||||
* or a BLOCK_DELETED block.
|
||||
*/
|
||||
#define BLOCK_STATE_INV 2
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue