]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_copy: genericize write helper to facilitate separate log buf
authorBrian Foster <bfoster@redhat.com>
Tue, 13 Oct 2015 23:58:25 +0000 (10:58 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 13 Oct 2015 23:58:25 +0000 (10:58 +1100)
commit96866b037f921270dccd23641c72233afe4ac47c
tree2b3c9bc6a80b7f5184b7ecda951e4fc25fa34870
parent3616eb86d0c4a6f57ef73520949827a8dace6852
xfs_copy: genericize write helper to facilitate separate log buf

xfs_copy uses a fixed write buffer throughout the code for the various
targets. This is a global buffer and is assumed to be the write source
in the do_write() helper used by the log clearing code.

v5 superblock log formatting will require a larger, independent buffer
to format the log. Therefore, update do_write() to accept a write buffer
parameter to optionally override the global write buffer. This patch
does not change current behavior.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
copy/xfs_copy.c