[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAFLxGvy-0-A1Ta1vf=o4q0tcJAdr+uv9eQc7UrnwqF9NkJiWUw@mail.gmail.com>
Date: Fri, 2 Nov 2018 21:15:06 +0100
From: Richard Weinberger <richard.weinberger@...il.com>
To: danielwa@...co.com
Cc: Al Viro <viro@...iv.linux.org.uk>, nkela@...co.com,
xe-linux-external@...co.com, LKML <linux-kernel@...r.kernel.org>,
"linux-mtd @ lists . infradead . org" <linux-mtd@...ts.infradead.org>,
Rod Whitby <rod@...tby.id.au>,
David Woodhouse <dwmw2@...radead.org>
Subject: Re: [PATCH] Make JFFS2 endianness configurable
On Fri, Nov 2, 2018 at 3:04 PM Daniel Walker <danielwa@...co.com> wrote:
> Do you have any thought on how to implement it ? I was think abstracting the
> endian functions in the nodelist.h
Yes, see what UFS does.
> static inline jint16_t cpu_to_je16(jint16_t x) {
> if (check_big_endian()) {
> return cpu_to_be16(x);
> } else if (check_little_endian()) {
> return cpu_to_le16(x);
> }
> }
>
> but how would you setup the checking ?
Make it a mount option and store the endianness mode in the super block.
--
Thanks,
//richard
Powered by blists - more mailing lists