Operations on mounted file systems.
Similar, but not equal, to struct super_operations in Linux
Definition at line 627 of file vfs.h.
|
int(* | format )(vfs_mount_t *mountp) |
| Format the file system on the given mount point.
|
|
int(* | mount )(vfs_mount_t *mountp) |
| Perform any extra processing needed after mounting a file system.
|
|
int(* | umount )(vfs_mount_t *mountp) |
| Perform the necessary clean up for unmounting a file system.
|
|
int(* | rename )(vfs_mount_t *mountp, const char *from_path, const char *to_path) |
| Rename a file.
|
|
int(* | unlink )(vfs_mount_t *mountp, const char *name) |
| Unlink (delete) a file from the file system.
|
|
int(* | mkdir )(vfs_mount_t *mountp, const char *name, mode_t mode) |
| Create a directory on the file system.
|
|
int(* | rmdir )(vfs_mount_t *mountp, const char *name) |
| Remove a directory from the file system.
|
|
int(* | stat )(vfs_mount_t *mountp, const char *restrict path, struct stat *restrict buf) |
| Get file status.
|
|
int(* | statvfs )(vfs_mount_t *mountp, const char *restrict path, struct statvfs *restrict buf) |
| Get file system status.
|
|
int(* vfs_file_system_ops::mount) (vfs_mount_t *mountp) |
Perform any extra processing needed after mounting a file system.
If this call returns an error, the whole vfs_mount call will signal a failure.
All fields of mountp
will be initialized by vfs_mount beforehand, private_data
will be initialized to NULL.
- Parameters
-
[in] | mountp | file system mount being mounted |
- Returns
- 0 on success
-
<0 on error
Definition at line 652 of file vfs.h.