diff options
author | dg <dg@FreeBSD.org> | 1994-10-09 20:10:56 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-10-09 20:10:56 +0000 |
commit | 0c0e5e4cbf54b34e02183e61af87b14ca5904e05 (patch) | |
tree | 60a09e59c459f5e20c0ccf2e3399719b103159bf /sbin/newfs/newfs.c | |
parent | 5648fa5d60e27f1af9c1f335a720af1f00d2d7fa (diff) | |
download | FreeBSD-src-0c0e5e4cbf54b34e02183e61af87b14ca5904e05.zip FreeBSD-src-0c0e5e4cbf54b34e02183e61af87b14ca5904e05.tar.gz |
Backed out part of the last change that prevents the rpos table from
being output if <= 1 rpos; there is a bug in the kernel which doesn't
quite get along with this. Changed default #rpos to 1, and fixed up
manual page. Converted nrpos to 1 if user specifies 0.
Diffstat (limited to 'sbin/newfs/newfs.c')
-rw-r--r-- | sbin/newfs/newfs.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c index 62fde30..c419c30 100644 --- a/sbin/newfs/newfs.c +++ b/sbin/newfs/newfs.c @@ -138,11 +138,11 @@ void fatal(); * rotational positions that we distinguish. With NRPOS of 8 the resolution * of our summary information is 2ms for a typical 3600 rpm drive. * - * ...but now we make this 1 (which disables the rotational position table) - * because modern drives with read-ahead and write-behind do better without - * the rotational position table. + * ...but now we make this 1 (which escentially disables the rotational + * position table because modern drives with read-ahead and write-behind do + * better without the rotational position table. */ -#define NRPOS 0 /* number distinct rotational positions */ +#define NRPOS 1 /* number distinct rotational positions */ int mfs; /* run as the memory based filesystem */ @@ -282,6 +282,8 @@ main(argc, argv) if ((nrpos = atoi(optarg)) < 0) fatal("%s: bad rotational layout count\n", optarg); + if (nrpos == 0) + nrpos = 1; break; case 'o': if (mfs) |