aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm/lowcomms.h
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2021-03-01 17:05:13 -0500
committerDavid Teigland <teigland@redhat.com>2021-03-09 08:56:42 -0600
commit517461630d1c25ee4dfc1dee80973a64189d6ccf (patch)
treea74438e0e5326e6dfbb24557060d5892e2034aa4 /fs/dlm/lowcomms.h
parentfs: dlm: add errno handling to check callback (diff)
downloadlinux-dev-517461630d1c25ee4dfc1dee80973a64189d6ccf.tar.xz
linux-dev-517461630d1c25ee4dfc1dee80973a64189d6ccf.zip
fs: dlm: add check if dlm is currently running
This patch adds checks for dlm config attributes regarding to protocol parameters as it makes only sense to change them when dlm is not running. It also adds a check for valid protocol specifiers and return invalid argument if they are not supported. Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/lowcomms.h')
-rw-r--r--fs/dlm/lowcomms.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/dlm/lowcomms.h b/fs/dlm/lowcomms.h
index 790d6703b17e..bcd4dbd1dc98 100644
--- a/fs/dlm/lowcomms.h
+++ b/fs/dlm/lowcomms.h
@@ -14,6 +14,9 @@
#define LOWCOMMS_MAX_TX_BUFFER_LEN 4096
+/* switch to check if dlm is running */
+extern int dlm_allow_conn;
+
int dlm_lowcomms_start(void);
void dlm_lowcomms_stop(void);
void dlm_lowcomms_exit(void);