Re: How Linux /proc filesystem convert a fd to the actual pathname?

2007-08-21 Thread Kevin Hao
I am curious how Linux convert an fd to the pathname? Does it recursively walk back from current dentry to the root? Using d_path. Can someone point me to the right place in the kernel where this functionality is implemented? do_proc_readlink may be the function you want. - To unsubscribe

Re: How Linux /proc filesystem convert a fd to the actual pathname?

2007-08-21 Thread Xin Zhao
Thanks! That perfectly answered my question. -x On 8/21/07, Kevin Hao [EMAIL PROTECTED] wrote: I am curious how Linux convert an fd to the pathname? Does it recursively walk back from current dentry to the root? Using d_path. Can someone point me to the right place in the kernel where

Re: [PATCH 2/4] Fix mainline filesystems to handle ATTR_KILL_ bits correctly

2007-08-21 Thread Jeff Layton
On Tue, 21 Aug 2007 15:35:08 +1000 Timothy Shimmin [EMAIL PROTECTED] wrote: Jeff Layton wrote: This should fix all of the filesystems in the mainline kernels to handle ATTR_KILL_SUID and ATTR_KILL_SGID correctly. For most of them, this is just a matter of making sure that they call

Re: [PATCH 2/4] Fix mainline filesystems to handle ATTR_KILL_ bits correctly

2007-08-21 Thread Jan Harkes
On Mon, Aug 20, 2007 at 04:53:22PM -0400, Jeff Layton wrote: This should fix all of the filesystems in the mainline kernels to handle ATTR_KILL_SUID and ATTR_KILL_SGID correctly. For most of them, this is just a matter of making sure that they call generic_attrkill early in the setattr inode

Re: [PATCH 2/4] Fix mainline filesystems to handle ATTR_KILL_ bits correctly

2007-08-21 Thread Jeff Layton
On Tue, 21 Aug 2007 17:21:28 -0400 Josef Sipek [EMAIL PROTECTED] wrote: On Tue, Aug 21, 2007 at 07:35:51AM -0400, Jeff Layton wrote: On Tue, 21 Aug 2007 15:35:08 +1000 Timothy Shimmin [EMAIL PROTECTED] wrote: Jeff Layton wrote: This should fix all of the filesystems in the mainline