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

Jan Stancek
2017-08-15T12:48:31Z

----- Original Message -----
> Hi!
> > > Looks like we went off-topic and the zram01.sh test wasn't fixed in the
> > > end and it still fails on ppc64le.
> > >
> > > I guess I can prepare a patch that checks if there is enough free RAM
> > > for a minimal Btrfs fs but I would still like to obtain the minimal size
> > > from mkfs.btrfs. Does that sound reasonable?
> >
> > Do you mean these messages from mkfs.btrfs:
> > "ERROR: minimum size for each btrfs device is 41943040"
> > or some other way to find minimal supported size?
>
> Do do not know other way that the one used in the original patch, i.e.
> running mkfs.btrfs on /dev/null and parsing the output.
>
> Or is there something better than that?

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

Regards,
Jan