[DRBD-cvs] drbd by phil; Added the user space side of ko-count. (...
drbd-user@lists.linbit.com
drbd-user@lists.linbit.com
Wed, 9 Jun 2004 22:06:41 +0200 (CEST)
DRBD CVS committal
Author : phil
Module : drbd
Dir : drbd/drbd/linux
Modified Files:
Tag: rel-0_7-branch
drbd.h
Log Message:
Added the user space side of ko-count. (as in drbd-0.6.x)
Added the user space side of on-disconnect. Kernel part not yet done.
[I am still not sure about the freeze_io thing, maybe I will remove...]
===================================================================
RCS file: /var/lib/cvs/drbd/drbd/drbd/linux/Attic/drbd.h,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -u -3 -r1.1.2.5 -r1.1.2.6
--- drbd.h 9 Jun 2004 14:17:59 -0000 1.1.2.5
+++ drbd.h 9 Jun 2004 20:06:36 -0000 1.1.2.6
@@ -70,6 +70,12 @@
IN int meta_index;
};
+enum disconnect_handler {
+ Reconnect,
+ DropNetConf,
+ FreezeIO
+};
+
struct net_config {
IN char my_addr[MAX_SOCK_ADDR];
IN int my_addr_len;
@@ -82,6 +88,8 @@
IN int max_epoch_size;
IN int max_buffers;
IN int sndbuf_size; /* socket send buffer size */
+ IN unsigned int ko_count;
+ IN enum disconnect_handler on_disconnect;
};
struct syncer_config {