]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/422: Do not hardcode space used by files
authorAndreas Gruenbacher <agruenba@redhat.com>
Tue, 10 Oct 2017 10:21:14 +0000 (12:21 +0200)
committerEryu Guan <eguan@redhat.com>
Wed, 11 Oct 2017 16:12:53 +0000 (00:12 +0800)
commit76ddf492fb0450a1203a1b9b40b0507c83eef4b2
treed02384d76b0af1fcd9211fc2980d11c9436925e0
parent21db51dd980c2b0aa46e061a535d7d066e5d3d77
generic/422: Do not hardcode space used by files

Test generic/422 hardcodes in the output file how much space files it
creates are supposed to take up on disk.  This doesn't work when
additional space is allocated for extended attributes for ACLs or
SELinux labels.

Instead, record the actual space used in generic/422.full, and only
check if the writeback changes the space used.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/422
tests/generic/422.out