Re: [PATCH v9 23/34] qcow2: Add subcluster support to discard_in_l2_slice()

2020-07-02 Thread Max Reitz
On 28.06.20 13:02, Alberto Garcia wrote: > Two things need to be taken into account here: > > 1) With full_discard == true the L2 entry must be cleared completely. >This also includes the L2 bitmap if the image has extended L2 >entries. > > 2) With full_discard == false we have to make th

[PATCH v9 23/34] qcow2: Add subcluster support to discard_in_l2_slice()

2020-06-28 Thread Alberto Garcia
Two things need to be taken into account here: 1) With full_discard == true the L2 entry must be cleared completely. This also includes the L2 bitmap if the image has extended L2 entries. 2) With full_discard == false we have to make the discarded cluster read back as zeroes. With normal