From 8fccc6ac6def007ca63862d87d93633cdc311daa Mon Sep 17 00:00:00 2001 From: Jim Salter Date: Mon, 17 Nov 2014 10:33:51 -0500 Subject: [PATCH] tested new mutex checking in sanoid snapshot thinning. added sleepymutex tool for future dev use in testing. --- sleepymutex | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 sleepymutex diff --git a/sleepymutex b/sleepymutex new file mode 100755 index 0000000..1eb26c5 --- /dev/null +++ b/sleepymutex @@ -0,0 +1,8 @@ +#!/bin/bash + +# this is just a cheap way to trigger mutex-based checks for process activity. +# +# ie ./sleepymutex zfs receive data/lolz if you want a mutex hanging around as long as necessary that will show up +# to any routine that actively does something like "ps axo | grep 'zfs receive'" or whatever. + +sleep 99999