parent inode from the current struct inode
From: Philipp Ittershagen <hidden>
Date: 2012-02-08 08:39:55
From: Philipp Ittershagen <hidden>
Date: 2012-02-08 08:39:55
Hi Jack, On Wed, Feb 8, 2012 at 8:48 AM, Jack David [off-list ref] wrote:
Hi All, Is possible to get parent directory's inode structure from the current inode? If so, how can I do that?
It should be possible to use the container_of macro to get the parent dentry struct. Then, you can get the parent dentry d_parent and access its inode. (Please correct me, if I'm wrong. I didn't test it). Philipp