[DRBD-cvs] r1647 - in branches/drbd-0.7: . drbd

svn at svn.drbd.org svn at svn.drbd.org
Mon Nov 22 15:29:46 CET 2004


Author: phil
Date: 2004-11-22 15:29:43 +0100 (Mon, 22 Nov 2004)
New Revision: 1647

Modified:
   branches/drbd-0.7/ChangeLog
   branches/drbd-0.7/drbd/drbd_fs.c
Log:
Fixed a problem with the "drbdadm invalidate [res]" command.


Modified: branches/drbd-0.7/ChangeLog
===================================================================
--- branches/drbd-0.7/ChangeLog	2004-11-16 19:28:50 UTC (rev 1646)
+++ branches/drbd-0.7/ChangeLog	2004-11-22 14:29:43 UTC (rev 1647)
@@ -6,6 +6,8 @@
 
 0.7.6 (api:77/proto:74)
 -----
+ * "drbdadm invalidate [res]" was not working correct, while
+    drbdadm invalidate_remove works. Fixed the former.
  * Make DRBD work on Linux-2.6.10-rc2 and newer: Replaced
    sock_alloc() by sock_create(), replaced TASK_ZOMBIE by 
    EXIT_ZOMBIE.

Modified: branches/drbd-0.7/drbd/drbd_fs.c
===================================================================
--- branches/drbd-0.7/drbd/drbd_fs.c	2004-11-16 19:28:50 UTC (rev 1646)
+++ branches/drbd-0.7/drbd/drbd_fs.c	2004-11-22 14:29:43 UTC (rev 1647)
@@ -1271,7 +1271,7 @@
 		drbd_md_clear_flag(mdev,MDF_FullSync);
 		drbd_md_write(mdev);
 
-		if (mdev->cstate == Connected) {
+		if (mdev->cstate >= Connected) {
 			drbd_send_short_cmd(mdev,BecomeSyncSource);
 			drbd_start_resync(mdev,SyncTarget);
 		}



More information about the drbd-cvs mailing list