]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs: force unlink metadata updates to disk
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 1 Nov 2018 23:19:15 +0000 (16:19 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 4 Nov 2018 15:23:58 +0000 (23:23 +0800)
commit9f07f7a01655513163cb743653dac56570a18baf
treeba791e484cc561e1cee2c5471137d7e200d91ebf
parenta0e085215e05a4ce7a65d24722f99d9811f1a0c7
xfs: force unlink metadata updates to disk

In xfs/318 and xfs/325 we inject errors on extent freeing then delete
some files to see if we can make the filesystem go offline.  However,
with the advent of deferred inode inactivation, sync won't guarantee
that unlinked inodes removal is actually pushed to disk since the "inode
needs to be deallocated" state is persisted to disk.  Freeze achieves
this, however, so inject a freeze/thaw cycle to make sure we hit the
injected error.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/xfs/318
tests/xfs/325