Skip to contentSkip to conversation

generic/017: skip invalid block sizes for btrfs

PATCH In review Filipe David Borba Manana 7 participants 12 messages Jun 23, 2014 – Jun 24, 2014 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 generic/017: skip invalid block sizes for btrfs

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).

---
 tests/generic/017 | 8 ++++++++
 1 file changed, 8 insertions(+)
tests/generic/017 +8 -0
index 13b7254..6495be5 100755
@@ -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)
Signature · 1 line
1.9.1
#1 lore raw

Hi Filipe,

Quoted 7 lines · 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).

I consider it doesn't work since this test is not for Btrfs. Please see the following code.

tests/generic/017:
===
for (( BSIZE = 1024; BSIZE <= 4096; BSIZE *= 2 )); do

	length=$(($BLOCKS * $BSIZE))
	case $FSTYP in
	xfs)
	_scratch_mkfs -b size=$BSIZE >> $seqres.full 2>&1
	;;
	ext4)
	_scratch_mkfs -b $BSIZE >> $seqres.full 2>&1
	;;
	esac
	_scratch_mount >> $seqres.full 2>&1

===

There is no btrfs here.

This test was moved to shared/005 to generic/017
at 21723cdbf303e031d6429f67fec9768750a5db7d.

Original supported fs is here.
===============================================================================
supported_fs xfs ext4
===============================================================================

I suspect that Lukas moved this test to generic/ by mistake or forgot to add "$FSTYP == btrfs" case.

Thanks,
Satoru

Quoted 24 lines
---
  tests/generic/017 | 8 ++++++++
  1 file changed, 8 insertions(+)
tests/generic/017 +8 -0
index 13b7254..6495be5 100755
@@ -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)
#2 lore raw
Quoted 9 lines · Satoru Takeuchi

Hi Filipe,

Quoted 6 lines · 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).

Quoted 3 lines
Quoted 1 line

I consider it doesn't work since this test is not for Btrfs.

Did you try it out (together with the corresponding change for btrfs to support collapse range) or is just code analysis?
For me it works.

Quoted 16 lines

Please see the following code.

tests/generic/017:
===
for (( BSIZE = 1024; BSIZE <= 4096; BSIZE *= 2 )); do

        length=$(($BLOCKS * $BSIZE))
        case $FSTYP in
        xfs)
        _scratch_mkfs -b size=$BSIZE >> $seqres.full 2>&1
        ;;
        ext4)
        _scratch_mkfs -b $BSIZE >> $seqres.full 2>&1
        ;;
        esac
        _scratch_mount >> $seqres.full 2>&1
Quoted 3 lines

===

There is no btrfs here.

Yes...
That means it doesn't create a brand new fs and just uses the currently one.

Thanks.

Quoted 40 lines

This test was moved to shared/005 to generic/017
at 21723cdbf303e031d6429f67fec9768750a5db7d.

Original supported fs is here.
===============================================================================
supported_fs xfs ext4
===============================================================================

I suspect that Lukas moved this test to generic/ by mistake or forgot to add "$FSTYP == btrfs" case.

Thanks,
Satoru

Quoted 24 lines
---
  tests/generic/017 | 8 ++++++++
  1 file changed, 8 insertions(+)
tests/generic/017 +8 -0
index 13b7254..6495be5 100755
@@ -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)
Signature · 5 lines
Filipe David Manana,

"Reasonable men adapt themselves to the world.
 Unreasonable men adapt the world to themselves.
 That's why all progress depends on unreasonable men."
#3 lore raw

Hi Filipe,

Quoted 11 lines · Filipe David Manana
Quoted 9 lines · Satoru Takeuchi

Hi Filipe,

Quoted 6 lines · 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).

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

I consider it doesn't work since this test is not for Btrfs.

Did you try it out (together with the corresponding change for btrfs to support collapse range) or is just code analysis?

I commented it just by code analysis.

Quoted 20 lines

For me it works.

Quoted 18 lines

Please see the following code.

