AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
sync.c File Reference

Syncing vnodes and filesystems to their disks. More...

#include <core/system.h>
#include <fs/vfs.h>
#include <aquila/errno.h>

Go to the source code of this file.

Functions

int vfs_vsync (struct vnode *vnode, int mode)
 Would write a vnode's data and metadata to its disk.
int vfs_fssync (struct vnode *super, int mode)
 Would write a filesystem's data and metadata to its disk.
int vfs_sync (int mode)
 Would write every filesystem's data and metadata to its disk.

Detailed Description

Syncing vnodes and filesystems to their disks.

None of it is implemented yet: writes go to the disk (through the block cache) when they are made.

Definition in file sync.c.

Function Documentation

◆ vfs_fssync()

int vfs_fssync ( struct vnode * super,
int mode )

Would write a filesystem's data and metadata to its disk.

Not implemented.

Parameters
superthe filesystem's root vnode
modewhat to sync
Returns
-ENOTSUP

Definition at line 31 of file sync.c.

References vfs_fssync().

Referenced by vfs_fssync().

◆ vfs_sync()

int vfs_sync ( int mode)

Would write every filesystem's data and metadata to its disk.

Not implemented.

Parameters
modewhat to sync
Returns
-ENOTSUP

Definition at line 43 of file sync.c.

References vfs_sync().

Referenced by vfs_sync().

◆ vfs_vsync()

int vfs_vsync ( struct vnode * vnode,
int mode )

Would write a vnode's data and metadata to its disk.

Not implemented.

Parameters
vnodethe vnode
modewhat to sync
Returns
-ENOTSUP

Definition at line 18 of file sync.c.

References vfs_vsync().

Referenced by vfs_vsync().