Re: [question] Partial sector issue while discard in qcow2 image

2020-06-03 Thread Lin Ma
Hi Kevin, Thanks for the explanation! Lin From: Kevin Wolf Sent: Tuesday, June 2, 2020 7:06 PM To: Lin Ma Cc: qemu-devel@nongnu.org ; pbonz...@redhat.com Subject: Re: [question] Partial sector issue while discard in qcow2 image Am 02.06.2020 um 09:45 hat

Re: [question] Partial sector issue while discard in qcow2 image

2020-06-02 Thread Kevin Wolf
Am 02.06.2020 um 09:45 hat Lin Ma geschrieben: > Hi all, > > During woring to add GET LBA STATUS support in qemu scsi emulation > layer, I encountered an unmap issue with qcow2 image, It's likely > about how to unmap partial clusters. e.g.: > > With these default values: > * the default value of

[question] Partial sector issue while discard in qcow2 image

2020-06-02 Thread Lin Ma
Hi all, During woring to add GET LBA STATUS support in qemu scsi emulation layer, I encountered an unmap issue with qcow2 image, It's likely about how to unmap partial clusters. e.g.: With these default values: * the default value of s->qdev.blocksize: 512 * the default value of s->cluster_siz