]> git.ipfire.org Git - thirdparty/mdadm.git/commit
DDF: Write new conf entries with a single write.
authorNeilBrown <neilb@suse.de>
Wed, 7 Aug 2013 06:59:26 +0000 (16:59 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 7 Aug 2013 07:09:24 +0000 (17:09 +1000)
commit3921e41a9d20fa0055968f8b35f3642c81249d83
treec7d1b45bb756e1979390eb26a4a7ed2203de3f5f
parent7d8a70bf236bd18bf175dddf4af6aa8f79b7eb25
DDF: Write new conf entries with a single write.

The recent change to skip over invalid conf entries was bad because
it could leave garbage on the disk.
But we don't to write each entry separately as the writes a O_DIRECT
and so synchronous so it takes way too long.

So allocate a large buffer (probably the one used to read the config records)
and fill that then write it all at once.

Reported-by: Martin Wilck <mwilck@arcor.de>
Signed-off-by: NeilBrown <neilb@suse.de>
super-ddf.c