]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-ddf.c
Use O_DIRECT for all IO to devices.
authorNeil Brown <neilb@suse.de>
Sat, 12 Jul 2008 10:28:33 +0000 (20:28 +1000)
committerNeil Brown <neilb@suse.de>
Sat, 12 Jul 2008 10:28:33 +0000 (20:28 +1000)
commit6416d5275d65be25a6cd63583bb2b92e6fba95a5
tree23757b31666774c05c405dfd720dc92b3bb03b90
parent908ef18519f7d5780ebf00b19b913f8282eb4175
Use O_DIRECT for all IO to devices.

Using buffered IO risks non-atomic updates to parts of the
device that we don't actually want to write to.  This isn't in
general safe.
So switch to O_DIRECT for all that IO and make sure we have
properly aligned buffers.
Grow.c
Kill.c
Manage.c
bitmap.c
mdadm.h
super-ddf.c
super-intel.c
super0.c
super1.c
util.c