lkml.org 
[lkml]   [2001]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: O_DIRECT as a mount option?
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:03    [W:1.168 / U:1.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site