Source-Changes archive

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

CVS commit: src



Module Name:    src
Committed By:   wrstuden
Date:           Fri May 14 22:36:50 UTC 1999

Modified Files:
        src/sbin/newfs: mkfs.c
Log Message:
Make newfs's spare superblock output nicer. Figure out how wide the
largest block number will be, and make the columns wide enough for it. Then
make enough columns to fit in an 80 character window.

Samples: small end & faked up values:

super-block backups (for fsck -b #) at:
32,  176,  272,  416,  512,  656,  752,  896,  992, 1136, 1232, 1376, 1472,
1616, 1712, 1856, 1952, 2096, 2192, 2336, 2432, 2576, 2672, 2816, 2912, 3056,
3152, 3296, 3392, 3536, 3632, 3776, 3872, 4016, 4112, 4256, 4352, 4496, 4592,

For a 155 GB fs we have:

super-block backups (for fsck -b #) at:
128,     65792,    131456,    197120,    262784,    328448,    394112,
459776,    525440,    591104,    656768,    722432,    788096,    853760,
919424,    985088,   1050752,   1116416,   1182080,   1247744,   1313408,
1379072,   1444736,   1510400,   1576064,   1641728,   1707392,   1773056,
...
317462144, 317527808, 317593472, 317659136, 317724800, 317790464, 317856128,
317921792, 317987456, 318053120, 318118784, 318184448, 318250112, 318315776,
318381440, 318447104, 318512768, 318578432,

Now it actually looks like someone's thought about making large fs's. :-)




Home | Main Index | Thread Index | Old Index