linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] generic/017: skip invalid block sizes for btrfs
@ 2014-06-23 10:28 Filipe David Borba Manana
  2014-06-23 10:48 ` Satoru Takeuchi
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Filipe David Borba Manana @ 2014-06-23 10:28 UTC (permalink / raw)
  To: fstests; +Cc: linux-btrfs, Filipe David Borba Manana

In btrfs the block size (called sector size in btrfs) can not be
smaller then the page size. Therefore skip block sizes smaller
then page size if the fs is btrfs, so that the test can succeed
on btrfs (testing only with block sizes of 4kb on systems with a
page size of 4Kb).

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
---
 tests/generic/017 | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tests/generic/017 b/tests/generic/017
index 13b7254..6495be5 100755
--- a/tests/generic/017
+++ b/tests/generic/017
@@ -51,6 +51,14 @@ BLOCKS=10240
 
 for (( BSIZE = 1024; BSIZE <= 4096; BSIZE *= 2 )); do
 
+	# btrfs doesn't support block size smaller then page size
+	if [ "$FSTYP" == "btrfs" ]; then
+		if (( $BSIZE < `getconf PAGE_SIZE` )); then
+			echo "80"
+			continue
+		fi
+	fi
+
 	length=$(($BLOCKS * $BSIZE))
 	case $FSTYP in
 	xfs)
-- 
1.9.1


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

end of thread, other threads:[~2014-06-24  5:28 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-23 10:28 [PATCH] generic/017: skip invalid block sizes for btrfs Filipe David Borba Manana
2014-06-23 10:48 ` Satoru Takeuchi
2014-06-23 10:55   ` Filipe David Manana
2014-06-23 11:04     ` Satoru Takeuchi
2014-06-23 11:46   ` Brendan Hide
2014-06-23 12:35 ` Lukáš Czerner
2014-06-23 14:09   ` Lukáš Czerner
2014-06-23 17:39     ` Filipe David Manana
2014-06-24  4:26     ` Dave Chinner
2014-06-24  5:28       ` Lukáš Czerner
2014-06-23 22:23 ` Zach Brown
2014-06-24  4:58 ` Roman Mamedov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).