From 2c9a386e2580cbe6dc2db4895962dbb55afd1472 Mon Sep 17 00:00:00 2001 From: HummyPkg Date: Sat, 18 Mar 2017 10:41:49 +0000 Subject: [PATCH] Defer shrink operations if there is a pending decrypt --- webif/lib/auto/plugin/shrink/queue.hook | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webif/lib/auto/plugin/shrink/queue.hook b/webif/lib/auto/plugin/shrink/queue.hook index c73e9fa..b99d32b 100644 --- a/webif/lib/auto/plugin/shrink/queue.hook +++ b/webif/lib/auto/plugin/shrink/queue.hook @@ -10,6 +10,10 @@ proc ::shrink::dequeue {q ts} { return {"OK" "Already shrunk"} } + if {[queue check $ts decrypt]} { + return {"DEFER" "Deferring shrink until decrypted"} + } + # If the directory is flagged for decryption as well as shrink # then check to see if decryption has already occured. If not, # defer the shrink for now.