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: Thu Feb 15 14:43:41 GMT 2007 |