Date: Thu, 8 Jan 2004 07:36:37 +0200 From: itetcu@tecnik93.com To: Sergey 'DoubleF' Zaharchenko <doublef@tele-kom.ru> Cc: questions@freebsd.org Subject: Re: Yet another SUPERBLOCK/LABEL problem Message-ID: <1073540197.3ffcec6575a44@webmail.tecnik93.com> In-Reply-To: <20040108081912.4958e62d.doublef@tele-kom.ru> References: <1073532884.3ffccfd4be203@webmail.tecnik93.com> <20040108081912.4958e62d.doublef@tele-kom.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Scrive Sergey 'DoubleF' Zaharchenko <doublef@tele-kom.ru>: > On Thu, 8 Jan 2004 05:34:44 +0200 > itetcu@tecnik93.com 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1073540197.3ffcec6575a44>