lkml.org 
[lkml]   [2000]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: NTFS-like streams?


On 11 Aug 2000, Linus Torvalds wrote:

> fd = fd_open(fd, "Icon", O_RDWR | O_CREATE, 0666);
>
> which would essentially be the same as "open()", except it would start
> from "fd" instead of "cwd" like a regular open. There have been reasons
> to have something like this before (you can emulate it in a ugly manner
> by doing something like

yeah you want fd_open mostly in threaded programs i'd bet -- which your
example code wouldn't help with :)

the case where i've wanted it was a threaded program accessing deep into
user home directories (mail folders) across NFS ... on solaris where it
insists on doing LOOKUPs from the root and doesn't seem to ever cache the
intermediate steps. sometimes it's better to write multiprocess servers
with chdir(). (i know on linux i'd either win from the dcache or just go
about using clone in a different way and could avoid the problems.)

also need fd_stat, fd_opendir, ...

-dean


-
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:0.212 / U:4.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site