<div dir="ltr"><div>Hello Gao,</div><div><br></div><div>I have started working on above functionality for erofs.</div><div>First thing we need to do is detect sparse files & determine location of holes in it.</div><div><br></div><div>I was thinking of using lseek() with SEEK_HOLE & SEEK_DATA for detecting holes.</div><div>Let me know what you think about the approach OR any other better approach in your mind.<br></div><div><br></div><div>PS : support for SEEK_HOLE & SEEK_DATA came in 3.4 kernel. <br></div><div> <br></div></div>