generic: test for number of bytes used by files after buffered writes
authorFilipe Manana <fdmanana@suse.com>
Tue, 4 Apr 2017 06:34:30 +0000 (07:34 +0100)
committerEryu Guan <eguan@redhat.com>
Sat, 8 Apr 2017 15:22:58 +0000 (23:22 +0800)
commitc7cbc1cd614a01b43c8ea5db0723fd5738978b6e
tree6e9ef0c97ae14fb5889dc5e9e6b363fb61471b49
parenta62c85dbabf31296bda9c6c37cbccf75a1735438
generic: test for number of bytes used by files after buffered writes

Test that a filesystem's implementation of the stat(2) system call
reports correct values for the number of blocks allocated for a file
when there are delayed allocations.

This test is motivated by a bug in btrfs which is fixed by the
following path for the linux kernel:

 "Btrfs: fix reported number of inode blocks"

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/422 [new file with mode: 0755]
tests/generic/422.out [new file with mode: 0644]
tests/generic/group