summaryrefslogtreecommitdiff
path: root/fs/dlm/config.h
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2024-10-04 11:13:39 -0400
committerDavid Teigland <teigland@redhat.com>2024-10-04 10:31:31 -0500
commit7138c7903468578f1ae57b1c7eac8b7082862995 (patch)
tree97e0dd733a65ca9cb059771561d64d0c4c908bea /fs/dlm/config.h
parentb98333c67daf887c724cd692e88e2db9418c0861 (diff)
dlm: disallow different configs nodeid storages
The DLM configfs path has usually a nodeid in it's directory path and again a file to store the nodeid again in a separate storage. It is forced that the user space will set both (the directory name and nodeid file) storage to the same value if it doesn't do that we run in some kind of broken state. This patch will simply represent the file storage to it's upper directory nodeid name. It will force the user now to use a valid unsigned int as nodeid directory name and will ignore all nodeid writes in the nodeid file storage as this will now always represent the upper nodeid directory name. Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/config.h')
-rw-r--r--fs/dlm/config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/config.h b/fs/dlm/config.h
index ed237d910208..8a14a6e95463 100644
--- a/fs/dlm/config.h
+++ b/fs/dlm/config.h
@@ -50,7 +50,7 @@ int dlm_config_init(void);
void dlm_config_exit(void);
int dlm_config_nodes(char *lsname, struct dlm_config_node **nodes_out,
int *count_out);
-int dlm_comm_seq(int nodeid, uint32_t *seq);
+int dlm_comm_seq(int nodeid, uint32_t *seq, bool locked);
int dlm_our_nodeid(void);
int dlm_our_addr(struct sockaddr_storage *addr, int num);