linux/fs/ocfs2/dlm
Joel Becker d24fbcda0c ocfs2: Negotiate locking protocol versions.
Currently, when ocfs2 nodes connect via TCP, they advertise their
compatibility level.  If the versions do not match, two nodes cannot speak
to each other and they disconnect. As a result, this provides no forward or
backwards compatibility.

This patch implements a simple protocol negotiation at the dlm level by
introducing a major/minor version number scheme for entities that
communicate.  Specifically, o2dlm has a major/minor version for interaction
with o2dlm on other nodes, and ocfs2 itself has a major/minor version for
interacting with the filesystem on other nodes.

This will allow rolling upgrades of ocfs2 clusters when changes to the
locking or network protocols can be done in a backwards compatible manner.
In those cases, only the minor number is changed and the negotatied protocol
minor is returned from dlm join. In the far less likely event that a
required protocol change makes backwards compatibility impossible, we simply
bump the major number.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
2008-02-06 16:11:29 -08:00
..
Makefile [PATCH] OCFS2: The Second Oracle Cluster Filesystem 2006-01-03 11:45:47 -08:00
dlmapi.h ocfs2: Negotiate locking protocol versions. 2008-02-06 16:11:29 -08:00
dlmast.c ocfs2: fix sparse warnings in fs/ocfs2/dlm 2007-05-02 15:08:15 -07:00
dlmcommon.h ocfs2: Negotiate locking protocol versions. 2008-02-06 16:11:29 -08:00
dlmconvert.c ocfs2: Added post handler callable function in o2net message handler 2007-02-07 12:06:56 -08:00
dlmconvert.h
dlmdebug.c ocfs2_dlm: Cookies in locks not being printed correctly in error messages 2007-02-07 12:06:24 -08:00
dlmdomain.c ocfs2: Negotiate locking protocol versions. 2008-02-06 16:11:29 -08:00
dlmdomain.h
dlmfs.c ocfs2: Negotiate locking protocol versions. 2008-02-06 16:11:29 -08:00
dlmfsver.c ocfs2: bump version number 2008-01-25 15:05:46 -08:00
dlmfsver.h [PATCH] OCFS2: The Second Oracle Cluster Filesystem 2006-01-03 11:45:47 -08:00
dlmlock.c ocfs2: Added post handler callable function in o2net message handler 2007-02-07 12:06:56 -08:00
dlmmaster.c [PATCH] fs/ocfs2: Add missing "space" 2007-11-27 16:47:01 -08:00
dlmrecovery.c ocfs2/dlm: Clear joining_node on hearbeat node down 2008-01-25 15:05:46 -08:00
dlmthread.c [PATCH] ocfs2: use __set_current_state() 2007-05-02 15:07:50 -07:00
dlmunlock.c ocfs2: Added post handler callable function in o2net message handler 2007-02-07 12:06:56 -08:00
dlmver.c ocfs2: bump version number 2008-01-25 15:05:46 -08:00
dlmver.h
userdlm.c ocfs2: Negotiate locking protocol versions. 2008-02-06 16:11:29 -08:00
userdlm.h ocfs2: Negotiate locking protocol versions. 2008-02-06 16:11:29 -08:00