fs: dlm: add check if dlm is currently running
authorAlexander Aring <aahringo@redhat.com>
Mon, 1 Mar 2021 22:05:13 +0000 (17:05 -0500)
committerDavid Teigland <teigland@redhat.com>
Tue, 9 Mar 2021 14:56:42 +0000 (08:56 -0600)
commit517461630d1c25ee4dfc1dee80973a64189d6ccf
treea74438e0e5326e6dfbb24557060d5892e2034aa4
parent8aa9540b49e0833feba75dbf4f45babadd0ed215
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>
fs/dlm/config.c
fs/dlm/lowcomms.c
fs/dlm/lowcomms.h