main: report is-detached only when bio is gone

This commit is contained in:
Thomas Schoebel-Theuer 2017-08-11 22:30:06 +02:00 committed by Thomas Schoebel-Theuer
parent 68016194bc
commit de8abf0284

View File

@ -3991,7 +3991,11 @@ int make_bio(void *buf, struct mars_dent *dent)
if (!rot)
goto done;
is_attached = !!rot->trans_brick;
/* for detach, both the logger and the bio must be gone */
if (rot->trans_brick)
is_attached = true;
else if (!rot->bio_brick)
is_attached = false;
_show_actual(rot->parent_path, "is-attached", is_attached);
rot->has_symlinks = true;