From 0bb72c3b0079d6d298270e90f40b74b0836d4dc2 Mon Sep 17 00:00:00 2001 From: pjd Date: Sat, 25 Dec 2004 19:17:47 +0000 Subject: - Add genid field to the metadata which will allow to improve reliability a bit. After this change, when component is disconnected because of an I/O error, it will not be connected and synchronized automatically, it will be logged as broken and skipped. Autosynchronization can occur, when component is disconnected (on orphan event) and connected again - there were no I/O error, so there is no need to not connected the component, but when there were writes while it wasn't connected, it will be synchronized. This fix cases, when component is disconnected because of I/O error and can be connected again and again. - Bump version number. - Implement backward compatibility mechanism. After this change when metadata in old version is detected, it is automatically upgraded to the new (current) version. --- sbin/geom/class/raid3/geom_raid3.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sbin') diff --git a/sbin/geom/class/raid3/geom_raid3.c b/sbin/geom/class/raid3/geom_raid3.c index 9c2b53f..14447ab 100644 --- a/sbin/geom/class/raid3/geom_raid3.c +++ b/sbin/geom/class/raid3/geom_raid3.c @@ -181,6 +181,7 @@ raid3_label(struct gctl_req *req) md.md_all = *nargs - 1; md.md_mflags = 0; md.md_dflags = 0; + md.md_genid = 0; md.md_syncid = 1; md.md_sync_offset = 0; noautosync = gctl_get_paraml(req, "noautosync", sizeof(*noautosync)); -- cgit v1.1