|
ginnOS
The reference: libc, the libraries and the kernel
|
ext2 implementation of the filesystem operations vtable. More...
#include "fs.h"#include "ext2_ops.h"#include "kernel/sync/mutex.h"#include "kernel/device/device.h"#include "common/memory.h"Functions | |
| kerr_t | ext2_ops_mount (fs_mount_t *mount, block_device_t *device) |
| initialize an ext2 filesystem on a block device and install its operations vtable on the mount. | |
ext2 implementation of the filesystem operations vtable.
this is the only file in the fs layer that names ext2 functions. it adapts ext2's calls and types to the generic fs_* contract and exposes them as a single fs_ops_t. fs_mount() installs this table; the generic fs.c dispatches through it and never touches ext2 directly.
| kerr_t ext2_ops_mount | ( | fs_mount_t * | mount, |
| block_device_t * | device ) |
initialize an ext2 filesystem on a block device and install its operations vtable on the mount.
after this succeeds, all access goes through mount->ops.
| mount | filesystem mount object to initialize. |
| device | initialized block device backend. |