This is an automated email from the git hooks/post-receive script.
teigland pushed a commit to branch master
in repository sanlock.
The following commit(s) were added to refs/heads/master by this push:
new 874a9aa sanlock: special debug_cmd all value
874a9aa is described below
commit 874a9aa44d180dabbe2028f74b6728317fe06f6c
Author: David Teigland <teigland(a)redhat.com>
AuthorDate: Fri Mar 13 11:47:09 2020 -0500
sanlock: special debug_cmd all value
---
src/main.c | 16 +++++++++++-----
src/sanlock.8 | 4 +++-
2 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/src/main.c b/src/main.c
index 8df2495..8c6eef8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2837,11 +2837,17 @@ static void read_config_file(void)
} else if (!strcmp(str, "debug_cmd")) {
get_val_str(line, str);
- cmd = cmd_str_to_num(str+1);
- if (cmd && (str[0] == '+'))
- set_cmd_debug(cmd);
- else if (cmd && (str[0] == '-'))
- clear_cmd_debug(cmd);
+ if (!strcmp(str, "+all"))
+ com.debug_cmds = ~0LL;
+ else if (!strcmp(str, "-all"))
+ com.debug_cmds = 0LL;
+ else {
+ cmd = cmd_str_to_num(str+1);
+ if (cmd && (str[0] == '+'))
+ set_cmd_debug(cmd);
+ else if (cmd && (str[0] == '-'))
+ clear_cmd_debug(cmd);
+ }
} else if (!strcmp(str, "max_sectors_kb")) {
memset(str, 0, sizeof(str));
diff --git a/src/sanlock.8 b/src/sanlock.8
index 3ebbce7..d75211d 100644
--- a/src/sanlock.8
+++ b/src/sanlock.8
@@ -1361,7 +1361,9 @@ By default sanlock disables some command level debugging for
commands that
are often repetitive and fill the in memory debug buffer.
This only affects debug logging, not errors or warnings, and disabling
command level debugging for a command does not disable lower level debugging
-for that command.
+for that command. Special values +all and -all can be used to
+enable or disable all commands, and can be used before or after other
+debug_cmd lines.
.SH SEE ALSO
.BR wdmd (8)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by thread