[Yaffs] [Yaffs-archive] mode,uid,gid attributes again

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Szabo Robert
Date:  
To: yaffs
Subject: [Yaffs] [Yaffs-archive] mode,uid,gid attributes again
Hi there!


I'm new on the YAFFS list. I had problems with preserving mode,uid,gid
attributes on special files.

Browsing the code I figured out that the inode->i_op is not set when
using special files.
I patched the code and it seems that the problem is now gone.

--- yaffs_fs.c  2003-10-29 21:42:34.000000000 +0100
+++ yaffs_fs.c.new      2004-06-18 11:48:33.000000000 +0200
@@ -606,6 +606,7 @@
                switch (obj->st_mode & S_IFMT)
                {
                        default: // fifo, device or socket
+                               inode->i_op = &yaffs_file_inode_operations;
                                init_special_inode(inode, 
obj->st_mode,(dev_t)(obj->st_rdev));
                                break;
                        case S_IFREG:   // file


cheers,
Robbie


---------------------------------------------------------------------------------------
This mailing list is hosted by Toby Churchill open software (www.toby-churchill.org).
If mailing list membership is no longer wanted you can remove yourself from the list by
sending an email to with the text "unsubscribe"
(without the quotes) as the subject.