Thread (2 messages) flat view 2 messages, 2 authors, 2014-11-22

Re: RFC: renameat(): Add a RENAME_REMOVE flag to unlink hardlinks

From: Andy Lutomirski <hidden>
Date: 2014-11-22 01:51:23
Also in: linux-fsdevel

On Fri, Nov 21, 2014 at 5:50 PM, Al Viro [off-list ref] wrote:
On Sat, Nov 22, 2014 at 01:29:05AM +0000, Pádraig Brady wrote:
quoted
quoted
I assume that VFS can handle this correctly if it wants to.
I was assuming there was a way to distinguish directory entries,
and that's what should be checked first, which is what my
psuedo code patch attempted to show.
There isn't, in general.  Sure, if you get the same struct dentry * from
both lookups, it's the same one.  But it's not guaranteed to be true on
every fs out there if those are non-directories (and for directories there's
no multiple hardlinks in the first place).
Does that mean that the current behavior is inconsistent between filesystems.

-- 
Andy Lutomirski
AMA Capital Management, LLC
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help