[Ocfs2-tools-devel] [PATCH 1/2] fsck.ocfs2: Use aligned size when do copy_clone.
Tao Ma
tao.ma at oracle.com
Sun Oct 11 18:29:02 PDT 2009
Joel Becker wrote:
> 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?
yeah, I just checked ocfs2.h in the user space and don't find a proper
function. You are right, I will move the function to tools and use it.
Regards,
Tao
More information about the Ocfs2-tools-devel
mailing list