Skip to content

Commit

Permalink
DBG - log lvm invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
mvollmer committed Dec 14, 2023
1 parent 4704127 commit 773d6fe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lvm-debug
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#! /bin/bash

logger -- RUN: $0 "$@"
( exec -a "$0" /usr/sbin/lvm.orig "$@" )
res=$?
logger -- DONE: $0 "$@" == $res
exit $res
5 changes: 5 additions & 0 deletions test/verify/check-storage-lvm2
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,11 @@ class TestStorageLvm2(storagelib.StorageCase):
def testRaidRepair(self):
b = self.browser

m = self.machine
m.execute("mv /usr/sbin/lvm /usr/sbin/lvm.orig")
m.upload(["../lvm-debug"], "/usr/sbin/lvm")
m.execute("chmod a+x /usr/sbin/lvm")

self.skip_if_no_layouts()

self.login_and_go("/storage")
Expand Down

0 comments on commit 773d6fe

Please sign in to comment.