tmpfs - Fix arbitrary maximum file size limitation
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 12 Dec 2017 22:45:04 +0000 (14:45 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 12 Dec 2017 22:49:49 +0000 (14:49 -0800)
commitb2394163672591e9926c9cb1e2ccb6a6a286c16f
treef3b191e64aa640384cf2d9a51023197d04d8b894
parent8d16ca27bd90d05d5235e1d96e00b9562e747edb
tmpfs - Fix arbitrary maximum file size limitation

* tmpfs's maxfilesize was limited to the original tmpfs mount
  storage limit, prior to argument overrides.  In addition,
  the -f argument override would not increase the maxfilesize
  limit beyond the original storage limit anyway.

* Remove this limit calculation entirely.  Instead the limit
  is based on the storage limit which can be optioned at mount
  time.

* Fixes expectations when tmpfs is used to hold just a few (or
  even just one) file.

Reported-by: kerma
sys/vfs/tmpfs/tmpfs_vfsops.c