Scrive Sergey 'DoubleF' Zaharchenko <[EMAIL PROTECTED]>:

> On Thu,  8 Jan 2004 05:34:44 +0200
> [EMAIL PROTECTED] probably wrote:
> 
> Hi Ion,
> 
> > I've tried to change the sources of newfs (mkfs.c) to also get
> the 
> > bps/cpg value on newfs -N (as the newfs was made from a 5.1
> sysinstall 
> > without any custom options) but I'm doing something wrong.
> 
> What does the ordinary "newfs -N" say for you? For me, it says:
> > Warning: Block size and bytes per inode restrict cylinders per
> group to 22.
> > /dev/ad2s2a:    2097152 sectors in 512 cylinders of 1 tracks,
> 4096 sectors
> >         1024.0MB in 24 cyl groups (22 c/g, 44.00MB/g, 10624 i/g)
>                                       ^
> /-------------------------------------/
> This values seems to be what you want.
> I'm not sure it'll work the same way for 5.x though.

it>/mnt# newfs -N /dev/ad3s1f | head
/dev/ad3s1f: 36383.7MB (74513744 sectors) block size 16384, fragment 
size 2048 using 198 cylinder groups of 183.77MB, 11761 blks, 23552 
inodes.
super-block backups (for fsck -b #) at:
 160, 376512, 752864, 1129216, 1505568, 1881920, 2258272, 2634624, 
3010976, .....

So no luck here :). I've tried adding some fprintf in the newfs code 
(like fs_fcg and fs_ncg), but obviously I've did something wrong and 
the values don't make any sense.

Thanks,
IOnut
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to