mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Delete snapshot links in Windows
This commit is contained in:
parent
9f62f23da0
commit
d45c1007e7
6 changed files with 90 additions and 28 deletions
|
|
@ -5834,7 +5834,7 @@ int state_snapshot_new(struct snapraid_state* state)
|
|||
struct snapraid_disk* disk = i->data;
|
||||
|
||||
/* check if it supports snapshot */
|
||||
if (fssnapshot(disk->mount_point, &disk->fss) != 0)
|
||||
if (fssnapshot_mount(disk->mount_point, &disk->fss) != 0)
|
||||
continue;
|
||||
|
||||
size_t root_len = strlen(disk->fss.root_dir);
|
||||
|
|
@ -5906,7 +5906,7 @@ void state_snapshot_read(struct snapraid_state* state)
|
|||
struct snapraid_disk* disk = i->data;
|
||||
|
||||
/* check if it supports snapshot */
|
||||
if (fssnapshot(disk->mount_point, &disk->fss) != 0)
|
||||
if (fssnapshot_mount(disk->mount_point, &disk->fss) != 0)
|
||||
continue;
|
||||
|
||||
size_t root_len = strlen(disk->fss.root_dir);
|
||||
|
|
@ -5939,7 +5939,7 @@ void state_snapshot_write(struct snapraid_state* state, tommy_list* filterlist_d
|
|||
struct snapraid_disk* disk = i->data;
|
||||
|
||||
/* check if it supports snapshot */
|
||||
if (fssnapshot(disk->mount_point, &disk->fss) != 0)
|
||||
if (fssnapshot_mount(disk->mount_point, &disk->fss) != 0)
|
||||
continue;
|
||||
|
||||
size_t root_len = strlen(disk->fss.root_dir);
|
||||
|
|
@ -5979,3 +5979,16 @@ void state_snapshot_write(struct snapraid_state* state, tommy_list* filterlist_d
|
|||
}
|
||||
}
|
||||
|
||||
void state_snapshot_cleanup(struct snapraid_state* state)
|
||||
{
|
||||
for (tommy_node* i = state->disklist; i != 0; i = i->next) {
|
||||
struct snapraid_disk* disk = i->data;
|
||||
|
||||
/* check if it supports snapshot */
|
||||
if (disk->fss.magic == 0)
|
||||
continue;
|
||||
|
||||
fssnapshot_unmount(&disk->fss);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue