Re: [PATCH] new syscall: flink
Alan Cox (alan@lxorguk.ukuu.org.uk)
07 Apr 2003 12:13:12 +0100
On Llu, 2003-04-07 at 10:11, Olivier Galibert wrote:
> On Mon, Apr 07, 2003 at 04:35:56AM -0400, Jakub Jelinek wrote:
> > There is at most one path associated with an opened file - d_path on
> > file->f_dentry. If a fd has no path, don't permit flink().
> > Alternatively, flink() could have 3 arguments, 2 like link and an opened
> > fd, which would atomically do if fd describes the same object as buf,
> > link buf to newname.
>
> That breaks one of the main uses, creating with open a temporary file
> in /tmp, unlinking it, then later hooking it up somewhere else in the
> filesystem.
/tmp is normally on another file system so its not going to work anyway
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/