Optimize redundant devuuid() calls by storing content file UUIDs in a dedicated field

This commit is contained in:
Andrea Mazzoleni 2026-06-28 22:47:58 +02:00
parent 579a939b9b
commit 452adbd8d9
2 changed files with 35 additions and 22 deletions

View file

@ -516,7 +516,8 @@ struct snapraid_map {
*/
struct snapraid_split {
char path[PATH_MAX]; /**< Path of the parity file. */
char uuid[UUID_MAX]; /**< UUID of the disk. Empty if unknown. They are probed during the config reading, and later read from the content file. */
char uuid[UUID_MAX]; /**< UUID of the disk. Empty if unknown. They are probed during the config reading. */
char content_uuid[UUID_MAX]; /**< UUID read from the content file. */
char fstype[FSINFO_MAX]; /**< Filesystem type */
char fslabel[FSINFO_MAX]; /**< Filesystem label */