summaryrefslogtreecommitdiffstats
path: root/sbin/newfs/newfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/newfs/newfs.c')
-rw-r--r--sbin/newfs/newfs.c10
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)
OpenPOWER on IntegriCloud