From 044479f5ad1ba4ec37ba855de5e5d2c0502d5511 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Tue, 10 Apr 2001 10:36:44 +0000 Subject: [PATCH] Add information about the new options to newfs and tunefs which set the expected average file size and number of files per directory. Could do with some fleshing out. --- sbin/newfs/newfs.8 | 6 ++++++ sbin/tunefs/tunefs.8 | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/sbin/newfs/newfs.8 b/sbin/newfs/newfs.8 index faa5bd411923..915f8dc62371 100644 --- a/sbin/newfs/newfs.8 +++ b/sbin/newfs/newfs.8 @@ -50,6 +50,8 @@ .Op Fl d Ar rotdelay .Op Fl e Ar maxbpg .Op Fl f Ar frag-size +.Op Fl g Ar avgfilesize +.Op Fl h Ar avfpdir .Op Fl i Ar bytes .Op Fl k Ar skew .Op Fl l Ar interleave @@ -200,6 +202,10 @@ ranging in value between and .Ar blocksize . The default is 1024 bytes. +.It Fl g Ar avgfilesize +The expected average file size for the file system. +.It Fl h Ar avgfpdir +The expected average number of files per directory on the file system. .It Fl i Ar number of bytes per inode Specify the density of inodes in the file system. The default is to create an inode for every diff --git a/sbin/tunefs/tunefs.8 b/sbin/tunefs/tunefs.8 index 72fc5a70a87c..dd6ea92fad73 100644 --- a/sbin/tunefs/tunefs.8 +++ b/sbin/tunefs/tunefs.8 @@ -44,11 +44,13 @@ .Op Fl a Ar maxcontig .Op Fl d Ar rotdelay .Op Fl e Ar maxbpg +.Op Fl f Ar avgfilesize .Op Fl m Ar minfree .Bk -words .Op Fl n Ar enable | disable .Op Fl o Ar space | time .Op Fl p +.Op Fl s Ar avgfpdir .Ek .Ar special | Ar filesystem .Sh DESCRIPTION @@ -92,6 +94,8 @@ more frequently than if they were allowed to allocate all the blocks in a cylinder group before seeking elsewhere. For file systems with exclusively large files, this parameter should be set higher. +.It Fl f Ar avgfilezsize +Specify the expected average file size. .It Fl m Ar minfree Specify the percentage of space held back from normal users; the minimum free space threshold. @@ -122,6 +126,8 @@ are on the selected file system. More detailed information can be obtained in the .Xr dumpfs 8 manual page. +.It Fl s Ar avgfpdir +Specify the expected number of files per directory. .El .Pp At least one of the above flags is required.