Re: Read from file fails

From: Libor Vanek
Date: Wed May 05 2004 - 05:35:41 EST


On Tue, May 04, 2004 at 09:49:06AM -0400, Richard B. Johnson wrote:
> On Tue, 4 May 2004, Libor Vanek wrote:
>
> [SNIPPED...all]
>
> Did you catch this information? If all you want to do is to
> make a new version of a file, owned by the person who accesses the file
> (like VAX/VMS), then you trap open with O_RDWR or O_CREAT or O_TRUNC
> and make a copy with a numeral appended like: filename.typ;2.

Something like this (only make this copy in another directory)

> You do this by making a shared object that does what you want.
> The total affect upon user-mode code is a delayed (slow) open().

Yeah - I'm now studying how to communicate between kernel and user space (can't find out how to send data FROM ks TO us). What did you mean by "shared object"?

--

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