marsadm: sync caches upon detach

This commit is contained in:
Thomas Schoebel-Theuer 2017-01-18 10:21:42 +01:00
parent 1f11a21f53
commit 12f7e83ab0

View File

@ -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");
}
}