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:
parent
5dc8d4254a
commit
3156bbb2d1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3467
@ -443,7 +443,7 @@ mkfs(pp, fsys, fi, fo)
|
|||||||
sblock.fs_npsect = nphyssectors;
|
sblock.fs_npsect = nphyssectors;
|
||||||
sblock.fs_postblformat = FS_DYNAMICPOSTBLFMT;
|
sblock.fs_postblformat = FS_DYNAMICPOSTBLFMT;
|
||||||
sblock.fs_sbsize = fragroundup(&sblock, sizeof(struct fs));
|
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;
|
sblock.fs_cpc = 0;
|
||||||
goto next;
|
goto next;
|
||||||
}
|
}
|
||||||
|
@ -168,7 +168,7 @@ See
|
|||||||
for more details on how to set this option.
|
for more details on how to set this option.
|
||||||
.It Fl n Ar number of distinguished rotational positions
|
.It Fl n Ar number of distinguished rotational positions
|
||||||
Determines how many rotational time slots there are in one revolution of
|
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
|
.It Fl o Ar optimization\ preference
|
||||||
.Pq ``space'' or ``time''
|
.Pq ``space'' or ``time''
|
||||||
The file system can either be instructed to try to minimize the time spent
|
The file system can either be instructed to try to minimize the time spent
|
||||||
|
@ -138,11 +138,11 @@ void fatal();
|
|||||||
* rotational positions that we distinguish. With NRPOS of 8 the resolution
|
* rotational positions that we distinguish. With NRPOS of 8 the resolution
|
||||||
* of our summary information is 2ms for a typical 3600 rpm drive.
|
* of our summary information is 2ms for a typical 3600 rpm drive.
|
||||||
*
|
*
|
||||||
* ...but now we make this 1 (which disables the rotational position table)
|
* ...but now we make this 1 (which escentially disables the rotational
|
||||||
* because modern drives with read-ahead and write-behind do better without
|
* position table because modern drives with read-ahead and write-behind do
|
||||||
* the rotational position table.
|
* 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 */
|
int mfs; /* run as the memory based filesystem */
|
||||||
@ -282,6 +282,8 @@ main(argc, argv)
|
|||||||
if ((nrpos = atoi(optarg)) < 0)
|
if ((nrpos = atoi(optarg)) < 0)
|
||||||
fatal("%s: bad rotational layout count\n",
|
fatal("%s: bad rotational layout count\n",
|
||||||
optarg);
|
optarg);
|
||||||
|
if (nrpos == 0)
|
||||||
|
nrpos = 1;
|
||||||
break;
|
break;
|
||||||
case 'o':
|
case 'o':
|
||||||
if (mfs)
|
if (mfs)
|
||||||
|
Loading…
Reference in New Issue
Block a user