diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2011-12-13 17:18:30 -0200 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2012-01-18 10:23:39 -0200 |
commit | 903a881481745584b538591ea4db92bca7156956 (patch) | |
tree | 3783956130fc561836015076ee28a37ef9bff3eb /qmp.c | |
parent | 270b243f91cdae380eb02396e57452c15dbcef86 (diff) |
qerror: Extend QERR_DEVICE_ENCRYPTED
Include the name of the encrypted file.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qmp.c')
-rw-r--r-- | qmp.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)); } } |