Re: [Yaffs] YAFFS struct dentry *old_dentry...in static int …

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: yaffs
Subject: Re: [Yaffs] YAFFS struct dentry *old_dentry...in static int yaffs_link.
On Wednesday 03 February 2010 20:41:13 김원일 wrote:
> Sir. Charles Manninq...
>
> I have a question about yaffs filesystem.
>
> I have 1~2 step. As follows.
>
> [1 step] create org.dat
> touch org.dat
>
> [2 step] Making Hardlink
> ln org.dat hardlink.dat
>
>
>
> this time, 2 step running......
> What information in this "struct dentry *old_dentry" is already there?
>
> old_dentry of conten is dentry of org.dat? ..... dentry of org.dat... That
> was right?    [ In yaffs_fs.c ]

>
> [ In yaffs_fs.c]
> static int yaffs_link(struct dentry *old_dentry, struct inode *dir, struct
> dentry *dentry)
>

Yes that is correct.
static int yaffs_link(struct dentry *old_dentry, struct inode *dir,
            struct dentry *dentry)


old_dentry is org.dat
dir is the directory the new entry is going in to
hardlink.dat is the new dentry
--Charles