[Ocfs2-devel] [PATCH 17/41] ocfs2: Add CoW support.

Joel Becker Joel.Becker at oracle.com
Mon Aug 24 11:20:21 PDT 2009


On Mon, Aug 24, 2009 at 11:04:12PM +0800, Tao Ma wrote:
> This patch try CoW support for a refcounted record.
> 
> the whole process will be:
> 1. Calculate how much clusters we need to CoW and where we start.
>    Currently we will CoW 1MB at most.
> 2. Do CoW for the clusters with the help of page cache.
> 3. Change the b-tree structure with the new allocated clusters.

	Looks good except for the commit header.  (1) is really
"Calculate how many clusters we need to CoW and where we start.  Extents
that are not completely encompassed by the write will be broken on 1MB
boundaries" or something like it.

Joel

-- 

Life's Little Instruction Book #69

	"Whistle"

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127



More information about the Ocfs2-devel mailing list