Re: NTFS-like streams?

From: dean gaudet (dgaudet-list-linux-kernel@arctic.org)
Date: Fri Aug 11 2000 - 22:36:30 EST


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/



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