The functionality for working with file systems is available to applications via POSIX functions and other functions of the standard C library.
The support limitations and special considerations for POSIX implementation are described in the following sections:
In KasperskyOS, the implementation of certain functions of the standard C library for file system management differs from the implementation of these functions in Linux and other UNIX-like operating systems. Information about these functions is provided in the table below.
Description and implementation details of the functions of the standard C library for file system management
Function |
Purpose |
Implementation specifics |
Header file |
|---|---|---|---|
|
Mount a file system. |
When starting the VFS system program, RAMFS is automatically mounted as the ' Due to the fact that initialization of the block level occurs asynchronously with VFS operation, prior to mounting a block device you must verify its readiness. When attempting to mount a block device that has not yet been registered in the block device driver, the You can use the virtual file system For more details, refer to File system mounting functions |
|
|
Unmount the file system. |
When executing the File closing events may reach VFS asynchronously. Therefore, when there are open files in the file system being unmounted, the VFS performs repeated unmount attempts during the timeout for attempts (1 second by default), after which it returns the For more details, refer to File system mounting functions |
|
|
Write the file system caches to disk. |
The function was not implemented. When calling |
|
|
Synchronize changes in the file with the disk device. |
It works if the call is supported in the file system in which the file is open, otherwise it returns the |
|
|
Synchronize changes in the file with the disk device. |
It works if the call is supported in the file system in which the file is open, otherwise it returns the |
|
|
Open a file. |
It is not permissible to use the |
|