diff options
author | Zhu Lingshan <lszhu@suse.com> | 2017-07-11 09:26:55 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2017-08-07 11:23:09 -0500 |
commit | 3b0e761ba83cb063eb95734faece35378beebac4 (patch) | |
tree | 5c87d5897793993d6a65774e3103c77a589d59cd /fs/dlm | |
parent | 2ab93ae13822741432338c9d0917a6009e737a5a (diff) | |
download | linux-3b0e761ba83cb063eb95734faece35378beebac4.tar.bz2 |
dlm: print log message when cluster name is not set
Print a message when a cluster name is not specified by
the caller. In this case the cluster name configured
for the dlm is used without any validation that it is
the cluster expected by the application.
Signed-off-by: Zhu Lingshan <lszhu@suse.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm')
-rw-r--r-- | fs/dlm/lockspace.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c index 323341661d08..9ebfa05df9d2 100644 --- a/fs/dlm/lockspace.c +++ b/fs/dlm/lockspace.c @@ -453,6 +453,10 @@ static int new_lockspace(const char *name, const char *cluster, *ops_result = 0; } + if (!cluster) + log_print("dlm cluster name '%s' is being used without an application provided cluster name", + dlm_config.ci_cluster_name); + if (dlm_config.ci_recover_callbacks && cluster && strncmp(cluster, dlm_config.ci_cluster_name, DLM_LOCKSPACE_LEN)) { log_print("dlm cluster name '%s' does not match " |