lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090414172406.GX14687@one.firstfloor.org>
Date:	Tue, 14 Apr 2009 19:24:06 +0200
From:	Andi Kleen <andi@...stfloor.org>
To:	Anton Ertl <anton@...s.complang.tuwien.ac.at>
Cc:	Andi Kleen <andi@...stfloor.org>, linux-kernel@...r.kernel.org
Subject: Re: Out-of-order writing by disk drives

On Tue, Apr 14, 2009 at 06:33:50PM +0200, Anton Ertl wrote:
> Andi Kleen wrote:
> > 
> > "Anton Ertl" <anton@...s.complang.tuwien.ac.at> writes:
> > >
> > > /dev/md2        /home           ext3    defaults,barrier=1      1	2
> > 
> > Just make sure /dev/md2 is a RAID1, MD RAID0/5/10 don't support barriers.
> 
> Thank you.  I added the following to the README:
> 
> |Note that, as of this writing (2009-04), not all Linux devices support
> |barriers, in particular md devices only support them in RAID 1 mode;
> |the kernel will reportedly warn about the lack of barriers if you try
> |to use ext3 with barriers on a device that does not support barriers
> |(look in, e.g., dmesg).

A full listing of what devices do and don't support barriers would
be likely very long. You would actually need to list down to hard disks.

A common problem is barriers over LVM. Since 2.6.29 they work
with a single device (and if the underlying device supports it) with 
dm linear, but not in any other LVM setup.

So it might be better to just generally recommend to check
dmesg.

-Andi

-- 
ak@...ux.intel.com -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