| |||
| Home > Using Model Components > Virtual filesystem > VFS operations | |||
The VFS supports the following filesystem operations:
retrieves metadata for the file, directory or symbolic link
creates a new directory
removes a file, directory or symbolic link
renames a file, directory or symbolic link
removes an empty directory
sets metadata for the file, directory or symbolic link.
setattr is not currently implemented.
Symbolic link functions are implemented to support symbolic links in Linux, but they are not currently implemented. File permissions are defined but not implemented.
The VFS supports the following mount points:
frees the iterator handle returned from openmounts
retrieves an iterator handle for the list of available mounts
reads one entry from the mount iterator ID.
The VFS supports the following directory iterators:
frees a directory iterator handle retrieved by opendir
retrieves an iterator handle for the directory specified
reads the next entry from the directory iterator.
Datestamps returned are in milliseconds elapsed since the VFS epoch of January 01 1970 00:00 UTC and are host datestamps. The host datestamp might be in the future relative to the simulated OS datestamp.
The VFS supports the following file operations:
frees a handle
opened with openfile
forces the host OS to flush all file data to persistent storage
returns the current size of a file, in bytes
returns a handle to the file specified
reads a block of data from a file
sets the current size of a file in bytes, either by truncating, or extending the file with zeroes
writes a block of data to a file.