git: 45e2c2f70d04 - stable/12 - tmpfs.5: Add fstab line example

From: Mateusz Piotrowski <0mp_at_FreeBSD.org>
Date: Mon, 25 Jul 2022 20:01:47 UTC
The branch stable/12 has been updated by 0mp (doc, ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=45e2c2f70d04be123b3232c53528e841931fbdac

commit 45e2c2f70d04be123b3232c53528e841931fbdac
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2022-07-21 18:06:32 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2022-07-25 20:01:43 +0000

    tmpfs.5: Add fstab line example
    
    MFC after:      3 days
    
    (cherry picked from commit 7c2ec6cdf575de11d5ed33109d92e757dd3d072c)
---
 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 84b394da6210..82b0f41bfd60 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
@@ -141,11 +141,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 ,