]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_copy: band-aids for CRC filesystems
authorEric Sandeen <sandeen@sandeen.net>
Mon, 3 Mar 2014 01:21:21 +0000 (12:21 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 3 Mar 2014 01:21:21 +0000 (12:21 +1100)
commita872b6221db3457a0288b39e3b32b66a66ba71f6
tree69d872fac6c2b9b55ef4ec03907688aaefb2f2db
parent4e11214c25c0c669591b3d93671531ade3535834
xfs_copy: band-aids for CRC filesystems

xfs_copy needs a fair bit of work for CRCs because it rewrites
UUIDs by default, but this change will get it working properly
with the "-d" (duplicate) option which keeps the same UUID.

Accept the the CRC magic valid, change the ASSERT() to an error
message and exit more gracefully, and don't
even get started if we don't have the '-d' option.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
copy/xfs_copy.c