[PATCH 2/4] FIX: Write metadata when mdmon is not running

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

 



For raid0 metadata has to be written.

It is possible that Manage.c:812 requires similar guard for mdmon running.

Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx>
---

 Manage.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/Manage.c b/Manage.c
index a032c08..f208d15 100644
--- a/Manage.c
+++ b/Manage.c
@@ -870,6 +870,12 @@ int Manage_subdevs(char *devname, int fd,
 					close(container_fd);
 					return 1;
 				}
+				if (!mdmon_running(devnum))
+					if (tst->ss->write_init_super(tst)) {
+						close(dfd);
+						close(container_fd);
+						return 1;
+					}
 				close(dfd);
 
 				sra = sysfs_read(container_fd, -1, 0);

--
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