]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
260: Check proper FITRIM argument handling
authorLukas Czerner <lczerner@redhat.com>
Mon, 26 Sep 2011 07:14:04 +0000 (07:14 +0000)
committerAlex Elder <aelder@sgi.com>
Tue, 27 Sep 2011 04:01:24 +0000 (23:01 -0500)
commitd6f51d92893497250f1b440e321938a609bfb58b
tree1173a6c953bc7457055a7bfe0d77dc5fe123c3ca
parenta6dd1d877bc400550bba634b7e67bc7b83b31261
260: Check proper FITRIM argument handling

This test suppose to validate that file systems are using the fitrim
arguments right. It checks that the fstrim returns EINVAl in case that
the start of the range is beyond the end of the file system, and also
that the fstrim works without an error if the length of the range is
bigger than the file system (it should be truncated to the file system
length automatically within the fitrim implementation).

This test should also catch common problem with overflow of start+len.
Some file systems (ext4,xfs) had overflow problems in the past so there
is a specific test for it (for ext4 and xfs) as well as generic test for
other file systems, but it would be nice if other fs can add their
specific checks if this problem does apply to them as well.

[Added call to _require_math. -Alex]

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
260 [new file with mode: 0644]
260.out [new file with mode: 0644]
group