Source-Changes archive

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

Re: CVS commit: src/sbin/newfs



On Tue, Jan 10, 2006 at 04:53:24PM +1100, matthew green wrote:
>    There really isn't any point reporting all the alternate superblocks,
>    big filesystems can have thousands of them - no one ever writes them down.
>    After the first line of numbers just output a '.' for each cylinder group.
>    Also limit the lines to 79 columns so broken terminal emulaters don't
>    double-space the output lines.
>    
> 
> i don't write them down but i *do* pay attention when i re-run
> newfs with -N option... are they printed with that or not at
> all any more?  how do i find them out now?

You'll see about 9 values eg:

$ (cd src obj; ./newfs -N -O2 -s 100000M -F ./z)
/bsd/current/obj/sbin/newfs
./z: 100000.0MB (204800000 sectors) block size 16384, fragment size 2048
        using 541 cylinder groups of 184.84MB, 11830 blks, 22912 inodes.
super-block backups (for fsck_ffs -b #) at:
 160, 378720, 757280, 1135840, 1514400, 1892960, 2271520, 2650080, 3028640,
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
..........................................................

If you need to give fsck a later number you won't have any filestem left.
Also the numbers are (IIRC) an arithmetic progression.

        David

-- 
David Laight: david%l8s.co.uk@localhost



Home | Main Index | Thread Index | Old Index