[Ocfs2-tools-devel] [PATCH 1/2] fsck.ocfs2: Use aligned size when do copy_clone.

Joel Becker Joel.Becker at oracle.com
Sat Oct 10 19:07:58 PDT 2009


On Sat, Oct 10, 2009 at 05:03:35PM +0800, Tao Ma wrote:
> -		ret = ocfs2_file_write(clone_ci, buf, iosize, offset, &wrote);
> +		write_len = ocfs2_blocks_in_bytes(fs, got) * fs->fs_blocksize;

	What you really want is ocfs2_align_bytes_to_blocks(), but
that's apparently only in the kernel's ocfs2.h.  Perhaps move it (and
align_bytes_to_clusters) into the tools as well?

Joel

-- 

"To announce that there must be no criticism of them president, or
 that we are to stand by the president, right or wrong, is not only
 unpatriotic and servile, but is morally treasonable to the American
 public."
	- Theodore Roosevelt

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



More information about the Ocfs2-tools-devel mailing list