ubifs: Fix default compression selection in ubifs
authorGabor Juhos <juhosg@openwrt.org>
Sun, 9 Dec 2018 17:12:13 +0000 (18:12 +0100)
committerRichard Weinberger <richard@nod.at>
Thu, 13 Dec 2018 21:09:19 +0000 (22:09 +0100)
commitd62e98ed1efcaa94caa004f622944afdce5f1c3c
treef34a80a2275066de82f469691ccabc52d34c4e46
parent6554a56f352ee2a6ce295fcfb39889eb9ecc79cf
ubifs: Fix default compression selection in ubifs

When ubifs is build without the LZO compressor and no compressor is
given the creation of the default file system will fail. before
selection the LZO compressor check if it is present and if not fall back
to the zlib or none.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/sb.c