- get_scratch_volume() was not using the right VolEncrypted value for
the SQL query
- this fix tests :
failed 651s tests/copy-uncopied-test
failed 651s tests/copy-volume-test
failed 651s tests/next-vol-test
failed 69s tests/verify-data-test
failed 651s tests/scratchpool-pool-test
bmemset(&spr, 0, sizeof(spr));
bstrncpy(spr.Name, "Scratch", sizeof(spr.Name));
spr.PoolId = mr->ScratchPoolId;
+ smr.VolEncrypted = mr->VolEncrypted;
if (db_get_pool_record(jcr, jcr->db, &spr)) {
smr.PoolId = spr.PoolId;
bstrncpy(smr.VolStatus, "Append", sizeof(smr.VolStatus)); /* want only appendable volumes */