From 51319c2b53a9662100aea1a77d331b96a23cd82f Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Mon, 24 Feb 2025 19:41:49 -0500 Subject: [PATCH] ext2: add comment and remove `mkdir` --- fs/ext2.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/ext2.c b/fs/ext2.c index 419d750..d8270d1 100644 --- a/fs/ext2.c +++ b/fs/ext2.c @@ -948,6 +948,7 @@ static int ext2_create_file(struct vnode *parent, const char *name, mode_t mode) return ret; struct ext2_inode inode_new = { 0 }; + /* notably we do no mode conversion since ext2 is the same as the kernel vfs */ inode_new.mode = mode; inode_new.uid = 0; inode_new.gid = 0; @@ -1019,9 +1020,6 @@ struct fs *ext2_init_fs(struct block_device *bdev) ext2_ops->write = ext2_write_file; ext2_ops->creat = ext2_create_file; ext2_ops->unlink = ext2_unlink_file; - /* - ext2_ops->mkdir = ext2_mkdir; - */ ret->ops = ext2_ops;