]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
shared/005,7: fix making sure debugfs sets negative i_size
authorXiao Yang <yangx.jy@cn.fujitsu.com>
Wed, 22 Feb 2017 08:17:03 +0000 (16:17 +0800)
committerEryu Guan <eguan@redhat.com>
Wed, 22 Feb 2017 10:15:22 +0000 (18:15 +0800)
commit6e56c6b59aa7ba0c0622af4f5bf0d685ef6c523d
tree4b22a1a256dc750bc7b2596944cd3a11a5310266
parentf64fb746abe608c57ef40618f603f035d74e932f
shared/005,7: fix making sure debugfs sets negative i_size

If the kernel bug has been fixed, stat command fails to get i_size
and reports "Structure needs cleaning".  So we use debugfs -R "stat"
instead of stat command to make sure debugfs sets negative i_size.
These cases have been broken by commit 0e13e40b247a1 ("shared/005,7:
make sure debugfs sets negative i_size").

Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/shared/005
tests/shared/007