Align data disk UUID validation and write logic with parity splits using content_uuid

This commit is contained in:
Andrea Mazzoleni 2026-06-28 23:35:44 +02:00
parent 645a587bdf
commit f0e2f80017
3 changed files with 25 additions and 14 deletions

View file

@ -485,7 +485,7 @@ struct snapraid_disk {
*/
struct snapraid_map {
char name[PATH_MAX]; /**< Name of the disk. */
char uuid[UUID_MAX]; /**< UUID of the disk. Empty if unknown. They are read from the content file. */
char content_uuid[UUID_MAX]; /**< UUID of the disk. Empty if unknown. They are read from the content file. */
block_off_t total_blocks; /**< Number of total blocks. */
block_off_t free_blocks; /**< Number of free blocks at last 'sync'. */
unsigned position; /**< Position of the disk in the parity. */