lookup dentry of a directory in kernel module(stackable filesystem)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello All,

I am writing a stackable file system which would rename unlinked files
to a particular folder say abc by default. So as any file /xyz is
unlinked its renamed to /abc/xyz. I want to do this by overriding the
unlink function of stackable file system. I am using wrapfs so I am
modifying wrapfs_unlink for this. I have dentry of the unlinked file
also I have inode of parent directory , now I need to have inode of
/abc and dentry of /abc/xyz to call vfs_rename instead of vfs_unlink.
I could find the dentry and vfsmount for the / so I have a dentry for
/ but I don't know how to get the dentry/inode of /abc I know I can
get inode from dentry but I cannot get dentry also. I tried using
lookup_one_len /abc is created but still it returns a negative inode ,
also I tried to use vfs_path_lookup to find the directory /abc it also
returns an error. Am I using wrong functions? Or these methods see
cache only not the actual directory structure ? Please help.


--
Thanks and Regards ,
Gaurav
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux