]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
shared/298: run xfs_db against the loop device instead of the image file
authorChristoph Hellwig <hch@lst.de>
Fri, 1 Mar 2024 15:28:20 +0000 (08:28 -0700)
committerZorro Lang <zlang@kernel.org>
Tue, 12 Mar 2024 03:39:52 +0000 (11:39 +0800)
commit926ae266c86aaf62cdb39e508d22c2ba626e8819
treeb2ac5dfe69f7f8bb8cfe9a52dc9c18ec4e5fd5bf
parent5e1e51df9f295c8c5fc6771e1df1c96fa768f1a2
shared/298: run xfs_db against the loop device instead of the image file

xfs_db fails to properly detect the device sector size and thus segfaults
when run again an image file with 4k sector size.  While that's something
we should fix in xfs_db it will require a fair amount of refactoring of
the libxfs init code.  For now just change shared/298 to run xfs_db
against the loop device created on the image file that is used for I/O,
which feels like the right thing to do anyway to avoid cache coherency
issues.

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