linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Difference between invalidating and deleting dentry
@ 2016-10-09  4:37 Nikolaus Rath
  2016-10-10  8:16 ` [fuse-devel] " Amir Goldstein
  2016-10-31 14:36 ` John Muir
  0 siblings, 2 replies; 16+ messages in thread
From: Nikolaus Rath @ 2016-10-09  4:37 UTC (permalink / raw)
  To: fuse-devel, linux-fsdevel; +Cc: Miklos Szeredi

Hello,

I just added an example to FUSE that illustrates use of the
fuse_lowlevel_notify_inval_entry() function. However, when writing it I
realized that I don't actually fully understand how this function
differs from fuse_lowlevel_notify_delete(). Could someone shed some
light on this?

Currently, the FUSE documentation says:

fuse_lowlevel_notify_inval_entry:
   Notify to invalidate parent attributes and the dentry matching
   parent/name

fuse_lowlevel_notify_delete:
   Notify to invalidate parent attributes and delete the dentry matching
   parent/name if the dentry's inode number matches child (otherwise it
   will invalidate the matching dentry).


But what exactly is the difference between deleting and invalidating a
dentry? In each case, isn't the resulting behavior the same, in that the
next time someone tries to access this (parent_inode,entry_name)
combination a lookup() request will be send to the FUSE process?


Thanks,
-Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2016-11-01 20:21 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-09  4:37 Difference between invalidating and deleting dentry Nikolaus Rath
2016-10-10  8:16 ` [fuse-devel] " Amir Goldstein
2016-10-10 15:45   ` Nikolaus Rath
2016-10-10 15:55     ` Michael Theall
2016-10-10 15:57       ` Amir Goldstein
2016-10-10 16:11         ` Michael Theall
2016-10-10 16:10       ` Nikolaus Rath
2016-10-19  1:51         ` Nikolaus Rath
2016-10-19  5:53           ` Amir Goldstein
2016-10-19  8:01             ` Miklos Szeredi
2016-10-19  8:32               ` Amir Goldstein
2016-10-19  8:38                 ` Miklos Szeredi
2016-10-19 21:00                   ` Nikolaus Rath
2016-10-19 20:55             ` [fuse-devel] " Nikolaus Rath
2016-10-31 14:36 ` John Muir
2016-11-01 20:21   ` Nikolaus Rath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).