Re: [PATCH] new syscall: flink

Roman Zippel
2003-04-07T13:07:55Z

Hi,

On Mon, 7 Apr 2003, Andreas Schwab wrote:

> |> I wouldn't rely on this functionality, not all filesystems might like it
> |> to have to recreate a deleted fs entry. Most filesystems should be able to
> |> do this, but all fs drivers have to be checked, that they do the right
> |> thing.
>
> All filesystems already have to cope with unlinking of an open file
> anyway, so relinking should not be a problem.

I know, but creating a new dir entry and linking to an existing dir entry
is not always the same, e.g. filesystems, where a dir entry is not simply
a pointer to an inode table, have to update other entries as well to
create a new link. So far filesystems could assume that source dentry was
a valid dir entry, this patch changes this.

bye, Roman