[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1644731533.84685.1559938164477.JavaMail.zimbra@nod.at>
Date: Fri, 7 Jun 2019 22:09:24 +0200 (CEST)
From: Richard Weinberger <richard@....at>
To: Emil Lenngren <emil.lenngren@...il.com>
Cc: linux-mtd <linux-mtd@...ts.infradead.org>,
Sebastian Andrzej Siewior <sebastian@...akpoint.cc>,
linux-kernel <linux-kernel@...r.kernel.org>,
Michele Dionisio <michele.dionisio@...il.com>
Subject: Re: [PATCH] ubifs: Add support for zstd compression.
Emil,
----- Ursprüngliche Mail -----
> In fs/ubifs/sb.c we have
>
> static int get_default_compressor(struct ubifs_info *c)
> {
> if (ubifs_compr_present(c, UBIFS_COMPR_LZO))
> return UBIFS_COMPR_LZO;
>
> if (ubifs_compr_present(c, UBIFS_COMPR_ZLIB))
> return UBIFS_COMPR_ZLIB;
>
> return UBIFS_COMPR_NONE;
> }
>
> Maybe add an entry for zstd here as well?
Where would you add it? If we add it after UBIFS_COMPR_ZLIB,
it will effectively never get selected, unless someone builds a kernel
without lzo and zlib but zstd.
If we add it before UBIFS_COMPR_ZLIB, it will be used always and users
end up with unreadable files if they reboot to an older kernel.
Please note that we didn't raise the UBIFS format version for zstd.
So I'm not sure what is the best choice for the default filesystem.
Thanks,
//richard
Powered by blists - more mailing lists