diff options
author | pjd <pjd@FreeBSD.org> | 2004-12-25 19:17:47 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-12-25 19:17:47 +0000 |
commit | 0bb72c3b0079d6d298270e90f40b74b0836d4dc2 (patch) | |
tree | 169e37ca71179e3cf55db841759c6cd9f5cc6b51 /sbin | |
parent | 9476ffbed8df3ebc72f2548f9db81306e46e27e5 (diff) | |
download | FreeBSD-src-0bb72c3b0079d6d298270e90f40b74b0836d4dc2.zip FreeBSD-src-0bb72c3b0079d6d298270e90f40b74b0836d4dc2.tar.gz |
- 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.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/geom/class/raid3/geom_raid3.c | 1 |
1 files changed, 1 insertions, 0 deletions
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)); |