Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Zhu Lingshan and committed by
David Teigland
3b0e761b 2ab93ae1

+4
+4
fs/dlm/lockspace.c
··· 453 453 *ops_result = 0; 454 454 } 455 455 456 + if (!cluster) 457 + log_print("dlm cluster name '%s' is being used without an application provided cluster name", 458 + dlm_config.ci_cluster_name); 459 + 456 460 if (dlm_config.ci_recover_callbacks && cluster && 457 461 strncmp(cluster, dlm_config.ci_cluster_name, DLM_LOCKSPACE_LEN)) { 458 462 log_print("dlm cluster name '%s' does not match "