mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
8ddf4d1a1e
Local version of fstrim was dropped so that we depend on upstream version which is now available via FSTRIM_PROG. _require_fstrim was added to check if fstrim is available in the system and _test_batched_discard to check if we can run fstrim on certain mountpoint. Also tests 251 and 260 were modified to reflect this change. Signed-off-by: Tomas Racek <tracek@redhat.com> Reviewed-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Rich Johnston <rjohnston@sgi.com>
15 lines
655 B
Plaintext
15 lines
655 B
Plaintext
QA output created by 260
|
|
[+] Start beyond the end of fs (should fail)
|
|
fstrim: SCRATCH_MNT: FITRIM ioctl failed: Invalid argument
|
|
[+] Start beyond the end of fs with len set (should fail)
|
|
fstrim: SCRATCH_MNT: FITRIM ioctl failed: Invalid argument
|
|
[+] Start = 2^64-1 (should fail)
|
|
fstrim: SCRATCH_MNT: FITRIM ioctl failed: Invalid argument
|
|
[+] Start = 2^64-1 and len is set (should fail)
|
|
fstrim: SCRATCH_MNT: FITRIM ioctl failed: Invalid argument
|
|
[+] Default length (should succeed)
|
|
[+] Default length with start set (should succeed)
|
|
[+] Length beyond the end of fs (should succeed)
|
|
[+] Length beyond the end of fs with start set (should succeed)
|
|
Test done
|