generic: test negative SEEK_HOLE/SEEK_DATA offsets
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 13 Jul 2017 19:06:41 +0000 (12:06 -0700)
committerEryu Guan <eguan@redhat.com>
Sun, 16 Jul 2017 11:15:15 +0000 (19:15 +0800)
commit6813824fd2afda668d7517c00d428289046346a1
tree67d6a7de39d65c74cf54ec3a5b85e71ad558ccfb
parent29e399dae8cdd93888225c14816811c8554957f1
generic: test negative SEEK_HOLE/SEEK_DATA offsets

Check that we get -ENXIO if the user calls SEEK_HOLE/SEEK_DATA with
a negative file offset.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
src/seek_sanity_test.c
tests/generic/448 [new file with mode: 0755]
tests/generic/448.out [new file with mode: 0644]
tests/generic/group