Re: Regression caused by commit c83ed4c9dbb3 "ubifs: Abort readdir on error"

From: Peter Rosin
Date: Wed Oct 26 2016 - 18:53:56 EST


Hi Richard,

On 2016-10-25 22:50, Richard Weinberger wrote:
> Peter,
>
> On 25.10.2016 22:09, Richard Weinberger wrote:
>>> /bin/mkdir -p /mnt/ovl/ovl
>>> /bin/mkdir -p /mnt/ovl/work
>>> # with c83ed4c9dbb3, the following mount fails with
>>> # mount: mounting overlay on /mnt/merge failed: No such file or directory
>>> /bin/mount -t overlay -o lowerdir=/,upperdir=/mnt/ovl/ovl,workdir=/mnt/ovl/work overlay /mnt/merge
>>
>> Uhhhh! Thanks for catching this.
>> I think I know what is going on, the fix exposes now internal UBIFS return codes to VFS.
>> Let me prepare a fix.
>
> Does the attached patch cure the issue?

Yup, back to normal AFAICT. Thanks for the speedy fix!

Reported-by: Peter Rosin <peda@xxxxxxxxxx>
Tested-by: Peter Rosin <peda@xxxxxxxxxx>

Cheers,
Peter