Re: [PATCH] ubifs: fix read fail but return ok

From: Richard Weinberger
Date: Wed Apr 07 2021 - 18:11:37 EST


On Wed, Mar 31, 2021 at 8:29 AM wangfangpeng <wangfangpeng1@xxxxxxxxxx> wrote:
> do_readpage() may return err, but ubifs_readpage() always return ok.
> The vfs will ignore the err happen in ubifs.

Are you sure about that?
In case of an error UBIFS sets the error flag of the page and does not
mark it as uptodate,
so vfs will emit -EIO. At least this is the theory. :-)

--
Thanks,
//richard