Re: [PATCH v3 3/5] qcow2: Use bs->bl.request_alignment when updating an L1 entry

2020-01-21 Thread Max Reitz
On 18.01.20 20:09, Alberto Garcia wrote: > When updating an L1 entry the qcow2 driver writes a (512-byte) sector > worth of data to avoid a read-modify-write cycle. Instead of always > writing 512 bytes we should follow the alignment requirements of the > storage backend. > > (the only exception i

[PATCH v3 3/5] qcow2: Use bs->bl.request_alignment when updating an L1 entry

2020-01-18 Thread Alberto Garcia
When updating an L1 entry the qcow2 driver writes a (512-byte) sector worth of data to avoid a read-modify-write cycle. Instead of always writing 512 bytes we should follow the alignment requirements of the storage backend. (the only exception is when the alignment is larger than the cluster size