tests/generic/017:
===
for (( BSIZE = 1024; BSIZE <= 4096; BSIZE *= 2 )); do

         length=$(($BLOCKS * $BSIZE))
         case $FSTYP in
         xfs)
         _scratch_mkfs -b size=$BSIZE >> $seqres.full 2>&1
         ;;
         ext4)
         _scratch_mkfs -b $BSIZE >> $seqres.full 2>&1
         ;;
         esac
         _scratch_mount >> $seqres.full 2>&1

===

Quoted 4 lines
Quoted 1 line

There is no btrfs here.

Yes...
That means it doesn't create a brand new fs and just uses the currently one.

Yes. I think so too.

Thanks,
Satoru

Quoted 46 lines

Thanks.

Quoted 40 lines

This test was moved to shared/005 to generic/017
at 21723cdbf303e031d6429f67fec9768750a5db7d.

Original supported fs is here.
===============================================================================
supported_fs xfs ext4
===============================================================================

I suspect that Lukas moved this test to generic/ by mistake or forgot to add "$FSTYP == btrfs" case.

Thanks,
Satoru

Quoted 24 lines
---
   tests/generic/017 | 8 ++++++++
   1 file changed, 8 insertions(+)
tests/generic/017 +8 -0
index 13b7254..6495be5 100755
@@ -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)
#4 lore raw
In reply to Satoru Takeuchi

Not subscribed to fstests so not sure if this will reach that mailing list...

I feel Takeuchi's instincts are right, even if the analysis *may* be wrong. As is it looks like there should be a btrfs) selector inside the case.

Quoted 73 lines · Satoru Takeuchi

Hi Filipe,

Quoted 7 lines · 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).

I consider it doesn't work since this test is not for Btrfs. Please see the following code.

tests/generic/017:
===
for (( BSIZE = 1024; BSIZE <= 4096; BSIZE *= 2 )); do

	length=$(($BLOCKS * $BSIZE))
	case $FSTYP in
	xfs)
	_scratch_mkfs -b size=$BSIZE >> $seqres.full 2>&1
	;;
	ext4)
	_scratch_mkfs -b $BSIZE >> $seqres.full 2>&1
	;;
	esac
	_scratch_mount >> $seqres.full 2>&1

===

There is no btrfs here.

This test was moved to shared/005 to generic/017
at 21723cdbf303e031d6429f67fec9768750a5db7d.

Original supported fs is here.
===============================================================================
supported_fs xfs ext4
===============================================================================

I suspect that Lukas moved this test to generic/ by mistake or forgot to add "$FSTYP == btrfs" case.

Thanks,
Satoru

Quoted 14 lines
---
   tests/generic/017 | 8 ++++++++
   1 file changed, 8 insertions(+)
tests/generic/017 +1 -0
index 13b7254..6495be5 100755
@@ -51,6 +51,14 @@ BLOCKS=10240
 
   for (( BSIZE = 1024; BSIZE <= 4096; BSIZE *= 2 )); do
 
+	# btrfs doesn't support block size smaller then page size

tests/generic/017 BLOCKS=10240 · line 64

Quoted 10 lines
tests/generic/017 +7 -0
+	if [ "$FSTYP" == "btrfs" ]; then
+		if (( $BSIZE < `getconf PAGE_SIZE` )); then
+			echo "80"
+			continue
+		fi
+	fi
+
   	length=$(($BLOCKS * $BSIZE))
   	case $FSTYP in
   	xfs)

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 4 lines
__________
Brendan Hide
http://swiftspirit.co.za/
http://www.webafrica.co.za/?AFF1E97
#5 lore raw
In reply to Filipe David Borba Manana
Quoted 7 lines · Filipe David Borba Manana

Date: Mon, 23 Jun 2014 11:28:00 +0100
From: Filipe David Borba Manana <[email protected]>
To: [email protected]
Cc: [email protected],
Filipe David Borba Manana <[email protected]>
Subject: [PATCH] generic/017: skip invalid block sizes for btrfs

Quoted 5 lines

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).

The test itself is wrong, it's trying to do _scratch_mkfs with different block size, but the block size might already be specified by the user (in fact it should be user responsibility to test different block sizes). In the case that mkfs can not handle multiple of the same option like mkfs.xfs for example it will fail, but the test will go on with the original file system.

