Skip to content

Commit

Permalink
DBG - verbose repair
Browse files Browse the repository at this point in the history
  • Loading branch information
mvollmer committed Dec 14, 2023
1 parent 07f1ca8 commit 653d80c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions lvm-debug
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
#! /bin/bash

set -o pipefail

logger -- RUN: $0 "$@"
( exec -a "$0" /usr/sbin/lvm.orig "$@" )
res=$?
if [ "$1" == "lvconvert" ]; then
shift;
# ( strace --argv0 "$0" -o "|logger" -s 1000 -f -- /usr/sbin/lvm.orig lvconvert -vvvv "$@" 2>&1 ) | logger
( exec -a "$0" /usr/sbin/lvm.orig lvconvert -vvvv "$@" 2>&1 ) | logger
res=$?
else
( exec -a "$0" /usr/sbin/lvm.orig "$@" )
res=$?
fi
logger -- DONE: $0 "$@" == $res
exit $res

0 comments on commit 653d80c

Please sign in to comment.