From mboxrd@z Thu Jan 1 00:00:00 1970 From: jbrassow@sourceware.org Date: 27 Jun 2006 20:25:00 -0000 Subject: [Cluster-devel] cluster/cmirror-kernel/src dm-cmirror-server.c Message-ID: <20060627202500.11243.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Branch: RHEL4 Changes by: jbrassow at sourceware.org 2006-06-27 20:24:59 Modified files: cmirror-kernel/src: dm-cmirror-server.c Log message: - I was incorrectly decrementing the sync count when a mirror region went out of sync. We need to properly log the reset in the bits, but still allow nodes to detect the failure of the device and be able to switch the primary device. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cmirror-kernel/src/dm-cmirror-server.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.10&r2=1.1.2.11 --- cluster/cmirror-kernel/src/Attic/dm-cmirror-server.c 2006/06/21 21:09:49 1.1.2.10 +++ cluster/cmirror-kernel/src/Attic/dm-cmirror-server.c 2006/06/27 20:24:59 1.1.2.11 @@ -586,7 +586,7 @@ } } else if (log_test_bit(lc->sync_bits, lr->u.lr_region)) { DMERR("complete_resync_work region going out-of-sync: disk failure"); - lc->sync_count--; + /* gone for now: lc->sync_count--; */ log_clear_bit(lc, lc->sync_bits, lr->u.lr_region); }