]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_copy: fix copy of hard 4k devices
authorEric Sandeen <sandeen@redhat.com>
Tue, 23 Jun 2015 01:35:16 +0000 (11:35 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 23 Jun 2015 01:35:16 +0000 (11:35 +1000)
commitaaf90a2d2d20d00d5c933098257f806311222ff0
tree6c3120c82e647897b32bbb5e09d41c91dd52b406
parent7080611052550c6a26121c3fcafadb3db84bb338
xfs_copy: fix copy of hard 4k devices

If we have a pure 4k device with no 512 emulation, xfs_copy
fails straightaway because it tries to do a 512-byte direct
IO read of the superblock.

Do like we do in xfs_db, and read in the max possible sector size,
because we don't yet know what the filesystem's sector size is.

This fixes a failure in xfs/032 on a hard 4k device.

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