The test needs to be fixed to just test the file system with options specified by the user. Also we should change _scratch_mkfs() to fail the test if the mkfs failed (no one is actually testing mkfs_status variable anyway.

Once we do that this patch will no longer be needed.

Thanks!
-Lukas

Quoted 26 lines
---
 tests/generic/017 | 8 ++++++++
 1 file changed, 8 insertions(+)
tests/generic/017 +8 -0
index 13b7254..6495be5 100755
@@ -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)
#6 lore raw
Quoted 28 lines · Lukáš Czerner

Date: Mon, 23 Jun 2014 14:35:50 +0200 (CEST)
From: Lukáš Czerner <[email protected]>
To: Filipe David Borba Manana <[email protected]>
Cc: [email protected], [email protected]
Subject: Re: [PATCH] generic/017: skip invalid block sizes for btrfs

Quoted 7 lines · Filipe David Borba Manana

Date: Mon, 23 Jun 2014 11:28:00 +0100
From: Filipe David Borba Manana <[email protected]>
To: [email protected]
Cc: [email protected],
Filipe David Borba Manana <[email protected]>
Subject: [PATCH] generic/017: skip invalid block sizes for btrfs

Quoted 5 lines

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).

The test itself is wrong, it's trying to do _scratch_mkfs with different block size, but the block size might already be specified by the user (in fact it should be user responsibility to test different block sizes). In the case that mkfs can not handle multiple of the same option like mkfs.xfs for example it will fail, but the test will go on with the original file system.

Quoted 4 lines

The test needs to be fixed to just test the file system with options specified by the user. Also we should change _scratch_mkfs() to fail the test if the mkfs failed (no one is actually testing mkfs_status variable anyway.

Correction, _scratch_mkfs_xfs() is actually testing mkfs_status and will attempt to re-run mkfs only with provided options if it failed before. But my point remains the same, block size to test should be in users hands and we should run all tests with different block sizes, if supported.

Thanks!
-Lukas

Quoted 37 lines

Once we do that this patch will no longer be needed.

Thanks!
-Lukas

Quoted 16 lines
---
 tests/generic/017 | 8 ++++++++
 1 file changed, 8 insertions(+)
tests/generic/017 +1 -0
index 13b7254..6495be5 100755
@@ -51,6 +51,14 @@ BLOCKS=10240
 
 for (( BSIZE = 1024; BSIZE <= 4096; BSIZE *= 2 )); do
 
+	# btrfs doesn't support block size smaller then page size

tests/generic/017 BLOCKS=10240 · line 64

Quoted 10 lines
tests/generic/017 +7 -0
+	if [ "$FSTYP" == "btrfs" ]; then
+		if (( $BSIZE < `getconf PAGE_SIZE` )); then
+			echo "80"
+			continue
+		fi
+	fi
+
 	length=$(($BLOCKS * $BSIZE))
 	case $FSTYP in
 	xfs)

--
To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw
Quoted 35 lines · Lukáš Czerner
Quoted 28 lines · Lukáš Czerner

Date: Mon, 23 Jun 2014 14:35:50 +0200 (CEST)
From: Lukáš Czerner <[email protected]>
To: Filipe David Borba Manana <[email protected]>
Cc: [email protected], [email protected]
Subject: Re: [PATCH] generic/017: skip invalid block sizes for btrfs

Quoted 7 lines · Filipe David Borba Manana

Date: Mon, 23 Jun 2014 11:28:00 +0100
From: Filipe David Borba Manana <[email protected]>
To: [email protected]
Cc: [email protected],
Filipe David Borba Manana <[email protected]>
Subject: [PATCH] generic/017: skip invalid block sizes for btrfs

Quoted 5 lines

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).

The test itself is wrong, it's trying to do _scratch_mkfs with different block size, but the block size might already be specified by the user (in fact it should be user responsibility to test different block sizes). In the case that mkfs can not handle multiple of the same option like mkfs.xfs for example it will fail, but the test will go on with the original file system.

Quoted 4 lines

