2001-12-27 16:51:34

by snpe

[permalink] [raw]
Subject: ext2/ext3 question ?

Hello,
I set S flag with chattr for any file.
Is file really async write (without buffer cache) ?
Is it same raw devices and if not, what is different ?

regards ,
haris peco


2001-12-27 18:00:48

by Andreas Dilger

[permalink] [raw]
Subject: Re: ext2/ext3 question ?

On Dec 27, 2001 23:48 +0100, snpe wrote:
> Hello,
> I set S flag with chattr for any file.
> Is file really async write (without buffer cache) ?

No, see chattr man page: S = synchronous updates. It doesn't say anything
about not using the buffer cache. You need to use O_DIRECT for that.

> Is it same raw devices and if not, what is different ?

Totally unrelated. It means that each I/O is waited on by the kernel
before it returns to user space.

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/