On 12/10/20 4:36 PM, Max Reitz wrote:
> On 10.12.20 13:52, Philippe Mathieu-Daudé wrote:
>> NVMe drive can not be shrunk.
> 
> *cannot
> 
>> Since commit c80d8b06cfa we can use the @exact parameter (set
>> to false) to return success if the block device is larger than
>> the requested offset (even if we can not be shrunk).
>>
>> Use this parameter to implement the NVMe truncate() coroutine,
>> similarly how it is done for the iscsi and file-posix drivers
>> (see commit 82325ae5f2f "Evaluate @exact in protocol drivers").
>>
>> Reported-by: Xueqiang Wei <xu...@redhat.com>
>> Suggested-by: Max Reitz <mre...@redhat.com>
>> Signed-off-by: Philippe Mathieu-Daudé <phi...@redhat.com>
>> ---
>>   block/nvme.c | 24 ++++++++++++++++++++++++
>>   1 file changed, 24 insertions(+)
> Thanks!  (Fixed the typo and) applied to my block branch:
> 
> https://git.xanclic.moe/XanClic/qemu/commits/branch/block
> 

Thanks Max!


Reply via email to