Subject: kern/22930: lfs_cleanerd - several errors on unmounting a newly fsckd file system
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <ctribo@college.dtcc.edu>
List: netbsd-bugs
Date: 09/24/2003 14:34:04
>Number:         22930
>Category:       kern
>Synopsis:       lfs_cleanerd - several errors on unmounting a newly fsckd file system
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 24 14:35:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Chris Tribo
>Release:        1.6ZC snapshot from 9/21/03
>Organization:
>Environment:
NetBSD atlantis 1.6ZC NetBSD 1.6ZC (GENERIC_DIAGNOSTIC) #0: Tue September 23 16:47:48 UTC 2003  autobuild@tgm.netbsd.org:/autobuild/HEAD/i386/OBJ/autobuild/HEAD/src/sys/arch/i386/compile/GENERIC_DIAGNOSTIC i386
>Description:
If I newfs an lfs file system with newfs_lfs -A -b 8192 -f 8192 /dev/wd1a

I get either

lfs_cleanerd[25419]: LFCNSEGWAIT: Can't send after socket shutdown
last message repeated 12 times
lfs_cleanerd[25419]: get_ifile: bad ifile read (Input/Output error)
lfs_cleanerd[11644]: lfs_cleanerd: fs /mnt unmounted, exiting

or

lfs_cleanerd[12688]: LFCNSEGWAIT: Can't send after socket shutdown
lfs_cleanerd[12688]: LFCNSEGWAIT: Can't send after socket shutdown
lfs_cleanerd[12688]: reread_fs_info: fstatfs failed (Bad file descriptor)
lfs_cleanerd[23227]: lfs_cleanerd: fs /mnt unmounted, exiting




output of dumplfs:
Master Superblock at 0x1:
    magic    0x70162     version  0x2         size     1260063   
    ssize    1048576     dsize    1197046     bsize    8192      
    fsize    8192        frag     1           minfree  10        
    inopb    64          ifpb     409         nindir   2048      
    nseg     9844        sepb     341         cleansz  1         
    segtabsz 29          segmask  0x0         segshift 0         
    bmask    0x1fff      bshift   13          ffmask   0x1FFF    
    ffshift  13          fbmask   0x0         fbshift  0
    sushift  0           fsbtodb  4           cksum    0xffc1    
    nclean   9843        dmeta    8           minfreeseg 492       
    roll_id  0xbf1af77d  interleave 0         sumsize  8192      
    seg0addr 0           maxfilesize  0xfffff00000000000
  Superblock disk addresses:
     0x1        0x1ec00    0x3d800    0x5c400    0x7b000    0x99c00   
     0xb8800    0xd7400    0xf6000    0x114c00  
  Checkpoint Info
    freehd   4           idaddr   0x4c        ifile    1         
    uinodes  1           bfree    1197003     avail    1228457   
    nfiles   3           lastseg  0x0         nextseg  0x80      
    curseg   0x0         offset   0x4e        serial   3         
    tstamp   Tue Sep 23 22:56:12 2003

IFILE inode
    mode  o100600	nlink 1	uid   0	gid   0	size  253952
    atime Wed Dec 31 19:00:00 1969
    mtime Wed Dec 31 19:00:00 1969
    ctime Wed Dec 31 19:00:00 1969
    inum  1
    Direct Addresses
	0x28	0x4d	0x2a	0x2b	0x2c	0x2d
	0x2e	0x2f	0x30	0x31	0x32	0x33
	0x47	0x0	0x0

IFILE contents
free_head 4
free_tail 408
clean	9843	dirty	1
bfree	1197009	avail	1228468


SEGMENT 0 (Disk Address 0x0)
Disklabel at 0x0
Superblock at 0x1
Segment Summary Info at 0x2
    next     0x80	nfinfo   3	ninos    3	flags    --
    sumsum   0xa302	datasum  0xe667	create   Tue Sep 23 22:55:30 2003
    roll_id  bf1af77d   serial   0
    Inode addresses:	0x3 {1v1, 2v1, 3v1}
    FINFO for inode: 1 version 1 nblocks 32 lastlength 8192
	0	1	2	3	4	5	6	7
	8	9	10	11	12	13	14	15
	16	17	18	19	20	21	22	23
	24	25	26	27	28	29	30	-12
    FINFO for inode: 2 version 1 nblocks 1 lastlength 8192
	0
    FINFO for inode: 3 version 1 nblocks 1 lastlength 8192
	0
Segment Summary Info at 0x26
    next     0x80	nfinfo   1	ninos    1	flags    --
    sumsum   0xa36d	datasum  0xe642	create   Tue Sep 23 22:56:12 2003
    roll_id  bf1af77d   serial   1
    Inode addresses:	0x27 {1v1}
    FINFO for inode: 1 version 1 nblocks 32 lastlength 8192
	0	1	2	3	4	5	6	7
	8	9	10	11	12	13	14	15
	16	17	18	19	20	21	22	23
	24	25	26	27	28	29	30	-12
Segment Summary Info at 0x48
    next     0x80	nfinfo   1	ninos    1	flags    --
    sumsum   0x8573	datasum  0xc005	create   Tue Sep 23 22:56:12 2003
    roll_id  bf1af77d   serial   2
    Inode addresses:	0x49 {1v1}
    FINFO for inode: 1 version 1 nblocks 1 lastlength 8192
	1
Segment Summary Info at 0x4b
    next     0x80	nfinfo   1	ninos    1	flags    --
    sumsum   0x8577	datasum  0xc005	create   Tue Sep 23 22:56:12 2003
    roll_id  bf1af77d   serial   3
    Inode addresses:	0x4c {1v1}
    FINFO for inode: 1 version 1 nblocks 1 lastlength 8192
	1
Segment Summary Info at 0x4e
    next     0x80	nfinfo   2	ninos    1	flags    --
    sumsum   0xa54d	datasum  0xc031	create   Tue Sep 23 22:56:12 2003
    roll_id  bf1af77d   serial   4
    Inode addresses:	0x51 {1v1}
    FINFO for inode: 1 version 1 nblocks 2 lastlength 8192
	30	-12
    FINFO for inode: 1 version 1 nblocks 1 lastlength 8192
	1

SEGMENT 1 (Disk Address 0x80)
Segment at 0x80 empty or corrupt

SEGMENT 2 (Disk Address 0x100)
Segment at 0x100 empty or corrupt

SEGMENT 3 (Disk Address 0x180)
Segment at 0x180 empty or corrupt



>How-To-Repeat:
newfs an lfs fs, then mount and unmount it.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: