Subject: Re: panic during rm causes fsck to fill lost+found
To: Tracy Di Marco White <>
From: Jesse Off <>
List: current-users
Date: 12/30/2000 00:39:21
Tracy Di Marco White wrote:
> I'd think that lost+found should not be full with under 9000 files
> in it, though.

Whats looks to be happening is that fsck_ffs is giving up 
expanding the /lost+found directory at the first indirect 
block.  The relevent code from sbin/fsck_ffs/dir.c:

 * Attempt to expand the size of a directory
static int
expanddir(dp, name)
        struct dinode *dp;
        char *name;
        ufs_daddr_t lastbn, newblk;
        struct bufarea *bp;
        char *cp, firstblk[DIRBLKSIZ];

        lastbn = lblkno(sblock, iswap64(dp->di_size));
        if (lastbn >= NDADDR - 1 || dp->di_db[lastbn] == 0 ||
dp->di_size == 0)
                return (0);

//Jesse Off