Log the filesystem type and label
Some checks failed
Build / build-mac (push) Has been cancelled
Build / build-linux (push) Has been cancelled
Build / build-win (push) Has been cancelled
CodeQL Advanced / Analyze (c-cpp) (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled

This commit is contained in:
Andrea Mazzoleni 2026-01-29 18:43:00 +01:00
parent 5a5668851d
commit 9f081f9c22
10 changed files with 435 additions and 81 deletions

View file

@ -40,6 +40,12 @@
*/
#define UUID_MAX 128
/**
* Max filesystem type/label length
*/
#define FSINFO_MAX 64
/**
* Invalid position.
*/
@ -334,6 +340,8 @@ struct snapraid_disk {
char smartctl[PATH_MAX]; /**< Custom command for smartctl. Empty means auto. */
int smartignore[SMART_IGNORE_MAX]; /**< Smart attributes to ignore for this device. */
char uuid[UUID_MAX]; /**< UUID of the disk. They are probed during the config reading. */
char fstype[FSINFO_MAX]; /**< Filesystem type */
char fslabel[FSINFO_MAX]; /**< Filesystem label */
uint64_t device; /**< Device identifier. */
block_off_t total_blocks; /**< Number of total blocks. */
@ -456,6 +464,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 fstype[FSINFO_MAX]; /**< Filesystem type */
char fslabel[FSINFO_MAX]; /**< Filesystem label */
/**
* Size of the parity split.