From 903a881481745584b538591ea4db92bca7156956 Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Tue, 13 Dec 2011 17:18:30 -0200 Subject: qerror: Extend QERR_DEVICE_ENCRYPTED Include the name of the encrypted file. Signed-off-by: Luiz Capitulino --- qmp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qmp.c') diff --git a/qmp.c b/qmp.c index f218485..9c9ea62 100644 --- a/qmp.c +++ b/qmp.c @@ -135,7 +135,8 @@ static void encrypted_bdrv_it(void *opaque, BlockDriverState *bs) Error **err = opaque; if (!error_is_set(err) && bdrv_key_required(bs)) { - error_set(err, QERR_DEVICE_ENCRYPTED, bdrv_get_device_name(bs)); + error_set(err, QERR_DEVICE_ENCRYPTED, bdrv_get_device_name(bs), + bdrv_get_encrypted_filename(bs)); } } -- cgit v1.1