Add Windows VirtualShadowCopy support for snapshots

This commit is contained in:
Andrea Mazzoleni 2026-05-07 17:23:48 +02:00
parent 33af95b359
commit deb800cb57
8 changed files with 468 additions and 54 deletions

View file

@ -363,6 +363,17 @@ int filephy(const char* path, uint64_t size, uint64_t* physical);
*/
int fsinfo(const char* path, int* has_persistent_inode, int* has_syncronized_hardlinks, uint64_t* total_space, uint64_t* free_space, char* fstype, size_t fstype_size, char* fslabel, size_t fslabel_size);
/**
* Where snapshot are accessible
*/
#define SNAPSHOT_CONTAINER ".snapraid"
/**
* Snapshots names
*/
#define SNAPSHOT_PENDING "pending"
#define SNAPSHOT_STABLE "stable"
/**
* Snapshots context
*/
@ -390,7 +401,8 @@ struct fssnapshot_struct {
char snapshot_dir[PATH_MAX];
/*
* Dataset name (ZFS only, e.g. "pool/data").
* Dataset name for ZFS (e.g. "pool/data")
* or VolumeName in Windows.
* Empty string for filesystems where not applicable.
*/
char dataset[PATH_MAX];