lkml.org 
[lkml]   [2000]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: NTFS-like streams?
On Sat, Aug 12, 2000 at 07:36:08PM -0400, Alexander Viro wrote:
>
>
> On Sun, 13 Aug 2000, Andi Kleen wrote:
>
> > It is already implemented I think:
> >
> > sprintf(buf, "/proc/self/fd/%d", fd);
> > readlink(buf, yourbuf, size);
>
> That has some problems:
> * expects procfs in place
> * no reliable way to tell the unlinked files from the normal ones.

There currently is a slight name space collision "(deleted)" is a valid
filename, but you could change it to //deleted/mount/inode or some such
to avoid that.

I just assume that /proc is in place, just like near all Linux programs
in existence assume that /etc is in place and contains certain files, or
networking assumes that you once did ifconfig lo. If you didn't, bad luck.

-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/

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:1.229 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site