1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-30 08:19:09 +00:00

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.
This commit is contained in:
David Greenman 1994-10-09 20:10:56 +00:00
parent 5dc8d4254a
commit 3156bbb2d1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3467
3 changed files with 8 additions and 6 deletions

View File

@ -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 || sblock.fs_nrpos <= 1) {
if (sblock.fs_ntrak == 1) {
sblock.fs_cpc = 0;
goto next;
}

View File

@ -168,7 +168,7 @@ See
for more details on how to set this option.
.It Fl n Ar number of distinguished rotational positions
Determines how many rotational time slots there are in one revolution of
the disk. Defaults to 0, which disables the rotational position table.
the disk. Defaults to 1, which escentially disables the rotational position table.
.It Fl o Ar optimization\ preference
.Pq ``space'' or ``time''
The file system can either be instructed to try to minimize the time spent

View File

@ -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)