The filesystem is entirely maintained in memory, no external storage is used. File data is allocated in 512 byte blocks. If a maximum size is specified, the actual maximum is rounded down to the nearest whole number of blocks:
actualsize := (size / 512) * 512;
The root of the filesystem is owned by the user who invoked memfs and is created with Read, Write and Execute permissions for the owner and Read and Execute permissions for everyone else (8r755).
MEMFS(4 ) | Rev: Tue Mar 31 02:42:39 GMT 2015 |