Re: direct (unbufferd) disk access
Matthew Wilcox (Matthew.Wilcox@genedata.com)
Thu, 24 Jun 1999 15:44:47 +0200
On Thu, Jun 24, 1999 at 11:35:56AM +0200, Christian Hammers wrote:
> Hello List
>
> How can I get the kernel to read/write some data immediately to disk without
> caching it in the kernel memory.
>
> I like to access one harddrive with two motherboards and like to have a shared
> partition that will be writen to by one motherboard and read by an other
> motherboard - but Linux seems to prevent that.
>
> I don't like to mount any partition (because of the filesystem check warnings)
> and will instead write raw data with "dd".
> Oh, and I don't like to flush ALL buffers, because this computer will be a
> redunant web-server that strongly needs buffers (for this reasons AFAIK I
> can't use flushb and sync).
You want Stephen Tweedie's raw IO patches.
ftp://ftp.uk.linux.org/pub/linux/sct/fs/raw-io
--
Matthew Wilcox <willy@bofh.ai>
"Windows and MacOS are products, contrived by engineers in the service of
specific companies. Unix, by contrast, is not so much a product as it is a
painstakingly compiled oral history of the hacker subculture." - N Stephenson
-
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/