Re: patch for fs/dcache race

Malcolm Beattie (mbeattie@sable.ox.ac.uk)
Mon, 11 Aug 1997 10:44:25 +0100 (BST)


Linus Torvalds writes:
> The bad news is:
> - "cat /proc/<xxx>/fd/<foo>" will report "foo" to be named "huh", because
> in the above horror-example we couldn't do the thing we wanted (which
> was to turn it into a negative dentry). This is ugly, because the file
> that we point to with "foo" has never ever actually been named "huh" -
> it only got overwritten with a file called "huh".
[...]
> The alternative (suggested by Alan) is to make /proc simply not show
> deleted paths

Even better, use the convention that ps does when argv is paged out:
display the possibly bogus path in parentheses so that the user can
decide how much to trust the information.

--Malcolm

-- 
Malcolm Beattie <mbeattie@sable.ox.ac.uk>
Unix Systems Programmer
Oxford University Computing Services