]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r203164:
authorjh <jh@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 9 Mar 2011 15:27:11 +0000 (15:27 +0000)
committerjh <jh@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 9 Mar 2011 15:27:11 +0000 (15:27 +0000)
commitd9f2123552b4f1680c623e65937c8d9e2ce46f5c
tree10c0e75b4fb4dbf81da73daaa3b573328fce69c5
parent1646e2cd9162846af52213507d9a9c46dd805a32
MFC r203164:

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().

MFC r203169:

Bump .Dd for r203164.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219429 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
share/man/man5/tmpfs.5
sys/fs/tmpfs/tmpfs_vfsops.c