xref: /OK3568_Linux_fs/kernel/fs/ocfs2/cluster/ocfs2_nodemanager.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */
2*4882a593Smuzhiyun /* -*- mode: c; c-basic-offset: 8; -*-
3*4882a593Smuzhiyun  * vim: noexpandtab sw=8 ts=8 sts=0:
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * ocfs2_nodemanager.h
6*4882a593Smuzhiyun  *
7*4882a593Smuzhiyun  * Header describing the interface between userspace and the kernel
8*4882a593Smuzhiyun  * for the ocfs2_nodemanager module.
9*4882a593Smuzhiyun  *
10*4882a593Smuzhiyun  * Copyright (C) 2002, 2004 Oracle.  All rights reserved.
11*4882a593Smuzhiyun  */
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun #ifndef _OCFS2_NODEMANAGER_H
14*4882a593Smuzhiyun #define _OCFS2_NODEMANAGER_H
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun #define O2NM_API_VERSION	5
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun #define O2NM_MAX_NODES		255
19*4882a593Smuzhiyun #define O2NM_INVALID_NODE_NUM	255
20*4882a593Smuzhiyun 
21*4882a593Smuzhiyun /* host name, group name, cluster name all 64 bytes */
22*4882a593Smuzhiyun #define O2NM_MAX_NAME_LEN        64    // __NEW_UTS_LEN
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun /*
25*4882a593Smuzhiyun  * Maximum number of global heartbeat regions allowed.
26*4882a593Smuzhiyun  * **CAUTION**  Changing this number will break dlm compatibility.
27*4882a593Smuzhiyun  */
28*4882a593Smuzhiyun #define O2NM_MAX_REGIONS	32
29*4882a593Smuzhiyun 
30*4882a593Smuzhiyun #endif /* _OCFS2_NODEMANAGER_H */
31