Defer shrink operations if there is a pending decrypt

This commit is contained in:
HummyPkg 2017-03-18 10:41:49 +00:00
parent 4bb5fd3a30
commit 2c9a386e25

View File

@ -10,6 +10,10 @@ proc ::shrink::dequeue {q ts} {
return {"OK" "Already shrunk"} 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 # If the directory is flagged for decryption as well as shrink
# then check to see if decryption has already occured. If not, # then check to see if decryption has already occured. If not,
# defer the shrink for now. # defer the shrink for now.