summaryrefslogtreecommitdiff
path: root/ufs-fsck
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-10-14 21:17:19 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-10-14 21:17:19 +0000
commit5bf9a2180f9cf0bbc87f8f5baf45cbfd447cb542 (patch)
tree672455e211544fa71cf09969c79788d77c50155e /ufs-fsck
parent00fd328228eec81847a8a5c45b52a9c71a02ab0e (diff)
Formerly pass2.c.~7~
Diffstat (limited to 'ufs-fsck')
-rw-r--r--ufs-fsck/pass2.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/ufs-fsck/pass2.c b/ufs-fsck/pass2.c
index 0f421168..19d8ba8c 100644
--- a/ufs-fsck/pass2.c
+++ b/ufs-fsck/pass2.c
@@ -92,7 +92,8 @@ pass2 ()
/* Check INO */
if (inodestate[dp->d_ino] == UNALLOC)
{
- fileerror (dnp->i_number, dp->d_ino, "UNALLOCATED");
+ printf ("REF TO UNALLOCATED NODE; DIR");
+ pinode (dnp->i_number);
if (reply ("REMOVE"))
{
dp->d_ino = 0;
@@ -281,14 +282,15 @@ pass2 ()
{
dnp->i_dotdot = dnp->i_parent;
- fileerror (dnp->i_parent, dnp->i_number, "MISSING `..'");
+ printf ("MISSING `..' IN DIR");
+ pinode (dnp->i_number);
if (reply ("FIX"))
makeentry (dnp->i_number, dnp->i_parent, "..");
}
else if (dnp->i_parent && dnp->i_dotdot != dnp->i_parent)
{
- fileerror (dnp->i_parent, dnp->i_number,
- "BAD INODE NUMBER FOR `..'");
+ printf ("BAD INODE NUMBER FOR `..' IN DIR");
+ pinode (dnp->i_number);
if (reply ("FIX"))
{
dnp->i_dotdot = dnp->i_parent;
@@ -300,14 +302,15 @@ pass2 ()
if (dnp->i_dot == 0)
{
dnp->i_dot = dnp->i_number;
- fileerror (dnp->i_number, dnp->i_number, "MISSING `.'");
+ printf ("MISSING `.' IN DIR");
+ pinode (dnp->i_number);
if (reply ("FIX"))
makeentry (dnp->i_number, dnp->i_number, ".");
}
else if (dnp->i_dot != dnp->i_number)
{
- fileerror (dnp->i_number, dnp->i_number,
- "MAD INODE NUMBER FOR `.'");
+ printf ("BAD INODE NUMBER FOR `.' IN DIR");
+ pinode (dnp->i_number);
if (reply ("FIX"))
{
dnp->i_dot = dnp->i_number;