[SCM] CTDB repository - branch 1.2 updated - ctdb-1.0.114-329-g574be1e

Ronnie Sahlberg sahlberg at samba.org
Sun Sep 12 23:09:14 MDT 2010


The branch, 1.2 has been updated
       via  574be1e4bd15beeb5ab7d6d248fa0ccb9c3456f8 (commit)
       via  d8848ef909ccd1c4fa8a6b943579d95dd00968df (commit)
       via  c817411c57930de905a1a3e62bb39cf6f1248a7b (commit)
      from  28673ee5551b487ee4519b8ed0774f8ce8b8d24d (commit)

http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=1.2


- Log -----------------------------------------------------------------
commit 574be1e4bd15beeb5ab7d6d248fa0ccb9c3456f8
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Sep 13 15:08:36 2010 +1000

    Update the comment for the range reserved for SAMBA and
    define a new symbol to represent this range similarly to NFSD and ISCSID
    
    Keep the old symbol name to be backward compatible with software using
    these headers.

commit d8848ef909ccd1c4fa8a6b943579d95dd00968df
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Sep 13 15:06:43 2010 +1000

    define and reserve a range of ctdb message ports for use by nfs and iscsi servers

commit c817411c57930de905a1a3e62bb39cf6f1248a7b
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Sep 13 15:01:47 2010 +1000

    Add two new server types to the server_id structure.
    NFSD and ISCSID for now.

-----------------------------------------------------------------------

Summary of changes:
 include/ctdb_client.h   |    6 +++++-
 include/ctdb_protocol.h |   17 ++++++++++++++++-
 2 files changed, 21 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/include/ctdb_client.h b/include/ctdb_client.h
index 16ed9c0..2b709a0 100644
--- a/include/ctdb_client.h
+++ b/include/ctdb_client.h
@@ -415,7 +415,11 @@ int ctdb_ctrl_modflags(struct ctdb_context *ctdb,
 		       uint32_t destnode,
 		       uint32_t set, uint32_t clear);
 
-enum ctdb_server_id_type { SERVER_TYPE_SAMBA=1 };
+enum ctdb_server_id_type {
+	SERVER_TYPE_SAMBA=1,
+	SERVER_TYPE_NFSD=2,
+	SERVER_TYPE_ISCSID=3
+};
 
 struct ctdb_server_id {
 	enum ctdb_server_id_type type;
diff --git a/include/ctdb_protocol.h b/include/ctdb_protocol.h
index 8c90675..4cd3fca 100644
--- a/include/ctdb_protocol.h
+++ b/include/ctdb_protocol.h
@@ -131,9 +131,24 @@ struct ctdb_call_info {
 */
 #define CTDB_SRVID_TAKEOVER_RUN_RESPONSE  0xFD00000000000000LL
 
-/* A port reserved for samba (top 32 bits)
+/* A range of ports reserved for samba (top 32 bits)
+ * All ports matching the 32 top bits are reserved for exclusive use by
+ * CIFS server
  */
 #define CTDB_SRVID_SAMBA_NOTIFY  0xFE00000000000000LL
+#define CTDB_SRVID_SAMBA_RANGE   0xFE00000000000000LL
+
+/* A range of ports reserved for a CTDB NFS server (top 32 bits)
+ * All ports matching the 32 top bits are reserved for exclusive use by
+ * NFS server
+ */
+#define CTDB_SRVID_NFSD_RANGE  0xFE01000000000000LL
+
+/* A range of ports reserved for a CTDB ISCSI server (top 32 bits)
+ * All ports matching the 32 top bits are reserved for exclusive use by
+ * ISCSI server
+ */
+#define CTDB_SRVID_ISCSID_RANGE  0xFE02000000000000LL
 
 /* used on the domain socket, send a pdu to the local daemon */
 #define CTDB_CURRENT_NODE     0xF0000001


-- 
CTDB repository


More information about the samba-cvs mailing list