cvs commit: src/sys/geom/mirror g_mirror.c

[ Available lists | Index of cvs-all | Month of Jul 2004 | Week of 31 Jul 2004 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Pawel Jakub Dawidek <pjd@FreeBSD.org>
Date
31 Jul 2004 21:08:18
Subject
cvs commit: src/sys/geom/mirror g_mirror.c
Message-ID
200407312108.i6VL8HAm045118@repoman.freebsd.org


[ Hide this part ]
pjd         2004-07-31 21:08:17 UTC

FreeBSD src repository

Modified files:
sys/geom/mirror g_mirror.c
Log:
Handle spoil event in dedicated function: g_mirror_spoiled().
The different between the new function and g_mirror_orphan() (which was
used previously) is that syncid is bumped immediately, instead of on
first write, because when consumer was spoiled, it means, that its
provider was opened for writing, so we can't trust that its data
will be valid when it will be connected again.

Revision Changes Path
1.4 +17 -2 src/sys/geom/mirror/g_mirror.c


Elapsed time: 0.236 seconds