qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 04/17] monitor: Report encrypted disks in snapsh


From: Jan Kiszka
Subject: [Qemu-devel] Re: [PATCH 04/17] monitor: Report encrypted disks in snapshot mode
Date: Mon, 09 Feb 2009 16:35:38 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

Anthony Liguori wrote:
> Jan Kiszka wrote:
>> If the backing file is encrypted, 'info block' currently does not report
>> the disk as encrypted. Fix this by used the standard API to check disk
>> encryption mode.
>>
>> Signed-off-by: Jan Kiszka <address@hidden>
>> ---
>>
>>  block.c |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/block.c b/block.c
>> index 78982f4..82c2016 100644
>> --- a/block.c
>> +++ b/block.c
>> @@ -1056,7 +1056,7 @@ void bdrv_info(void)
>>          }
>>              term_printf(" ro=%d", bs->read_only);
>>              term_printf(" drv=%s", bs->drv->format_name);
>> -            if (bs->encrypted)
>> +            if (bdrv_is_encrypted(bs))
>>                  term_printf(" encrypted");
>>   
> 
> It's a bit more easily parsable if it's in the format encrypted=[1|0].
> 

OK, will change this.

Jan

-- 
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux




reply via email to

[Prev in Thread] Current Thread [Next in Thread]