All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] generic/038: require fallocate support and test for trim support
@ 2014-12-15 22:26 Dushan Tcholich
  2014-12-15 20:49 ` Dave Chinner
  0 siblings, 1 reply; 4+ messages in thread
From: Dushan Tcholich @ 2014-12-15 22:26 UTC (permalink / raw)
  To: fstests

Add tests for allocate support and test if TRIM really works on tested 
partition.

Signed-off-by: Dushan Tcholich <dusanc@gmail.com>

--- xfstests.orig/tests/generic/038	2014-12-14 15:18:00.000000000 +0100
+++ xfstests/tests/generic/038	2014-12-15 23:21:11.000000000 +0100
@@ -70,6 +70,10 @@
 _supported_os Linux
 _require_scratch
 _require_fstrim
+_require_xfs_io_command "falloc"
+_require_xfs_io_command "truncate"
+
+_test_batched_discard $SCRATCH_MNT || _notrun "FITRIM not supported on $SCRATCH_DEV"
 
 rm -f $seqres.full
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-12-15 22:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-15 22:26 [PATCH] generic/038: require fallocate support and test for trim support Dushan Tcholich
2014-12-15 20:49 ` Dave Chinner
2014-12-15 21:45   ` Theodore Ts'o
2014-12-15 22:07     ` Dave Chinner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.