Rework snapshot interface

This commit is contained in:
Andrea Mazzoleni 2026-05-04 10:59:12 +02:00
parent ec97fb95d2
commit bfc92e5c05
6 changed files with 147 additions and 157 deletions

View file

@ -811,8 +811,7 @@ struct snapraid_disk* disk_alloc(const char* name, const char* dir, uint64_t dev
pathslash(disk->mount_point, sizeof(disk->mount_point));
/* no snapshot by default */
disk->snapshot_root[0] = 0;
disk->snapshot_magic = 0;
memset(&disk->fss, 0, sizeof(disk->fss));
pathcpy(disk->dir, sizeof(disk->dir), disk->mount_point);
#if HAVE_THREAD