]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_copy: use uncached buffer reads to get the superblock
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 1 Mar 2020 17:34:10 +0000 (12:34 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Sun, 1 Mar 2020 17:34:10 +0000 (12:34 -0500)
commit745b7e18fbd887f00d777c5f0ae08444f493b667
tree593406a7273b4f6bbef658e06844759e04e94aae
parenta0846242747018db73abc2a57d7362aad36240f5
xfs_copy: use uncached buffer reads to get the superblock

Upon startup, xfs_copy needs to read the filesystem superblock to mount
the filesystem.  We cannot know the filesystem sector size until we read
the superblock, but we also do not want to introduce aliasing in the
buffer cache.  Convert this code to the new uncached buffer read API so
that we can stop open-coding it.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
copy/xfs_copy.c