[Ocfs2-tools-devel] [PATCH 6/7] Add "clear sparse" feature for ocfs2-tools, take 3

Mark Fasheh mark.fasheh at oracle.com
Mon Nov 5 18:03:26 PST 2007


On Mon, Nov 05, 2007 at 03:50:05PM +0800, tao.ma wrote:
> Change from V2 to V3:
> 1. Add check in add_hole and add_unwritten, so that if a ocfs2_malloc0
>    fails, we can handle it properly.
> 2. Remove the unnecessary memset.
> 3. optimize the process of file iteration. If a file doesn't have any
>    hole or unwritten extent, don't add it to the file list.
> 4. Add a missing return value check.
>  
> With a new formatted volume, we can use "--fs-features=nosparse"
> in tunefs.ocfs2 to clear the sparse flag and let it to be used by
> old ocfs2 kernel. By this option, all the holes will be allocated
> with spaces and all the unwritten extents will be removed with
> their contents emptied with zero.
> 
> Signed-off-by: Tao Ma <tao.ma at oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh at oracle.com>

--
Mark Fasheh
Senior Software Developer, Oracle
mark.fasheh at oracle.com



More information about the Ocfs2-tools-devel mailing list