diff options
author | dg <dg@FreeBSD.org> | 1994-10-01 16:56:22 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-10-01 16:56:22 +0000 |
commit | c32e69883fe19e5e15cad90f2573376f24cae338 (patch) | |
tree | c034334e19791c358e8fa01255fdb563143de1f2 /sbin/newfs/mkfs.c | |
parent | 707f608bbfc7ca2d633b5e37b58852ddd810fd3d (diff) | |
download | FreeBSD-src-c32e69883fe19e5e15cad90f2573376f24cae338.zip FreeBSD-src-c32e69883fe19e5e15cad90f2573376f24cae338.tar.gz |
1) If nrpos <= 1, don't output rpos table (and set fs_cpc to 0) - disabling
the use of the rotational position table.
2) Allow specification of 0 rotational positions (disables function).
3) Make rotdelay=0 and nrpos=0 by default.
The purpose of the above is to optimize for modern SCSI (and IDE) drives
that do read-ahead/write-behind.
Diffstat (limited to 'sbin/newfs/mkfs.c')
-rw-r--r-- | sbin/newfs/mkfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c index 398f369..9d71c20 100644 --- a/sbin/newfs/mkfs.c +++ b/sbin/newfs/mkfs.c @@ -443,7 +443,7 @@ mkfs(pp, fsys, fi, fo) sblock.fs_npsect = nphyssectors; sblock.fs_postblformat = FS_DYNAMICPOSTBLFMT; sblock.fs_sbsize = fragroundup(&sblock, sizeof(struct fs)); - if (sblock.fs_ntrak == 1) { + if (sblock.fs_ntrak == 1 || sblock.fs_nrpos <= 1) { sblock.fs_cpc = 0; goto next; } |