[PATCH 2/6] DDF: kill_subarray_ddf: fix case without mdmon running

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When mdmon wasn't runnning, meta data wasn't committed to disk.
Fixed.
---
 super-ddf.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/super-ddf.c b/super-ddf.c
index e23291f..dc3f69b 100644
--- a/super-ddf.c
+++ b/super-ddf.c
@@ -4253,8 +4253,11 @@ static int kill_subarray_ddf(struct supertype *st)
 		/* we use DDF_state_deleted as marker */
 		vd->entries[0].state = DDF_state_deleted;
 		append_metadata_update(st, vd, len);
-	} else
+	} else {
 		_kill_subarray_ddf(ddf, conf->guid);
+		ddf_set_updates_pending(ddf);
+		ddf_sync_metadata(st);
+	}
 	return 0;
 }
 
-- 
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux