aboutsummaryrefslogtreecommitdiff
path: root/kernel/fs/s5fs/s5fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fs/s5fs/s5fs.c')
-rw-r--r--kernel/fs/s5fs/s5fs.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/kernel/fs/s5fs/s5fs.c b/kernel/fs/s5fs/s5fs.c
index fc327bb..9205ecf 100644
--- a/kernel/fs/s5fs/s5fs.c
+++ b/kernel/fs/s5fs/s5fs.c
@@ -210,8 +210,6 @@ long s5fs_mount(fs_t *fs)
*/
static void s5fs_read_vnode(fs_t *fs, vnode_t *vn)
{
- // NOT_YET_IMPLEMENTED("S5FS: s5fs_read_vnode");
-
// Get the s5_node from the vnode
s5_node_t *s5_node = VNODE_TO_S5NODE(vn);
@@ -284,8 +282,6 @@ static void s5fs_read_vnode(fs_t *fs, vnode_t *vn)
*/
static void s5fs_delete_vnode(fs_t *fs, vnode_t *vn)
{
- // NOT_YET_IMPLEMENTED("S5FS: s5fs_delete_vnode");
-
// Get the s5_node from the vnode
s5_node_t *s5_node = VNODE_TO_S5NODE(vn);
@@ -381,7 +377,6 @@ static void s5fs_sync(fs_t *fs)
static ssize_t s5fs_read(vnode_t *vnode, size_t pos, void *buf, size_t len)
{
KASSERT(!S_ISDIR(vnode->vn_mode) && "should be handled at the VFS level");
- // NOT_YET_IMPLEMENTED("S5FS: s5fs_read");
return s5_read_file(VNODE_TO_S5NODE(vnode), pos, buf, len);
}
@@ -390,7 +385,6 @@ static ssize_t s5fs_write(vnode_t *vnode, size_t pos, const void *buf,
size_t len)
{
KASSERT(!S_ISDIR(vnode->vn_mode) && "should be handled at the VFS level");
- // NOT_YET_IMPLEMENTED("S5FS: s5fs_write");
return s5_write_file(VNODE_TO_S5NODE(vnode), pos, buf, len);
}
@@ -400,8 +394,6 @@ static ssize_t s5fs_write(vnode_t *vnode, size_t pos, const void *buf,
*/
static long s5fs_mmap(vnode_t *file, mobj_t **ret)
{
- // NOT_YET_IMPLEMENTED("VM: s5fs_mmap");
-
// Add a reference to the underlying mobj and return it
mobj_lock(&file->vn_mobj);
mobj_ref(&file->vn_mobj);
@@ -436,7 +428,6 @@ static long s5fs_mknod(struct vnode *dir, const char *name, size_t namelen,
int mode, devid_t devid, struct vnode **out)
{
KASSERT(S_ISDIR(dir->vn_mode) && "should be handled at the VFS level");
- // NOT_YET_IMPLEMENTED("S5FS: s5fs_mknod");
// Check if the mode is not supported
if (!(S_ISCHR(mode) || S_ISBLK(mode) || S_ISREG(mode)))
@@ -515,8 +506,6 @@ static long s5fs_mknod(struct vnode *dir, const char *name, size_t namelen,
long s5fs_lookup(vnode_t *dir, const char *name, size_t namelen,
vnode_t **ret)
{
- // NOT_YET_IMPLEMENTED("S5FS: s5fs_lookup");
-
// Find the directory entry
size_t filepos;
long ino = s5_find_dirent(VNODE_TO_S5NODE(dir), name, namelen, &filepos);
@@ -583,7 +572,6 @@ static long s5fs_unlink(vnode_t *dir, const char *name, size_t namelen)
KASSERT(S_ISDIR(dir->vn_mode) && "should be handled at the VFS level");
KASSERT(!name_match(".", name, namelen));
KASSERT(!name_match("..", name, namelen));
- // NOT_YET_IMPLEMENTED("S5FS: s5fs_unlink");
// Find the directory entry
s5_node_t *s5_node = VNODE_TO_S5NODE(dir);
@@ -656,8 +644,6 @@ static long s5fs_rename(vnode_t *olddir, const char *oldname, size_t oldnamelen,
vnode_t *newdir, const char *newname,
size_t newnamelen)
{
- // NOT_YET_IMPLEMENTED("S5FS: s5fs_rename");
-
// Check if the new name is too long
if (newnamelen >= NAME_LEN)
{
@@ -779,8 +765,7 @@ static long s5fs_mkdir(vnode_t *dir, const char *name, size_t namelen,
struct vnode **out)
{
KASSERT(S_ISDIR((dir)->vn_mode) && "should be handled at the VFS level");
- // NOT_YET_IMPLEMENTED("S5FS: s5fs_mkdir");
-
+
// Allocate a new inode, get its properties first
s5fs_t *s5fs = VNODE_TO_S5FS(dir);
uint16_t type = S5_TYPE_DIR;
@@ -863,7 +848,6 @@ static long s5fs_rmdir(vnode_t *parent, const char *name, size_t namelen)
KASSERT(!name_match(".", name, namelen));
KASSERT(!name_match("..", name, namelen));
KASSERT(S_ISDIR(parent->vn_mode) && "should be handled at the VFS level");
- // NOT_YET_IMPLEMENTED("S5FS: s5fs_rmdir");
// Find the directory entry
s5_node_t *s5_node = VNODE_TO_S5NODE(parent);
@@ -926,7 +910,6 @@ static long s5fs_rmdir(vnode_t *parent, const char *name, size_t namelen)
static long s5fs_readdir(vnode_t *vnode, size_t pos, struct dirent *d)
{
KASSERT(S_ISDIR(vnode->vn_mode) && "should be handled at the VFS level");
- // NOT_YET_IMPLEMENTED("S5FS: s5fs_readdir");
// Read the directory entry
s5_dirent_t s5_dirent;
@@ -965,8 +948,6 @@ static long s5fs_readdir(vnode_t *vnode, size_t pos, struct dirent *d)
*/
static long s5fs_stat(vnode_t *vnode, stat_t *ss)
{
- // NOT_YET_IMPLEMENTED("S5FS: s5fs_stat");
-
// Get the inode
s5_inode_t *s5_inode = &VNODE_TO_S5NODE(vnode)->inode;