This commit executes sanity tests for all valid sectorsize/nodesize
combinations.

Signed-off-by: Chandan Rajendra <chan...@linux.vnet.ibm.com>
---
 fs/btrfs/tests/btrfs-tests.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/fs/btrfs/tests/btrfs-tests.c b/fs/btrfs/tests/btrfs-tests.c
index dca90d6..0f2afb6 100644
--- a/fs/btrfs/tests/btrfs-tests.c
+++ b/fs/btrfs/tests/btrfs-tests.c
@@ -261,13 +261,19 @@ int btrfs_run_sanity_tests(void)
        int ret, i;
        u32 sectorsize, nodesize;
        u32 test_sectorsize[] = {
-               PAGE_SIZE,
+               4096,
+               8192,
+               16384,
+               32768,
+               65536,
        };
        ret = btrfs_init_test_fs();
        if (ret)
                return ret;
        for (i = 0; i < ARRAY_SIZE(test_sectorsize); i++) {
                sectorsize = test_sectorsize[i];
+               if (sectorsize > PAGE_SIZE)
+                       break;
                for (nodesize = sectorsize;
                     nodesize <= BTRFS_MAX_METADATA_BLOCKSIZE;
                     nodesize <<= 1) {
-- 
2.5.5

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

Reply via email to