Re: Write cache on SATA drives?

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

 



On Fri, Jul 01 2005, Matthias Andree wrote:
> Jens Axboe <axboe@xxxxxxx> writes:
> 
> > On Thu, Jun 30 2005, Edwards, Scott (GE Healthcare) wrote:
> >> Hello,
> >> 
> >> Can anyone tell me if the write cache on SATA drives are handled such
> >> that journaling file systems work correctly?  Back in the 2.6.5 -
> >> 2.6.7 time frame I had to disable the write cache to get ext3 to not
> >> trash things when the power was lost.  With kernel 2.6.10 would I
> >> still need to disable the write cache?
> >
> > With 2.6.12.x it should work, if you use ext3 or reiser and the
> > appropriate mount options (-o barrier=1 for ext3, barrier=flush for
> > reiserfs). 2.6.11 and earlier does not work on SATA.
> 
> I presume this means "libata" exclusively, no?

It means "SCSI without queueing" which I'm assuming is basically only
libata at this moment, at least if you count setups that have a non-zero
userbase :)

> Which is the oldest version where this works
> 
> 1. for SCSI (perhaps by adaptor)?

2.6.12, with the above restriction. I hope to lift that for .13/14, with
Tejuns barrier updates.

> 2. for traditional IDE (such as VIA 82*, PIIX_*)?

In SUSE kernels, for many years. Since 2.6.7/8'ish in Linus' kernels.

> 3. for RAID?

Not really safe, only for fsync.

> 4. for XFS or JFS?

XFS and JFS need minor updates, similar to what ext3 and reiser got.
Should take someone familiar with the code no more than an hour to do,
nobody has done it yet though.

> <http://home.pages.de/~mandree/linux/kernel/safe-write-caches.html>

One important update, the 'oe' in my name is not an ascii safe variant
of the real name, it really is spelled that way :)

-- 
Jens Axboe

-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux