Re: dentry question

Hans-Joachim Widmaier (hjwidmai@foxboro.com)
Mon, 13 Oct 1997 15:41:46 +0200


Bill Hawes <whawes@star.net> wrote:
>
> In general changing d_inode of an existing dentry is not an allowed
> operation -- another user might have a reference to it. If the dentry
> d_count was 1 you could probably get away with it, but then your code
> would have a potential failure.
>
> Is there some other way to handle the problem?

Exactly 2 minutes ago I found the solution: instead of turning
the link into the file, I rename the file to the name the link
had and delete the former link instead. Thus the inode remains
unaltered (as far as the VFS can tell).

This should solve all my problems, and keep the VFS happy.
Thank you.

-- 
Hans-Joachim Widmaier