Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: incorrect super block w recent changes



I have another instance of this problem and made the code dump a few more
values:

wd0 at atabus0 drive 0
wd0: <SAMSUNG HM120IC>
wd0: 111 GB, 232581 cyl, 16 head, 63 sec, 512 bytes/sect x 234441648 sectors
boot device: wd0
root on wd0a dumps on wd0b
cylinder group size mismatch: fs_cgsize = 0x4800, fs->fs_cgsize = 0x4000, CGSIZE(fs) = 0x4001
sizeof(struct cg): 0xb0
howmany((ipg), NBBY): 0xb60
howmany((fpg), NBBY): 0x2e14
howmany(ffs_fragstoblks(fs, (fpg)), NBBY)): 0x5c3
ffs_fragstoblks(fs, (fpg)): 0x2e14 [fpg = 0x170a0]


I guess the CGSIZE value is off by one somehow.

dumpfs shows:

file system: /dev/rwd0a
format  FFSv1
endian  little-endian
magic   11954           time    Wed Apr 29 14:21:59 2015
superblock location     8192    id      [ 4c4ad59b 16a2beb3 ]
cylgrp  dynamic inodes  4.4BSD  sblock  FFSv2   fslevel 4
nbfree  6919874 ndir    7531    nifree  14144989        nffree  15847
ncg     610     size    57561588        blocks  56663655
bsize   16384   shift   14      mask    0xffffc000
fsize   2048    shift   11      mask    0xfffff800
frag    8       shift   3       fsbtodb 2
bpg     11796   fpg     94368   ipg     23296
minfree 5%      optim   time    maxcontig 4     maxbpg  4096
symlinklen 60   contigsumsize 4
maxfilesize 0x000400400402ffff
nindir  4096    inopb   128
avgfilesize 16384       avgfpdir 64
sblkno  8       cblkno  16      iblkno  24      dblkno  1480
sbsize  2048    cgsize  16384
csaddr  1480    cssize  10240
cgrotor 0       fmod    0       ronly   0       clean   0x02
wapbl version 0x1       location 2      flags 0x0
wapbl loc0 115134912    loc1 131072     loc2 512        loc3 3
flags   wapbl 
fsmnt   /


Martin


Home | Main Index | Thread Index | Old Index