generic: Partial direct write test
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Thu, 7 Dec 2017 16:00:44 +0000 (10:00 -0600)
committerEryu Guan <eguan@redhat.com>
Thu, 14 Dec 2017 04:39:57 +0000 (12:39 +0800)
commit1ed1aad2f879c74966a70dfda745abdb61a4675a
treecfdbb6458ea1d7c9ff88c9001ac536947f376664
parent6a2fd57fb82167d33d5d51a783468fd6e5a06186
generic: Partial direct write test

Getting an error midway through a direct write would return an error
and the error-code is returned in the write() call. However, partial
data is over-written during the call.

This tests simulates the ENOSPC error to check for partial direct
write consistency.

[eguan: use $AWK_PROG instead of bare awk]

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/472 [new file with mode: 0755]
tests/generic/472.out [new file with mode: 0644]
tests/generic/group