Re: elementary d_move question

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

 



(Bah, apologies, I messed up the list cc.  Resending in case it's useful
to have the answer in the archives.)

On Wed, Oct 23, 2013 at 01:23:38PM -0400, J. Bruce Fields wrote:
> On Wed, Oct 23, 2013 at 05:14:02PM +0100, Al Viro wrote:
> > On Wed, Oct 23, 2013 at 11:43:41AM -0400, J. Bruce Fields wrote:
> > 
> > > The rename does a d_move(dentry, target) where I assume dentry is for
> > > "foo" and target for "bar", with target the same dentry that the file
> > > descriptor holds a reference on.
> > > 
> > > But d_move() does
> > > 
> > > 	switch_names(dentry, target);
> > 
> > Yes
> > 
> > > giving target name "foo"
> > 
> > Not really.  Check what it does when both names are inline ones (i.e.
> > shorter than 32 characters and stored in struct dentry itself)...
> 
> Doh--got it, thanks!
> 
> I have a feeling I've gotten lost here before.
> 
> I assume it's just never seemed worth the trouble to make the readlink
> string more consistent given that its value's not really well-defined
> anyway, OK.
> 
> --b.
--
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