46 lines
903 B
C
46 lines
903 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#include <kernel/common.h>
|
|
#include <kernel/slab.h>
|
|
#include <kernel/block.h>
|
|
|
|
#include <fs/vfs.h>
|
|
|
|
#include <lib/string.h>
|
|
|
|
#include "inode.h"
|
|
|
|
struct inode_ops fat32_inode_ops = {0};
|
|
|
|
static ssize_t read(inode_t *inode, char *buf, size_t size, size_t offset)
|
|
{
|
|
return -ENOSYS;
|
|
}
|
|
|
|
static ssize_t write(inode_t *inode, const char *buf, size_t size, size_t offset)
|
|
{
|
|
return -ENOSYS;
|
|
}
|
|
|
|
static int link(inode_t *parent_dir, inode_t *child, const char *name, dirent_t **out)
|
|
{
|
|
return -ENOSYS;
|
|
}
|
|
|
|
static int unlink(inode_t *parent_dir, const char *name)
|
|
{
|
|
return -ENOSYS;
|
|
}
|
|
|
|
static ssize_t get_dents(inode_t *parent, dirent_t **dents)
|
|
{
|
|
return -ENOSYS;
|
|
}
|
|
|
|
void fat32_inode_ops_init(void)
|
|
{
|
|
fat32_inode_ops.read = read;
|
|
fat32_inode_ops.write = write;
|
|
fat32_inode_ops.link = link;
|
|
fat32_inode_ops.unlink = unlink;
|
|
fat32_inode_ops.get_dents = get_dents;
|
|
}
|