]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dlm: disallow different configs nodeid storages
authorAlexander Aring <aahringo@redhat.com>
Fri, 4 Oct 2024 15:13:39 +0000 (11:13 -0400)
committerDavid Teigland <teigland@redhat.com>
Fri, 4 Oct 2024 15:31:31 +0000 (10:31 -0500)
commit7138c7903468578f1ae57b1c7eac8b7082862995
tree97e0dd733a65ca9cb059771561d64d0c4c908bea
parentb98333c67daf887c724cd692e88e2db9418c0861
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>
fs/dlm/config.c
fs/dlm/config.h
fs/dlm/member.c