Project

General

Profile

« Previous | Next » 

Revision 28a05cf1

Added by Phil Davis over 9 years ago

Use MiB units for memory disk size

Forum: https://forum.pfsense.org/index.php?topic=106547.0
The underlying FreeBSD command seems to allocate space in MiB - e.g. https://www.freebsd.org/doc/handbook/disks-virtual.html examples show a 5m disk getting 10240 sectors (of 512 bytes) = 5120 KiB = 5 MiB. Even though the formatted space shown by df ends up being less, the underlying total allocated space is the specified size in MiB.
/etc/rc.embedded does commands like:
mdmfs -S -M -s 123m md /tmp
Which will make a 123MiB memory disk.

  • added
  • modified
  • copied
  • renamed
  • deleted