From f1e281cd47d9ebd79e09294606b8fa411ec0fbb4 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Thu, 25 Sep 2014 12:46:22 +1000 Subject: [PATCH] ctdb-scripts: Fix the regular expresssion for parsing /proc/locks The major and minor device numbers are hexadecimal not decimal. Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke Autobuild-User(master): Martin Schwenke Autobuild-Date(master): Thu Sep 25 07:19:59 CEST 2014 on sn-devel-104 --- ctdb/config/debug_locks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctdb/config/debug_locks.sh b/ctdb/config/debug_locks.sh index 54b52ed146..33bf3e63dd 100755 --- a/ctdb/config/debug_locks.sh +++ b/ctdb/config/debug_locks.sh @@ -28,7 +28,7 @@ loadconfig ctdb sed_cmd=$( ls -li "$CTDB_DBDIR"/*.tdb.* "$CTDB_DBDIR_PERSISTENT"/*.tdb.* | sed -e "s#${CTDB_DBDIR}/\(.*\)#\1#" \ -e "s#${CTDB_DBDIR_PERSISTENT}/\(.*\)#\1#" | - awk '{printf "s#[0-9]*:[0-9]*:%s #%s #\n", $1, $10}' ) + awk '{printf "s#[0-9a-f]*:[0-9a-f]*:%s #%s #\n", $1, $10}' ) # Parse /proc/locks and extract following information # pid process_name tdb_name offsets [W] -- 2.34.1