summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorjh <jh@FreeBSD.org>2010-01-29 12:09:14 +0000
committerjh <jh@FreeBSD.org>2010-01-29 12:09:14 +0000
commitcf482307807918efe12edbfee94740f0069fc33b (patch)
treed8a53985962bf414ab0d94bf298c03d965014b62 /share
parentf403000d3914d84750322e39d1292d2420d88026 (diff)
downloadFreeBSD-src-cf482307807918efe12edbfee94740f0069fc33b.zip
FreeBSD-src-cf482307807918efe12edbfee94740f0069fc33b.tar.gz
Add "maxfilesize" mount option for tmpfs to allow specifying the
maximum file size limit. Default is UINT64_MAX when the option is not specified. It was useless to set the limit to the total amount of memory and swap in the system. Use tmpfs_mem_info() rather than get_swpgtotal() in tmpfs_mount() to check if there is enough memory available. Remove now unused get_swpgtotal(). Reviewed by: Gleb Kurtsou Approved by: trasz (mentor)
Diffstat (limited to 'share')
-rw-r--r--share/man/man5/tmpfs.52
1 files changed, 2 insertions, 0 deletions
diff --git a/share/man/man5/tmpfs.5 b/share/man/man5/tmpfs.5
index 12f392a..b27438d 100644
--- a/share/man/man5/tmpfs.5
+++ b/share/man/man5/tmpfs.5
@@ -70,6 +70,8 @@ permissions in octal format.
maximum number of inodes.
.It Cm size
maximum size (in bytes) for the file system.
+.It Cm maxfilesize
+maximum file size (in bytes).
.El
.Sh EXAMPLES
To mount a
OpenPOWER on IntegriCloud