]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super1.c
Use posix_memalign() for memory used to write bitmaps
authorJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 14 Feb 2012 10:52:13 +0000 (11:52 +0100)
committerNeilBrown <neilb@suse.de>
Thu, 16 Feb 2012 03:16:03 +0000 (14:16 +1100)
commitd669228f295e4c695475f0c1f7dc52f514a177c4
tree740080c82807bcd4dd22403f3e67a52e312f374c
parent9f1b0f0f1ed0dd4752be65348a24971335cd50e8
Use posix_memalign() for memory used to write bitmaps

This makes super[01].c properly align buffers used for the bitmap
using posix_memalign() to make sure the writes don't fail in case the
bitmap is opened using O_DIRECT.

This is based on https://bugzilla.redhat.com/show_bug.cgi?id=789898
and an initial patch by Alexander Murashkin.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super0.c
super1.c