diff options
-rw-r--r-- | ufs-fsck/pass3.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ufs-fsck/pass3.c b/ufs-fsck/pass3.c index ca5e3da7..1d366f21 100644 --- a/ufs-fsck/pass3.c +++ b/ufs-fsck/pass3.c @@ -53,7 +53,13 @@ pass3 () if (dnp->i_parent == 0) { assert (!(inodestate[dnp->i_number] & DIR_REF)); - linkup (dnp->i_number, dnp->i_dotdot); + pwarn ("UNREF DIR"); + pinode (number); + if (preen) + printf (" (RECONNECTED)"); + if (preen || reply ("RECONNECT")) + if (linkup (dnp->i_number, dnp->i_dotdot)) + dnp->i_parent = dnp->i_dotdot = lfdir; } } } |