mirror of
https://github.com/schoebel/mars
synced 2025-01-10 08:19:27 +00:00
main: report is-detached only when bio is gone
This commit is contained in:
parent
68016194bc
commit
de8abf0284
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user