Mark Busheman | 9 Apr 2011 00:51
Picon

ext3 and forced unit access to flush disk cache

I plan to use data=journal option with ext3 for a customer who is very
specific about the integrity of the data. Would like to know if ext4
send FUA (Forced Unit Access) to flush the disk cache?

Cheers
Mark
Ric Wheeler | 13 Apr 2011 21:34
Picon

Re: ext3 and forced unit access to flush disk cache

On 04/08/2011 06:51 PM, Mark Busheman wrote:
> I plan to use data=journal option with ext3 for a customer who is very
> specific about the integrity of the data. Would like to know if ext4
> send FUA (Forced Unit Access) to flush the disk cache?
>
> Cheers
> Mark
>

ext4 by default uses "barrier" support and will issue the write commands 
(depends on the storage type). You can "mount -o barrier" ext3 as well.

It will do this for its own metadata reasons and as part of an application 
driven fsync() command, so the customer data should be safe if their application 
is coded properly.

Regards,

Ric

Gmane