summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2014-09-25 12:46:22 +1000
committerMartin Schwenke <martins@samba.org>2014-09-25 07:19:59 +0200
commitf1e281cd47d9ebd79e09294606b8fa411ec0fbb4 (patch)
treebef2ffe6709c89eaed5bb6bce3a62d9f4c00149f /ctdb
parentc64369cba2e5a975d87d518737abbf04c9871a26 (diff)
downloadsamba-f1e281cd47d9ebd79e09294606b8fa411ec0fbb4.tar.gz
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 <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Thu Sep 25 07:19:59 CEST 2014 on sn-devel-104
Diffstat (limited to 'ctdb')
-rwxr-xr-xctdb/config/debug_locks.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/config/debug_locks.sh b/ctdb/config/debug_locks.sh
index 54b52ed1464..33bf3e63dde 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]