Re: [Qemu-devel] [PATCH v2] qcow2: discard bitmap when removed

2019-04-09 Thread Andrey Shinkevich
On 08/04/2019 22:03, Max Reitz wrote: > On 28.02.19 10:26, Andrey Shinkevich wrote: >> When a bitmap is removed, we can clean some space on the disk. The size >> of a cluster may be larger, so is the size of the bitmap that includes >> many clusters. Some bitmaps can be as large as tens of

Re: [Qemu-devel] [PATCH v2] qcow2: discard bitmap when removed

2019-04-08 Thread Max Reitz
On 28.02.19 10:26, Andrey Shinkevich wrote: > When a bitmap is removed, we can clean some space on the disk. The size > of a cluster may be larger, so is the size of the bitmap that includes > many clusters. Some bitmaps can be as large as tens of megabytes. > The flag QCOW2_DISCARD_ALWAYS allows

Re: [Qemu-devel] [PATCH v2] qcow2: discard bitmap when removed

2019-02-28 Thread Vladimir Sementsov-Ogievskiy
28.02.2019 12:26, Andrey Shinkevich wrote: > When a bitmap is removed, we can clean some space on the disk. The size > of a cluster may be larger, so is the size of the bitmap that includes > many clusters. Some bitmaps can be as large as tens of megabytes. > The flag QCOW2_DISCARD_ALWAYS allows a

[Qemu-devel] [PATCH v2] qcow2: discard bitmap when removed

2019-02-28 Thread Andrey Shinkevich
When a bitmap is removed, we can clean some space on the disk. The size of a cluster may be larger, so is the size of the bitmap that includes many clusters. Some bitmaps can be as large as tens of megabytes. The flag QCOW2_DISCARD_ALWAYS allows a call to the raw_co_pdiscard() that does the actual