This is an automated email from the git hooks/post-receive script.
teigland pushed a commit to branch master in repository sanlock.
commit cc2bca289504bc38f101cf06a81b7569fc7168f9 Author: David Teigland teigland@redhat.com AuthorDate: Fri Jun 27 15:46:44 2025 -0500
sanlock: add debugging for read_lockspace --- src/cmd.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/cmd.c b/src/cmd.c index d5c7452..f7eaecc 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -1628,17 +1628,27 @@ static void cmd_read_lockspace(struct task *task, struct cmd_args *ca, uint32_t
if (!sector_size) { result = delta_read_lockspace_sizes(task, &sd, host_id, com.io_timeout, §or_size, &align_size); - if (result < 0) + if (result < 0) { + log_cmd(cmd, "cmd_read_lockspace%s %d,%d host_id %llu delta_read_lockspace_sizes error %d", + with_host ? "_host" : "", ca->ci_in, fd, (unsigned long long)host_id, result); goto out_close; + } if ((sector_size != 512) && (sector_size != 4096)) { + log_cmd(cmd, "cmd_read_lockspace%s %d,%d host_id %llu invalid sector size %d", + with_host ? "_host" : "", ca->ci_in, fd, (unsigned long long)host_id, sector_size); result = -EINVAL; goto out_close; } }
result = delta_read_lockspace(task, &sd, sector_size, host_id, &lockspace, com.io_timeout, &host); - if (result == SANLK_OK) + if (result == SANLK_OK) { result = 0; + } else { + log_cmd(cmd, "cmd_read_lockspace%s %d,%d host_id %llu delta_read_lockspace error %d", + with_host ? "_host" : "", ca->ci_in, fd, (unsigned long long)host_id, result); + } +
out_close: close_disks(&sd, 1);
sanlock-devel@lists.fedorahosted.org