From 7acedc5b98a2fcff64f00c21110aae7d3ac2f7df Mon Sep 17 00:00:00 2001 From: Mikulas Patocka Date: Tue, 21 Oct 2008 17:44:56 +0100 Subject: [PATCH] dm exception store: fix misordered writes We must zero the next chunk on disk *before* writing out the current chunk, not after. Otherwise if the machine crashes at the wrong time, the "end of metadata" marker may be missing. Signed-off-by: Mikulas Patocka Signed-off-by: Alasdair G Kergon Cc: stable@kernel.org --- Reading git-format-patch failed