Re: [PATCH v2] erofs-utils: lib: treat data blocks filled with 0s as a hole

2024-04-12 Thread Sandeep Dhavale via Linux-erofs
On Fri, Apr 12, 2024 at 5:07 PM Gao Xiang wrote: > > Hi Sandeep, > > On 2024/4/10 06:14, Sandeep Dhavale wrote: > > Add optimization to treat data blocks filled with 0s as a hole. > > Even though diskspace savings are comparable to chunk based or dedupe, > > having no block assigned saves us redun

Re: [PATCH v2] erofs-utils: lib: treat data blocks filled with 0s as a hole

2024-04-12 Thread Gao Xiang
Hi Sandeep, On 2024/4/10 06:14, Sandeep Dhavale wrote: Add optimization to treat data blocks filled with 0s as a hole. Even though diskspace savings are comparable to chunk based or dedupe, having no block assigned saves us redundant disk IOs during read. To detect blocks filled with zeros duri

[PATCH v2] erofs-utils: lib: treat data blocks filled with 0s as a hole

2024-04-09 Thread Sandeep Dhavale via Linux-erofs
Add optimization to treat data blocks filled with 0s as a hole. Even though diskspace savings are comparable to chunk based or dedupe, having no block assigned saves us redundant disk IOs during read. To detect blocks filled with zeros during chunking, we insert block filled with zeros (zerochunk)