mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-22 16:06:30 -05:00
Delete snapshot links in Windows
This commit is contained in:
parent
b2b2b6d391
commit
b04ae73eef
6 changed files with 90 additions and 28 deletions
|
|
@ -5841,7 +5841,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);
|
||||
|
|
@ -5913,7 +5913,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);
|
||||
|
|
@ -5946,7 +5946,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);
|
||||
|
|
@ -5986,3 +5986,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