162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * ocfs2_nodemanager.h
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Header describing the interface between userspace and the kernel
662306a36Sopenharmony_ci * for the ocfs2_nodemanager module.
762306a36Sopenharmony_ci *
862306a36Sopenharmony_ci * Copyright (C) 2002, 2004 Oracle.  All rights reserved.
962306a36Sopenharmony_ci */
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#ifndef _OCFS2_NODEMANAGER_H
1262306a36Sopenharmony_ci#define _OCFS2_NODEMANAGER_H
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci#define O2NM_API_VERSION	5
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci#define O2NM_MAX_NODES		255
1762306a36Sopenharmony_ci#define O2NM_INVALID_NODE_NUM	255
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci/* host name, group name, cluster name all 64 bytes */
2062306a36Sopenharmony_ci#define O2NM_MAX_NAME_LEN        64    // __NEW_UTS_LEN
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci/*
2362306a36Sopenharmony_ci * Maximum number of global heartbeat regions allowed.
2462306a36Sopenharmony_ci * **CAUTION**  Changing this number will break dlm compatibility.
2562306a36Sopenharmony_ci */
2662306a36Sopenharmony_ci#define O2NM_MAX_REGIONS	32
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci#endif /* _OCFS2_NODEMANAGER_H */
29