[Tux3] [PATCH]tux3_mkdir

Pranith Kumar bobby.prani at gmail.com
Sun Dec 7 01:34:27 PST 2008


ok. Here is a much simpler patch which avoids duplication.. checked
with checkpatch which complains that there is no signed-off line only
:)

-- 
Pranith.


--- user/kernel/namei.c.orig	2008-12-06 20:10:20.000000000 +0530
+++ user/kernel/namei.c	2008-12-07 14:57:12.000000000 +0530
@@ -43,6 +43,11 @@ error:
 	return err;
 }

+static int tux3_mkdir(struct inode *dir, struct dentry *dentry, int mode)
+{
+	return tux3_create(dir, dentry, S_IFDIR | mode, NULL);
+}
+
 const struct file_operations tux_dir_fops = {
 	.llseek		= generic_file_llseek,
 	.read		= generic_read_dir,
@@ -55,7 +60,7 @@ const struct inode_operations tux_dir_io
 //	.link		= ext3_link,
 //	.unlink		= ext3_unlink,
 //	.symlink	= ext3_symlink,
-//	.mkdir		= ext3_mkdir,
+	.mkdir		= tux3_mkdir,
 //	.rmdir		= ext3_rmdir,
 //	.mknod		= ext3_mknod,
 //	.rename		= ext3_rename,

_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://mailman.tux3.org/cgi-bin/mailman/listinfo/tux3



More information about the Tux3 mailing list