[LTP] [PATCH] [RFC] zram01: Fix on ppc64le

Cyril Hrubis
2017-08-15T12:57:31Z

Hi!
> Other than picking a number by ourselves, nothing comes to mind.
> Numbers from mkfs.btrfs error message seem too low, even 2.5x
> larger number still fails:
>
> # modprobe brd rd_nr=1 rd_size=100000
> # mkfs.btrfs /dev/ram0
> btrfs-progs v4.9.1
> See http://btrfs.wiki.kernel.org for more information.
>
> ERROR: not enough free space to allocate chunk

Now that you mention it I remember some patches for mkfs.btrfs that
fixed the minimal FS size computation. So I guess that hardcoding 384MB
would be a bit safer.