SCCS-vsn: sbin/newfs/mkfs.c 6.18
-static char sccsid[] = "@(#)mkfs.c 6.17 (Berkeley) %G%";
+static char sccsid[] = "@(#)mkfs.c 6.18 (Berkeley) %G%";
#endif /* not lint */
#ifndef STANDALONE
#endif /* not lint */
#ifndef STANDALONE
struct dinode zino[MAXBSIZE / sizeof(struct dinode)];
int fsi, fso;
struct dinode zino[MAXBSIZE / sizeof(struct dinode)];
int fsi, fso;
daddr_t alloc();
mkfs(pp, fsys, fi, fo)
daddr_t alloc();
mkfs(pp, fsys, fi, fo)
long mapcramped, inodecramped;
long postblsize, rotblsize, totalsbsize;
int ppid, status;
long mapcramped, inodecramped;
long postblsize, rotblsize, totalsbsize;
int ppid, status;
void started();
#ifndef STANDALONE
void started();
#ifndef STANDALONE
if (!mfs)
printf("super-block backups (for fsck -b #) at:");
for (cylno = 0; cylno < sblock.fs_ncg; cylno++) {
if (!mfs)
printf("super-block backups (for fsck -b #) at:");
for (cylno = 0; cylno < sblock.fs_ncg; cylno++) {
if (mfs)
continue;
if (cylno % 9 == 0)
if (mfs)
continue;
if (cylno % 9 == 0)
* Now construct the initial file system,
* then write out the super-block.
*/
* Now construct the initial file system,
* then write out the super-block.
*/
sblock.fs_time = utime;
wtfs(SBOFF / sectorsize, sbsize, (char *)&sblock);
for (i = 0; i < sblock.fs_cssize; i += sblock.fs_bsize)
sblock.fs_time = utime;
wtfs(SBOFF / sectorsize, sbsize, (char *)&sblock);
for (i = 0; i < sblock.fs_cssize; i += sblock.fs_bsize)
/*
* Initialize a cylinder group.
*/
/*
* Initialize a cylinder group.
*/
{
daddr_t cbase, d, dlower, dupper, dmax;
long i, j, s;
{
daddr_t cbase, d, dlower, dupper, dmax;
long i, j, s;
#endif
char buf[MAXBSIZE];
#endif
char buf[MAXBSIZE];
+fsinit(utime)
+ time_t utime;