diff options
author | Amitay Isaacs <amitay@gmail.com> | 2014-09-25 12:46:22 +1000 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2014-09-25 07:19:59 +0200 |
commit | f1e281cd47d9ebd79e09294606b8fa411ec0fbb4 (patch) | |
tree | bef2ffe6709c89eaed5bb6bce3a62d9f4c00149f /ctdb | |
parent | c64369cba2e5a975d87d518737abbf04c9871a26 (diff) | |
download | samba-f1e281cd47d9ebd79e09294606b8fa411ec0fbb4.tar.gz samba-f1e281cd47d9ebd79e09294606b8fa411ec0fbb4.tar.xz samba-f1e281cd47d9ebd79e09294606b8fa411ec0fbb4.zip |
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-x | ctdb/config/debug_locks.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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] |