From b8cf4de4c8f05c25f06cf33147be082f11bcd475 Mon Sep 17 00:00:00 2001 From: Julian Elischer Date: Wed, 27 May 1998 03:32:23 +0000 Subject: [PATCH] A fix to a debug test from Kirk. --- contrib/sys/softupdates/ffs_softdep.c | 5 ++++- sys/contrib/softupdates/ffs_softdep.c | 5 ++++- sys/ufs/ffs/ffs_softdep.c | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/contrib/sys/softupdates/ffs_softdep.c b/contrib/sys/softupdates/ffs_softdep.c index 4123e33f6618..ba565e9c1975 100644 --- a/contrib/sys/softupdates/ffs_softdep.c +++ b/contrib/sys/softupdates/ffs_softdep.c @@ -54,7 +54,7 @@ * SUCH DAMAGE. * * @(#)ffs_softdep.c 9.23 (McKusick) 2/20/98 - * $Id:$ + * $Id: ffs_softdep.c,v 1.6 1998/05/19 23:07:22 julian Exp $ */ /* @@ -2692,6 +2692,9 @@ scan_page(bp) break; if (dp->d_ino == 0) continue; + if (dp->d_name[0] == '.' && (dp->d_namlen == 1 || + (dp->d_namlen == 2 && dp->d_name[1] == '.'))) + continue; if (inodedep_lookup(fs, dp->d_ino, 0, &inodedep) == 0) continue; if (inodedep->id_state & NEWINODE) diff --git a/sys/contrib/softupdates/ffs_softdep.c b/sys/contrib/softupdates/ffs_softdep.c index 4123e33f6618..ba565e9c1975 100644 --- a/sys/contrib/softupdates/ffs_softdep.c +++ b/sys/contrib/softupdates/ffs_softdep.c @@ -54,7 +54,7 @@ * SUCH DAMAGE. * * @(#)ffs_softdep.c 9.23 (McKusick) 2/20/98 - * $Id:$ + * $Id: ffs_softdep.c,v 1.6 1998/05/19 23:07:22 julian Exp $ */ /* @@ -2692,6 +2692,9 @@ scan_page(bp) break; if (dp->d_ino == 0) continue; + if (dp->d_name[0] == '.' && (dp->d_namlen == 1 || + (dp->d_namlen == 2 && dp->d_name[1] == '.'))) + continue; if (inodedep_lookup(fs, dp->d_ino, 0, &inodedep) == 0) continue; if (inodedep->id_state & NEWINODE) diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index 4123e33f6618..ba565e9c1975 100644 --- a/sys/ufs/ffs/ffs_softdep.c +++ b/sys/ufs/ffs/ffs_softdep.c @@ -54,7 +54,7 @@ * SUCH DAMAGE. * * @(#)ffs_softdep.c 9.23 (McKusick) 2/20/98 - * $Id:$ + * $Id: ffs_softdep.c,v 1.6 1998/05/19 23:07:22 julian Exp $ */ /* @@ -2692,6 +2692,9 @@ scan_page(bp) break; if (dp->d_ino == 0) continue; + if (dp->d_name[0] == '.' && (dp->d_namlen == 1 || + (dp->d_namlen == 2 && dp->d_name[1] == '.'))) + continue; if (inodedep_lookup(fs, dp->d_ino, 0, &inodedep) == 0) continue; if (inodedep->id_state & NEWINODE)