From 99e29264234dcb00cb740e0b7d7186fe239369bd Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 14 Jul 2008 13:55:02 -0700 Subject: [PATCH] imsm: fix store_imsm_mpb() alignment for O_DIRECT Signed-off-by: Dan Williams --- super-intel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/super-intel.c b/super-intel.c index e81d284f..713670f6 100644 --- a/super-intel.c +++ b/super-intel.c @@ -1812,7 +1812,7 @@ static int store_imsm_mpb(int fd, struct intel_super *super) if (lseek64(fd, dsize - (512 * (2 + sectors)), SEEK_SET) < 0) return 1; - if (write(fd, super->buf + 512, mpb_size - 512) != mpb_size - 512) + if (write(fd, super->buf + 512, 512 * sectors) != 512 * sectors) return 1; } -- 2.47.3