diff options
author | Søren Schmidt <sos@FreeBSD.org> | 1996-12-01 11:25:38 +0000 |
---|---|---|
committer | Søren Schmidt <sos@FreeBSD.org> | 1996-12-01 11:25:38 +0000 |
commit | 7cb29d33945b2263c6747f264fb6e1192bde0f61 (patch) | |
tree | 3caeb1000fbf433bbefbf62abe3def80c205c219 /sbin/newfs/mkfs.c | |
parent | 79c2a5b3ffac4ddef5704839339fb31182fb2bb3 (diff) | |
download | src-7cb29d33945b2263c6747f264fb6e1192bde0f61.tar.gz src-7cb29d33945b2263c6747f264fb6e1192bde0f61.zip |
Notes
Diffstat (limited to 'sbin/newfs/mkfs.c')
-rw-r--r-- | sbin/newfs/mkfs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c index d67090b2bc7b..20d68327e329 100644 --- a/sbin/newfs/mkfs.c +++ b/sbin/newfs/mkfs.c @@ -82,6 +82,7 @@ extern int nsectors; /* # sectors/track */ extern int nphyssectors; /* # sectors/track including spares */ extern int secpercyl; /* sectors per cylinder */ extern int sectorsize; /* bytes/sector */ +extern int realsectorsize; /* bytes/sector in hardware*/ extern int rpm; /* revolutions/minute of drive */ extern int interleave; /* hardware sector interleave */ extern int trackskew; /* sector 0 skew, per track */ @@ -209,7 +210,8 @@ mkfs(pp, fsys, fi, fo) */ if (fssize <= 0) printf("preposterous size %d\n", fssize), exit(13); - wtfs(fssize - 1, sectorsize, (char *)&sblock); + wtfs(fssize - (realsectorsize / DEV_BSIZE), realsectorsize, + (char *)&sblock); /* * collect and verify the sector and track info */ |