* [LTP] [PATCH] zram: extend the zram3 disksize to 40MB
@ 2016-07-11 11:57 Li Wang
2016-07-13 8:59 ` Cyril Hrubis
0 siblings, 1 reply; 4+ messages in thread
From: Li Wang @ 2016-07-11 11:57 UTC (permalink / raw)
To: ltp
It failed to format btrfs on /dev/zram3 device since the
disk size is too small (btrfs-progs is v4.4.1).
The error msg we catched:
zram01 3 TINFO : make ext3 filesystem on /dev/zram0
zram01 3 TINFO : make ext4 filesystem on /dev/zram1
zram01 3 TINFO : make xfs filesystem on /dev/zram2
zram01 3 TINFO : make btrfs filesystem on /dev/zram3
'/dev/zram3' is too small to make a usable filesystem
Minimum size for each btrfs device is 41943040.
btrfs-progs v4.4.1
See http://btrfs.wiki.kernel.org for more information.
zram01 3 TFAIL : failed to make btrfs on /dev/zram3
zram01 4 TINFO : zram cleanup
Signed-off-by: Li Wang <liwang@redhat.com>
---
testcases/kernel/device-drivers/zram/zram01.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testcases/kernel/device-drivers/zram/zram01.sh b/testcases/kernel/device-drivers/zram/zram01.sh
index 26dae90..caa0e05 100755
--- a/testcases/kernel/device-drivers/zram/zram01.sh
+++ b/testcases/kernel/device-drivers/zram/zram01.sh
@@ -39,8 +39,8 @@ zram_max_streams="2 3 5 8"
# not support mem suffixes, in some newer kernels, they use
# memparse() which supports mem suffixes. So here we just use
# bytes to make sure everything works correctly.
-zram_sizes="26214400 26214400 26214400 26214400" # 25MB
-zram_mem_limits="25M 25M 25M 25M"
+zram_sizes="26214400 26214400 26214400 41943040" # 25MB, 40MB for btrfs
+zram_mem_limits="25M 25M 25M 40M"
zram_filesystems="ext3 ext4 xfs btrfs"
zram_algs="lzo lzo lzo lzo"
--
1.8.3.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [LTP] [PATCH] zram: extend the zram3 disksize to 40MB
2016-07-11 11:57 [LTP] [PATCH] zram: extend the zram3 disksize to 40MB Li Wang
@ 2016-07-13 8:59 ` Cyril Hrubis
2016-07-25 11:15 ` Alexey Kodanev
0 siblings, 1 reply; 4+ messages in thread
From: Cyril Hrubis @ 2016-07-13 8:59 UTC (permalink / raw)
To: ltp
Hi!
> It failed to format btrfs on /dev/zram3 device since the
> disk size is too small (btrfs-progs is v4.4.1).
>
> The error msg we catched:
>
> zram01 3 TINFO : make ext3 filesystem on /dev/zram0
> zram01 3 TINFO : make ext4 filesystem on /dev/zram1
> zram01 3 TINFO : make xfs filesystem on /dev/zram2
> zram01 3 TINFO : make btrfs filesystem on /dev/zram3
> '/dev/zram3' is too small to make a usable filesystem
> Minimum size for each btrfs device is 41943040.
> btrfs-progs v4.4.1
> See http://btrfs.wiki.kernel.org for more information.
> zram01 3 TFAIL : failed to make btrfs on /dev/zram3
> zram01 4 TINFO : zram cleanup
I've got the exact same failure with btrfs-progs 4.5.1 just recently,
the fix looks good to me.
And btw it looks like we need to increase the default loop device size
again since btrfs-progs 4.5.1 seems to request at least 136MB for mkfs01
test...
--
Cyril Hrubis
chrubis@suse.cz
^ permalink raw reply [flat|nested] 4+ messages in thread
* [LTP] [PATCH] zram: extend the zram3 disksize to 40MB
2016-07-13 8:59 ` Cyril Hrubis
@ 2016-07-25 11:15 ` Alexey Kodanev
2016-07-25 11:25 ` Alexey Kodanev
0 siblings, 1 reply; 4+ messages in thread
From: Alexey Kodanev @ 2016-07-25 11:15 UTC (permalink / raw)
To: ltp
Hi,
On 07/13/2016 11:59 AM, Cyril Hrubis wrote:
> Hi!
>> It failed to format btrfs on /dev/zram3 device since the
>> disk size is too small (btrfs-progs is v4.4.1).
>>
>> The error msg we catched:
>>
>> zram01 3 TINFO : make ext3 filesystem on /dev/zram0
>> zram01 3 TINFO : make ext4 filesystem on /dev/zram1
>> zram01 3 TINFO : make xfs filesystem on /dev/zram2
>> zram01 3 TINFO : make btrfs filesystem on /dev/zram3
>> '/dev/zram3' is too small to make a usable filesystem
>> Minimum size for each btrfs device is 41943040.
>> btrfs-progs v4.4.1
>> See http://btrfs.wiki.kernel.org for more information.
>> zram01 3 TFAIL : failed to make btrfs on /dev/zram3
>> zram01 4 TINFO : zram cleanup
> I've got the exact same failure with btrfs-progs 4.5.1 just recently,
> the fix looks good to me.
Looks good to me too. Patch applied.
Best regards,
Alexey
> And btw it looks like we need to increase the default loop device size
> again since btrfs-progs 4.5.1 seems to request at least 136MB for mkfs01
> test...
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [LTP] [PATCH] zram: extend the zram3 disksize to 40MB
2016-07-25 11:15 ` Alexey Kodanev
@ 2016-07-25 11:25 ` Alexey Kodanev
0 siblings, 0 replies; 4+ messages in thread
From: Alexey Kodanev @ 2016-07-25 11:25 UTC (permalink / raw)
To: ltp
On 07/25/2016 02:15 PM, Alexey Kodanev wrote:
> Hi,
> On 07/13/2016 11:59 AM, Cyril Hrubis wrote:
>> Hi!
>>> It failed to format btrfs on /dev/zram3 device since the
>>> disk size is too small (btrfs-progs is v4.4.1).
>>>
>>> The error msg we catched:
>>>
>>> zram01 3 TINFO : make ext3 filesystem on /dev/zram0
>>> zram01 3 TINFO : make ext4 filesystem on /dev/zram1
>>> zram01 3 TINFO : make xfs filesystem on /dev/zram2
>>> zram01 3 TINFO : make btrfs filesystem on /dev/zram3
>>> '/dev/zram3' is too small to make a usable filesystem
>>> Minimum size for each btrfs device is 41943040.
>>> btrfs-progs v4.4.1
>>> See http://btrfs.wiki.kernel.org for more information.
>>> zram01 3 TFAIL : failed to make btrfs on /dev/zram3
>>> zram01 4 TINFO : zram cleanup
>> I've got the exact same failure with btrfs-progs 4.5.1 just recently,
>> the fix looks good to me.
>
> Looks good to me too. Patch applied.
Also noted that in case btrfs is not supported, ext2 will be used with 40MB.
I think it shouldn't be a problem, just one more change that patch made.
>
> Best regards,
> Alexey
>
>> And btw it looks like we need to increase the default loop device size
>> again since btrfs-progs 4.5.1 seems to request at least 136MB for mkfs01
>> test...
>>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-07-25 11:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-11 11:57 [LTP] [PATCH] zram: extend the zram3 disksize to 40MB Li Wang
2016-07-13 8:59 ` Cyril Hrubis
2016-07-25 11:15 ` Alexey Kodanev
2016-07-25 11:25 ` Alexey Kodanev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox