Files
apfstests/tests/generic/471.out
T
Goldwyn Rodrigues 6a2fd57fb8 generic: Test RWF_NOWAIT
Tests the RWF_NOWAIT flag so the I/O returns immediately with
-EAGAIN on a new file since it requires block allocation.

It creates a file, syncs it, and overwrites the file with
RWF_NOWAIT.  This should succeed.

Finally, read the contents to make sure the overwrite is successful.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
2017-12-14 12:39:57 +08:00

14 lines
534 B
Plaintext

QA output created by 471
pwrite: Resource temporarily unavailable
wrote 8388608/8388608 bytes at offset 0
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
RWF_NOWAIT time is within limits.
00000000: aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
*
00200000: bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb ................
*
00300000: aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
*
read 8388608/8388608 bytes at offset 0
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)