[Ocfs2-tools-devel] [PATCH 2/4] defrag.ocfs2: Defrag files

Joel Becker Joel.Becker at oracle.com
Thu Nov 18 15:48:39 PST 2010


On Wed, Nov 17, 2010 at 05:13:30PM -0600, Goldwyn Rodrigues wrote:
> While working on this I realized if we defrag files which have been
> refcounted, we might end up using more disk space than we started with
> because all the refcounted extents will be duplicated and merged into
> larger extents.
> 
> Do you think we should preserve extents which are refcounted  using
> the save_cluster structures and not attempt to defrag such extents?

Goldwyn,
	It's good that you noticed this.  I say we should skip them
right now.  If we ever wanted to defrag refcounted extents, we'd have to
do it for all files that share the extents at the same time.

Joel

-- 

"I don't even butter my bread; I consider that cooking."
         - Katherine Cebrian

Joel Becker
Senior Development Manager
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127



More information about the Ocfs2-tools-devel mailing list