aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/mirror/g_mirror.c
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2004-12-23 21:15:15 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2004-12-23 21:15:15 +0000
commit538ff5ee7adff5f588c7af5e6718c8850beedfc1 (patch)
treee390abd2333b233c80b984655434f86563a3bf97 /sys/geom/mirror/g_mirror.c
parent8c938cc2901e84386e6dd7f1646aa251fbca90eb (diff)
downloadsrc-538ff5ee7adff5f588c7af5e6718c8850beedfc1.tar.gz
src-538ff5ee7adff5f588c7af5e6718c8850beedfc1.zip
Update disk->d_genid field when increasing sc->sc_genid.
Notes
Notes: svn path=/head/; revision=139246
Diffstat (limited to 'sys/geom/mirror/g_mirror.c')
-rw-r--r--sys/geom/mirror/g_mirror.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/mirror/g_mirror.c b/sys/geom/mirror/g_mirror.c
index 6e9f4f241678..77257222f09c 100644
--- a/sys/geom/mirror/g_mirror.c
+++ b/sys/geom/mirror/g_mirror.c
@@ -757,6 +757,7 @@ g_mirror_bump_genid(struct g_mirror_softc *sc)
LIST_FOREACH(disk, &sc->sc_disks, d_next) {
if (disk->d_state == G_MIRROR_DISK_STATE_ACTIVE ||
disk->d_state == G_MIRROR_DISK_STATE_SYNCHRONIZING) {
+ disk->d_genid = sc->sc_genid;
g_mirror_update_metadata(disk);
}
}