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

2024-04-04 Thread Sandeep Dhavale via Linux-erofs
On Thu, Apr 4, 2024 at 7:00 AM Gao Xiang wrote: > > Hi Sandeep, > > On 2024/4/4 07:57, 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

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

2024-04-04 Thread Gao Xiang
Hi Sandeep, On 2024/4/4 07:57, 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. This patch detects if the block is

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

2024-04-03 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. This patch detects if the block is filled with zeros and marks chunk as erofs_holechunk so there