Re: NTFS-like streams?

From: Andi Kleen (ak@suse.de)
Date: Sat Aug 12 2000 - 18:30:20 EST


On Sat, Aug 12, 2000 at 06:34:32PM -0400, Alexander Viro wrote:
> Basically, it's about exposing d_path() to userland. Patch below should do
> the job, modulo actual adding sys_fd2path into the tables. BTW, I suspect
> that we really ought to stop this " (removed)" thing, even in procfs
> symlinks - too ambiguos and can be done better (e.g. something in ->i_mode
> of the link). Comments?

It is already implemented I think:

sprintf(buf, "/proc/self/fd/%d", fd);
readlink(buf, yourbuf, size);

Just for sockets and pipes it does do stupid things currently.

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Aug 15 2000 - 21:00:28 EST