Delete snapshot links in Windows

This commit is contained in:
Andrea Mazzoleni 2026-05-15 09:15:27 +02:00
parent 9f62f23da0
commit d45c1007e7
6 changed files with 90 additions and 28 deletions

View file

@ -426,7 +426,16 @@ struct fssnapshot_struct {
* @param fss Output snapshot context
* @return 0 on success, -1 on failure
*/
int fssnapshot(const char* dir, struct fssnapshot_struct* fss);
int fssnapshot_mount(const char* dir, struct fssnapshot_struct* fss);
/**
* Unmount the snapshots.
*
* Required in Windows to remove the temporary symlinks.
*
* @param fss Snapshot context
*/
void fssnapshot_unmount(const struct fssnapshot_struct* fss);
/**
* Stat the snapshot directory.