Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147780001
D48875.1784350279.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D48875.1784350279.diff
View Options
diff --git a/sbin/tunefs/tunefs.8 b/sbin/tunefs/tunefs.8
--- a/sbin/tunefs/tunefs.8
+++ b/sbin/tunefs/tunefs.8
@@ -25,7 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd November 17, 2023
+.Dd February 6, 2025
.Dt TUNEFS 8
.Os
.Sh NAME
@@ -50,12 +50,34 @@
.Op Fl s Ar avgfpdir
.Op Fl S Ar size
.Op Fl t Cm enable | disable
-.Ar special | filesystem
+.Ar filesystem
.Sh DESCRIPTION
The
.Nm
utility is designed to change the dynamic parameters of a UFS file system
which affect the layout policies.
+.Pp
+The file system to be operated on is a block device special name,
+a file system path, or a UFS file system image as a regular file
+.Pq Ar filesystem .
+.Pp
+.Nm
+searches for a valid filesystem in several places.
+First it will examine
+.Ar filesystem
+as a file, a file system path, or a device name under
+.Pa /dev .
+If none of those match,
+.Nm
+will read
+.Pa /etc/fstab
+and try to match
+.Ar filesystem
+to a device special name or a file system.
+If the file system to be tuned has been mounted by hand,
+.Nm
+will also look for the file system as a directory.
+.Pp
The
.Nm
utility cannot be run on an active file system.
diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c
--- a/sbin/tunefs/tunefs.c
+++ b/sbin/tunefs/tunefs.c
@@ -1060,7 +1060,7 @@
" [-L volname] [-l enable | disable] [-m minfree]",
" [-N enable | disable] [-n enable | disable]",
" [-o space | time] [-p] [-s avgfpdir] [-t enable | disable]",
-" special | filesystem");
+" filesystem");
exit(2);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 18, 4:51 AM (2 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29179101
Default Alt Text
D48875.1784350279.diff (1 KB)
Attached To
Mode
D48875: Update tunefs.8 and tunefs.c to clarify the optional arguments 'special' and 'filesystem'.
Attached
Detach File
Event Timeline
Log In to Comment