diff options
author | Sunil Mushran <sunil.mushran@oracle.com> | 2010-10-09 13:26:23 -0400 |
---|---|---|
committer | Sunil Mushran <sunil.mushran@oracle.com> | 2010-10-09 13:26:23 -0400 |
commit | ea2034416b54700e30371f2ad6517cbb94674083 (patch) | |
tree | 057585455d8357a63b5c35ebc69de73ac0f828ec /fs/ocfs2/dlm/dlmcommon.h | |
parent | b3c85c4cdf77154acc940dd0f14d1fb99cbbaf75 (diff) |
ocfs2/dlm: Add message DLM_QUERY_REGION
Adds new dlm message DLM_QUERY_REGION that sends the names of all active
heartbeat regions. This message is only sent in the global heartbeat
mode. If the regions in the joining node do not fully match the ones in
the active nodes, the join domain request is rejected.
Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Diffstat (limited to 'fs/ocfs2/dlm/dlmcommon.h')
-rw-r--r-- | fs/ocfs2/dlm/dlmcommon.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/fs/ocfs2/dlm/dlmcommon.h b/fs/ocfs2/dlm/dlmcommon.h index 765298908f1d..aa506d3e2ae6 100644 --- a/fs/ocfs2/dlm/dlmcommon.h +++ b/fs/ocfs2/dlm/dlmcommon.h | |||
@@ -445,7 +445,8 @@ enum { | |||
445 | DLM_LOCK_REQUEST_MSG, /* 515 */ | 445 | DLM_LOCK_REQUEST_MSG, /* 515 */ |
446 | DLM_RECO_DATA_DONE_MSG, /* 516 */ | 446 | DLM_RECO_DATA_DONE_MSG, /* 516 */ |
447 | DLM_BEGIN_RECO_MSG, /* 517 */ | 447 | DLM_BEGIN_RECO_MSG, /* 517 */ |
448 | DLM_FINALIZE_RECO_MSG /* 518 */ | 448 | DLM_FINALIZE_RECO_MSG, /* 518 */ |
449 | DLM_QUERY_REGION, /* 519 */ | ||
449 | }; | 450 | }; |
450 | 451 | ||
451 | struct dlm_reco_node_data | 452 | struct dlm_reco_node_data |
@@ -727,6 +728,15 @@ struct dlm_cancel_join | |||
727 | u8 domain[O2NM_MAX_NAME_LEN]; | 728 | u8 domain[O2NM_MAX_NAME_LEN]; |
728 | }; | 729 | }; |
729 | 730 | ||
731 | struct dlm_query_region { | ||
732 | u8 qr_node; | ||
733 | u8 qr_numregions; | ||
734 | u8 qr_namelen; | ||
735 | u8 pad1; | ||
736 | u8 qr_domain[O2NM_MAX_NAME_LEN]; | ||
737 | u8 qr_regions[O2HB_MAX_REGION_NAME_LEN * O2NM_MAX_REGIONS]; | ||
738 | }; | ||
739 | |||
730 | struct dlm_exit_domain | 740 | struct dlm_exit_domain |
731 | { | 741 | { |
732 | u8 node_idx; | 742 | u8 node_idx; |