]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
shared/298: call fs commands on the loop device
authorChristoph Hellwig <hch@lst.de>
Wed, 6 Mar 2024 01:22:46 +0000 (18:22 -0700)
committerZorro Lang <zlang@kernel.org>
Tue, 12 Mar 2024 03:39:52 +0000 (11:39 +0800)
commit5e1e51df9f295c8c5fc6771e1df1c96fa768f1a2
tree34ad9ce6f346b395693fe9dcf4a366ba1720bac8
parent7a338a6af80d6b856551265f156c7958a0f07237
shared/298: call fs commands on the loop device

In general calling fs tools is best done on the block device used for
the file system and not the backing device of a loop file.  Thus switch
shared/298 to call all fs commands on the loop device.  Also add a
common on why the xfs_io fiemap command is called on the backing file,
and to have a good place for the comment stop passing the backing file
as the argument to get_holes function and just use it implicitly as
the other helpers to with the loop device.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/shared/298