mirror of
https://github.com/schoebel/mars
synced 2024-12-23 15:12:28 +00:00
marsadm: sync caches upon detach
This commit is contained in:
parent
1f11a21f53
commit
12f7e83ab0
@ -2100,9 +2100,11 @@ sub attach_res_phase2 {
|
||||
return if $force;
|
||||
check_status($cmd, $res, "is-attached", $detach ? 0 : 1, 1);
|
||||
if ($detach) {
|
||||
system("sync");
|
||||
check_mars_device($cmd, $res, 1, 1);
|
||||
check_status($cmd, $res, "is-replaying", 0, 1);
|
||||
check_status($cmd, $res, "is-syncing", 0, 1);
|
||||
system("sync");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user