git: 7c2ec6cdf575 - main - tmpfs.5: Add fstab line example

From: Mateusz Piotrowski <0mp_at_FreeBSD.org>
Date: Thu, 21 Jul 2022 18:09:25 UTC
The branch main has been updated by 0mp (doc, ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=7c2ec6cdf575de11d5ed33109d92e757dd3d072c

commit 7c2ec6cdf575de11d5ed33109d92e757dd3d072c
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2022-07-21 18:06:32 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2022-07-21 18:08:06 +0000

    tmpfs.5: Add fstab line example
    
    MFC after:      3 days
---
 share/man/man5/tmpfs.5 | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/share/man/man5/tmpfs.5 b/share/man/man5/tmpfs.5
index 53d4c02b0aef..b934fe02868d 100644
--- a/share/man/man5/tmpfs.5
+++ b/share/man/man5/tmpfs.5
@@ -53,7 +53,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd September 8, 2017
+.Dd July 21, 2022
 .Dt TMPFS 5
 .Os
 .Sh NAME
@@ -142,11 +142,19 @@ Specifies the maximum file size in bytes.
 Defaults to the maximum possible value.
 .El
 .Sh EXAMPLES
-To mount a
+Mount a
 .Nm
 memory file system:
 .Pp
 .Dl "mount -t tmpfs tmpfs /tmp"
+.Pp
+Configure a
+.Nm
+mount via
+.Xr fstab 5 :
+.Bd -literal -offset indent
+tmpfs /tmp tmpfs rw 0 0
+.Ed
 .Sh SEE ALSO
 .Xr procstat 1 ,
 .Xr mmap 2 ,