diff --git a/kernel/sy_old/mars_light.c b/kernel/sy_old/mars_light.c index 7a48ccd4..065b4f40 100644 --- a/kernel/sy_old/mars_light.c +++ b/kernel/sy_old/mars_light.c @@ -2798,6 +2798,7 @@ int make_log_finalize(struct mars_global *global, struct mars_dent *dent) struct mars_rotate *rot; struct trans_logger_brick *trans_brick; struct copy_brick *copy_brick; + bool is_attached; int status = -EINVAL; CHECK_PTR(parent, err); @@ -2949,6 +2950,9 @@ int make_log_finalize(struct mars_global *global, struct mars_dent *dent) } done: + is_attached = !!rot->trans_brick; + _show_actual(rot->parent_path, "is-attached", is_attached); + if (rot->trans_brick) _show_rate(rot, &rot->replay_limiter, rot->trans_brick->power.led_on, "replay_rate"); if (rot->copy_brick) diff --git a/userspace/marsadm b/userspace/marsadm index 3cd43298..fc088ad0 100755 --- a/userspace/marsadm +++ b/userspace/marsadm @@ -853,6 +853,7 @@ sub leave_res { my $status = get_link($tmp); ldie "switch '$tmp' is not off\n" if $status; } + check_status($cmd, $res, "is-attached", 0, 0, 1); foreach my $tmp (glob("$mars/resource-$res/actual-$host/*")) { my $status = get_link($tmp); ldie "running status '$tmp' is not off\n" if $status;