The test needs to be fixed to just test the file system with options specified by the user. Also we should change _scratch_mkfs() to fail the test if the mkfs failed (no one is actually testing mkfs_status variable anyway.

Quoted 5 lines

Correction, _scratch_mkfs_xfs() is actually testing mkfs_status and will attempt to re-run mkfs only with provided options if it failed before. But my point remains the same, block size to test should be in users hands and we should run all tests with different block sizes, if supported.

Ok, so in other words, get rid of the block size loop and no more specific mkfs calls for each fs type?

Thanks Lukas

Quoted 41 lines

Thanks!
-Lukas

Quoted 37 lines

Once we do that this patch will no longer be needed.

Thanks!
-Lukas

Quoted 16 lines
---
 tests/generic/017 | 8 ++++++++
 1 file changed, 8 insertions(+)
tests/generic/017 +1 -0
index 13b7254..6495be5 100755
@@ -51,6 +51,14 @@ BLOCKS=10240
 
 for (( BSIZE = 1024; BSIZE <= 4096; BSIZE *= 2 )); do
 
+   # btrfs doesn't support block size smaller then page size

tests/generic/017 BLOCKS=10240 · line 64

Quoted 10 lines
tests/generic/017 +7 -0
+   if [ "$FSTYP" == "btrfs" ]; then
+           if (( $BSIZE < `getconf PAGE_SIZE` )); then
+                   echo "80"
+                   continue
+           fi
+   fi
+
    length=$(($BLOCKS * $BSIZE))
    case $FSTYP in
    xfs)

--
To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 5 lines
Filipe David Manana,

"Reasonable men adapt themselves to the world.
 Unreasonable men adapt the world to themselves.
 That's why all progress depends on unreasonable men."
#10 lore raw
In reply to Filipe David Borba Manana
Quoted 2 lines · Filipe David Borba Manana

In btrfs the block size (called sector size in btrfs) can not be smaller then the page size.

Nor larger.

commit 8d082fb727ac11930ea20bf1612e334ea7c2b697

Author: Liu Bo <[email protected]>
Date:   Tue Apr 3 09:56:53 2012 +0800

Btrfs: do not mount when we have a sectorsize unequal to PAGE_SIZE

Our code is not ready to cope with a sectorsize that's not equal to PAGE_SIZE. It will lead to hanging-on while writing something.

- z

#8 lore raw
In reply to Lukáš Czerner
Quoted 35 lines · Lukáš Czerner
Quoted 28 lines · Lukáš Czerner

Date: Mon, 23 Jun 2014 14:35:50 +0200 (CEST)
From: Lukáš Czerner <[email protected]>
To: Filipe David Borba Manana <[email protected]>
Cc: [email protected], [email protected]
Subject: Re: [PATCH] generic/017: skip invalid block sizes for btrfs

Quoted 7 lines · Filipe David Borba Manana

Date: Mon, 23 Jun 2014 11:28:00 +0100
From: Filipe David Borba Manana <[email protected]>
To: [email protected]
Cc: [email protected],
Filipe David Borba Manana <[email protected]>
Subject: [PATCH] generic/017: skip invalid block sizes for btrfs

Quoted 5 lines

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).

The test itself is wrong, it's trying to do _scratch_mkfs with different block size, but the block size might already be specified by the user (in fact it should be user responsibility to test different block sizes). In the case that mkfs can not handle multiple of the same option like mkfs.xfs for example it will fail, but the test will go on with the original file system.

Quoted 4 lines

