summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-09-22 02:51:36 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-09-22 02:51:36 +0000
commite948e29f7a12db77382ba0c0c43497526376077e (patch)
tree55e58eb8ff3f4021bac644d8ab149858c1da72d0
parent8013eb9b3d68e0104bd67878776d3ad6b59d71cf (diff)
Formerly inode.c.~35~
-rw-r--r--ufs/inode.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/ufs/inode.c b/ufs/inode.c
index 55cef7d9..757d8821 100644
--- a/ufs/inode.c
+++ b/ufs/inode.c
@@ -20,6 +20,7 @@
#include "fs.h"
#include <string.h>
#include <unistd.h>
+#include <stdio.h>
#define INOHSZ 512
#if ((INOHSZ&(INOHSZ-1)) == 0)
@@ -147,9 +148,19 @@ diskfs_node_norefs (struct node *np)
np->dn->hnext->dn->hprevp = np->dn->hprevp;
if (np->dn->dirents)
free (np->dn->dirents);
- assert (!np->dn->sininfo && !np->dn->fileinfo);
- assert (!np->dn->dinloc && !np->dn->sinloc);
- assert (!np->dn->dinloclen && !np->dn->sinloclen);
+ if (np->dn->sininfo || np->dn->fileinfo || np->dn->dinloc
+ || np->dn->sinloc || np->dn->dinloclen || np->dn->sinloclen)
+ {
+ printf ("I=%d\n", np->dn->number);
+ printf ("Hard %d\tSoft %d\n", np->references, np->light_references);
+ fflush (stdout);
+ }
+ assert (!np->dn->sininfo);
+ assert (!np->dn->fileinfo);
+ assert (!np->dn->dinloc);
+ assert (!np->dn->sinloc);
+ assert (!np->dn->dinloclen);
+ assert (!np->dn->sinloclen);
free (np->dn);
free (np);
}