From 4a01c53787d8a97cfd3489923e49c400f3b45f87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 22 Jul 2015 05:46:12 +0200 Subject: [PATCH] qvm-tools: update qvm-trim-template for R3 block attach api --- qvm-tools/qvm-trim-template | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qvm-tools/qvm-trim-template b/qvm-tools/qvm-trim-template index 58e19d45..f576822b 100755 --- a/qvm-tools/qvm-trim-template +++ b/qvm-tools/qvm-trim-template @@ -118,7 +118,12 @@ def main(): ''') fstrim_process.stdin.close() - qubesutils.block_attach(fstrim_vm, qvm_collection[0], tvm.root_img, + qubesutils.block_attach(qvm_collection, fstrim_vm, + { + 'vm': 'dom0', + 'device': tvm.root_img, + 'mode': 'w', + }, mode='w', frontend='xvdi')