public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* O_DIRECT as a mount option?
@ 2001-09-25 17:51 Bob McElrath
  2001-09-25 18:55 ` Andrea Arcangeli
  0 siblings, 1 reply; 2+ messages in thread
From: Bob McElrath @ 2001-09-25 17:51 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 670 bytes --]

With O_DIRECT (buffer cache bypass open() flag) now in the mainstream
kernel, I wonder if people would be opposed to making a "direct" mount
option, which would open all files on the filesystem with the O_DIRECT
flag, just as there exists a "sync" mount option to perform filesystem
transactions synchronously.

This would allow you to 
    mount -o direct,sync /dev/hdb1 /mnt/video
And would be useful for things like streaming video applications,
allowing the advantages of O_DIRECT without rewriting every application
you want to use.

Cheers,
-- Bob

Bob McElrath (rsmcelrath@students.wisc.edu) 
Univ. of Wisconsin at Madison, Department of Physics

[-- Attachment #2: Type: application/pgp-signature, Size: 240 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: O_DIRECT as a mount option?
  2001-09-25 17:51 O_DIRECT as a mount option? Bob McElrath
@ 2001-09-25 18:55 ` Andrea Arcangeli
  0 siblings, 0 replies; 2+ messages in thread
From: Andrea Arcangeli @ 2001-09-25 18:55 UTC (permalink / raw)
  To: Bob McElrath; +Cc: linux-kernel

On Tue, Sep 25, 2001 at 12:51:44PM -0500, Bob McElrath wrote:
> With O_DIRECT (buffer cache bypass open() flag) now in the mainstream
> kernel, I wonder if people would be opposed to making a "direct" mount
> option, which would open all files on the filesystem with the O_DIRECT
> flag, just as there exists a "sync" mount option to perform filesystem
> transactions synchronously.
> 
> This would allow you to 
>     mount -o direct,sync /dev/hdb1 /mnt/video
> And would be useful for things like streaming video applications,
> allowing the advantages of O_DIRECT without rewriting every application
> you want to use.

you've to audit the app anyways since O_DIRECT enforces alignments on
buffer alignment and file offset.

Andrea

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-09-25 18:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-25 17:51 O_DIRECT as a mount option? Bob McElrath
2001-09-25 18:55 ` Andrea Arcangeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox