1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Update disk->d_genid field when increasing sc->sc_genid.

This commit is contained in:
Pawel Jakub Dawidek 2004-12-23 21:15:15 +00:00
parent 8c938cc290
commit 538ff5ee7a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139246

View File

@ -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);
}
}