diff options
Diffstat (limited to 'sbin/dump/traverse.c')
-rw-r--r-- | sbin/dump/traverse.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/sbin/dump/traverse.c b/sbin/dump/traverse.c index 5d3225d613f..7863794c84f 100644 --- a/sbin/dump/traverse.c +++ b/sbin/dump/traverse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: traverse.c,v 1.41 2024/01/09 03:16:00 guenther Exp $ */ +/* $OpenBSD: traverse.c,v 1.42 2024/02/03 18:51:57 beck Exp $ */ /* $NetBSD: traverse.c,v 1.17 1997/06/05 11:13:27 lukem Exp $ */ /*- @@ -163,30 +163,6 @@ fs_mapinodes(ino_t maxino, int64_t *tapesize, int *anydirskipped) inosused = cgp->cg_initediblk; else inosused = sblock->fs_ipg; - /* - * If we are using soft updates, then we can trust the - * cylinder group inode allocation maps to tell us which - * inodes are allocated. We will scan the used inode map - * to find the inodes that are really in use, and then - * read only those inodes in from disk. - */ - if (sblock->fs_flags & FS_DOSOFTDEP) { - if (!cg_chkmagic(cgp)) - quit("mapfiles: cg %d: bad magic number\n", cg); - cp = &cg_inosused(cgp)[(inosused - 1) / CHAR_BIT]; - for ( ; inosused > 0; inosused -= CHAR_BIT, cp--) { - if (*cp == 0) - continue; - for (i = 1 << (CHAR_BIT - 1); i > 0; i >>= 1) { - if (*cp & i) - break; - inosused--; - } - break; - } - if (inosused <= 0) - continue; - } for (i = 0; i < inosused; i++, ino++) { if (ino < ROOTINO) continue; |