The test needs to be fixed to just test the file system with options specified by the user. Also we should change _scratch_mkfs() to fail the test if the mkfs failed (no one is actually testing mkfs_status variable anyway.

Quoted 5 lines

Correction, _scratch_mkfs_xfs() is actually testing mkfs_status and will attempt to re-run mkfs only with provided options if it failed before. But my point remains the same, block size to test should be in users hands and we should run all tests with different block sizes, if supported.

Follow that line of reasoning to other options. If we take that argument to it's logical conclusion, no test should be able to set any mount or mkfs option because that's for the user to control. This implies we can't even have quota specific tests because they need to override the mount options (and perhaps mkfs options) the user has specified to be properly tested.

Some tests only work on specific configurations and therefore they need to be able to control the execution environment directly. Hence the behaviour of _scratch_mkfs_xfs(), where it will *attempt* to use the user provided options. However, if they conflict with what the test requires it will drop the user options and use what the test requires.

It's better that the test overrides user provided options than fail due to incompatible configuration. It makes maintenance of the tests much easier because we don't have to declare and maintain the supported list of user options for every test. Either the test works for all configurations (i.e. whatever the user sets in MKFS/MOUNT_OPTIONS), or it specifically defines the configuration it is testing.

Cheers,

Dave.

Signature · 2 lines
Dave Chinner
[email protected]
#11 lore raw
In reply to Filipe David Borba Manana
Quoted 2 lines · On Mon, 23 Jun 2014 11:28:00 +0100 Filipe David Borba Manana…

In btrfs the block size (called sector size in btrfs) can not be smaller then the page size.

Just in case anyone misses this, there is some work to address this limitation:
http://www.spinics.net/lists/linux-btrfs/msg34814.html

So perhaps keep in mind to roll-back the proposed patch after the above gets finalized and merged.

Signature · 2 lines
With respect,
Roman
#9 lore raw
In reply to Dave Chinner
Quoted 49 lines · Dave Chinner

Date: Tue, 24 Jun 2014 14:26:46 +1000
From: Dave Chinner <[email protected]>
To: Lukáš Czerner <[email protected]>
Cc: Filipe David Borba Manana <[email protected]>, [email protected],
[email protected]
Subject: Re: [PATCH] generic/017: skip invalid block sizes for btrfs

Quoted 35 lines · Lukáš Czerner
Quoted 28 lines · Lukáš Czerner

Date: Mon, 23 Jun 2014 14:35:50 +0200 (CEST)
From: Lukáš Czerner <[email protected]>
To: Filipe David Borba Manana <[email protected]>
Cc: [email protected], [email protected]
Subject: Re: [PATCH] generic/017: skip invalid block sizes for btrfs

Quoted 7 lines · Filipe David Borba Manana

Date: Mon, 23 Jun 2014 11:28:00 +0100
From: Filipe David Borba Manana <[email protected]>
To: [email protected]
Cc: [email protected],
Filipe David Borba Manana <[email protected]>
Subject: [PATCH] generic/017: skip invalid block sizes for btrfs

Quoted 5 lines

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).

The test itself is wrong, it's trying to do _scratch_mkfs with different block size, but the block size might already be specified by the user (in fact it should be user responsibility to test different block sizes). In the case that mkfs can not handle multiple of the same option like mkfs.xfs for example it will fail, but the test will go on with the original file system.

Quoted 4 lines

The test needs to be fixed to just test the file system with options specified by the user. Also we should change _scratch_mkfs() to fail the test if the mkfs failed (no one is actually testing mkfs_status variable anyway.

Quoted 5 lines

Correction, _scratch_mkfs_xfs() is actually testing mkfs_status and will attempt to re-run mkfs only with provided options if it failed before. But my point remains the same, block size to test should be in users hands and we should run all tests with different block sizes, if supported.

Quoted 6 lines

Follow that line of reasoning to other options. If we take that argument to it's logical conclusion, no test should be able to set any mount or mkfs option because that's for the user to control. This implies we can't even have quota specific tests because they need to override the mount options (and perhaps mkfs options) the user has specified to be properly tested.

I acknowledge that there are tests that actually needs to set its own options. That's usually in the nature of the test, but it's not the case with this particular test. Here, it's not needed and in my view it's wrong because it brings unnecessary limitations and problems.

Quoted 8 lines

Some tests only work on specific configurations and therefore they need to be able to control the execution environment directly. Hence the behaviour of _scratch_mkfs_xfs(), where it will *attempt* to use the user provided options. However, if they conflict with what the test requires it will drop the user options and use what the test requires.

Quoted 7 lines

It's better that the test overrides user provided options than fail due to incompatible configuration. It makes maintenance of the tests much easier because we don't have to declare and maintain the supported list of user options for every test. Either the test works for all configurations (i.e. whatever the user sets in MKFS/MOUNT_OPTIONS), or it specifically defines the configuration it is testing.

I do agree with that, I do not think I've ever said otherwise. I was addressing this particular test where the specific configuration is not needed.

-Lukas

Quoted 5 lines

Cheers,

Dave.