[Ocfs2-devel] [patch] Fix a wrong cluster calculation.

Mark Fasheh mark.fasheh at oracle.com
Thu Sep 6 11:34:08 PDT 2007


On Thu, Sep 06, 2007 at 08:02:25AM +0800, tao.ma wrote:
> In ocfs2_alloc_write_write_ctxt, the written clusters length is calculated
> by the byte length only. This may cause some problems if we start to write
> at some position in the end of one cluster and last to a second cluster
> while the "len" is smaller than a cluster size. In that case, we have to
> write 2 clusters actually.
> So we have to take the start position into consideration also.

Good catch Tao, thanks.
	--Mark

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



More information about the Ocfs2-devel mailing list