diff options
| author | Michael I. Bushnell <mib@gnu.org> | 1994-09-22 02:51:36 +0000 |
|---|---|---|
| committer | Michael I. Bushnell <mib@gnu.org> | 1994-09-22 02:51:36 +0000 |
| commit | 8efcb72f07e27ab625ede2bc16abdfd5c7572f88 (patch) | |
| tree | 7416b18071ef1f1941113725b0316339f1526029 | |
| parent | c3d5befb7e6321f6f28cc991e3024d71fffe1ea8 (diff) | |
Formerly inode.c.~35~
| -rw-r--r-- | ufs/inode.c | 17 |
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); } |
