* What is negative lookup in linux filesystem
@ 2015-10-05 15:08 Praveen Kumar
2015-10-05 17:03 ` Mandeep Sandhu
0 siblings, 1 reply; 2+ messages in thread
From: Praveen Kumar @ 2015-10-05 15:08 UTC (permalink / raw)
To: kernelnewbies
Hi,
I am trying to understand the path-lookup in linux filesystem and was going
through https://www.kernel.org/doc/Documentation/filesystems/path-lookup.txt
Under 'Rename' heading, I came across the negative lookup terminology,
snapshot below
'Between deleting the dentry from the old hash list, and inserting it on
the new
hash list, a lookup may find neither 'A' nor 'B' matching the dentry. The
same
rename seqlock is also used to cover this race in much the same way, by
retrying a negative lookup result if a rename was in progress.'
Can anyone please help understanding the negative lookup concept and how do
we achieve it. Thanks in advance.
Regards,
~Praveen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20151005/64fb1633/attachment.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* What is negative lookup in linux filesystem
2015-10-05 15:08 What is negative lookup in linux filesystem Praveen Kumar
@ 2015-10-05 17:03 ` Mandeep Sandhu
0 siblings, 0 replies; 2+ messages in thread
From: Mandeep Sandhu @ 2015-10-05 17:03 UTC (permalink / raw)
To: kernelnewbies
>From the context of the snippet you posted, it looks like the author
implies a "failed lookup" when s/he writes "negative lookup".
CMIIW.
-mandeep
On Mon, Oct 5, 2015 at 8:08 AM, Praveen Kumar <kpraveen.lkml@gmail.com> wrote:
> Hi,
>
> I am trying to understand the path-lookup in linux filesystem and was going
> through https://www.kernel.org/doc/Documentation/filesystems/path-lookup.txt
>
> Under 'Rename' heading, I came across the negative lookup terminology,
> snapshot below
>
> 'Between deleting the dentry from the old hash list, and inserting it on the
> new
> hash list, a lookup may find neither 'A' nor 'B' matching the dentry. The
> same
> rename seqlock is also used to cover this race in much the same way, by
> retrying a negative lookup result if a rename was in progress.'
>
> Can anyone please help understanding the negative lookup concept and how do
> we achieve it. Thanks in advance.
>
> Regards,
>
> ~Praveen.
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-05 17:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-05 15:08 What is negative lookup in linux filesystem Praveen Kumar
2015-10-05 17:03 ` Mandeep Sandhu
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).