[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Howto implement device detection without thrashing



Previously Torsten Landschoff wrote:
> On Thu, Mar 18, 1999 at 01:50:29AM +0100, Wichert Akkerman wrote:
> > Doesn't work, you can't only sync everything with Linux, not a single
> > device or a single file.
> 
> Are you sure? I have the source so I can patch it to do what I want ;)

As someone else mentioned you can open a file using O_SYNC, which tells
the kernel to do all file-operations synchronously. An option to sync a
single file or device is not in there for some very specific reasons. If
you want a good explanation you could probably ask Alan Cox, but as far
as I know it has to do with ordering of IO requests and related
performance issues.

Wichert.

-- 
==============================================================================
This combination of bytes forms a message written to you by Wichert Akkerman.
E-Mail: wakkerma@cs.leidenuniv.nl
WWW: http://www.wi.leidenuniv.nl/~wichert/

Attachment: pgp6id9xOTWrd.pgp
Description: PGP signature


Reply to: