/* SPDX-License-Identifier: GPL-2.0-only */1/******************************************************************************2*******************************************************************************3**4** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.5** Copyright (C) 2004-2005 Red Hat, Inc. All rights reserved.6**7**8*******************************************************************************9******************************************************************************/1011#ifndef __LOCKSPACE_DOT_H__12#define __LOCKSPACE_DOT_H__1314/* DLM_LSFL_FS15* The lockspace user is in the kernel (i.e. filesystem). Enables16* direct bast/cast callbacks.17*18* internal lockspace flag - will be removed in future19*/20#define DLM_LSFL_FS 0x000000042122int dlm_lockspace_init(void);23void dlm_lockspace_exit(void);24struct dlm_ls *dlm_find_lockspace_global(uint32_t id);25struct dlm_ls *dlm_find_lockspace_local(void *id);26struct dlm_ls *dlm_find_lockspace_device(int minor);27void dlm_put_lockspace(struct dlm_ls *ls);28void dlm_stop_lockspaces(void);29int dlm_new_user_lockspace(const char *name, const char *cluster,30uint32_t flags, int lvblen,31const struct dlm_lockspace_ops *ops,32void *ops_arg, int *ops_result,33dlm_lockspace_t **lockspace);3435#endif /* __LOCKSPACE_DOT_H__ */36373839