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
|
|
@ -1856,8 +1856,10 @@ int snapraid_main(int argc, char* argv[])
|
|||
ret = state_sync(&state, blockstart, blockcount);
|
||||
|
||||
/* commit the snapshot as stable */
|
||||
if (ret == 0)
|
||||
if (ret == 0) {
|
||||
state_snapshot_commit(&state);
|
||||
state_snapshot_cleanup(&state);
|
||||
}
|
||||
} else if (operation == OPERATION_DRY) {
|
||||
state_read(&state);
|
||||
|
||||
|
|
@ -1906,6 +1908,10 @@ int snapraid_main(int argc, char* argv[])
|
|||
state_snapshot_read(&state);
|
||||
|
||||
ret = state_scrub(&state, plan100, olderthan);
|
||||
|
||||
if (ret == 0) {
|
||||
state_snapshot_cleanup(&state);
|
||||
}
|
||||
} else if (operation == OPERATION_REWRITE) {
|
||||
state_read(&state);
|
||||
|
||||
|
|
@ -2038,6 +2044,10 @@ int snapraid_main(int argc, char* argv[])
|
|||
if (opt.gui_rescan_after)
|
||||
state_scan(&state);
|
||||
}
|
||||
|
||||
if (ret == 0) {
|
||||
state_snapshot_cleanup(&state);
|
||||
}
|
||||
} else {
|
||||
/* LCOV_EXCL_START */
|
||||
log_fatal(errno, "Unexpected command '%s'\n", command);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue