[PATCH] mkfs.ubifs: make failure to list extended attributes quiet and non-fatal

Pavel Roskin plroskin at gmail.com
Mon Oct 23 16:17:21 PDT 2017


Hello David,

On Mon, Oct 23, 2017 at 2:58 PM, David Oberhollenzer
<david.oberhollenzer at sigma-star.at> wrote:
> Hi,
>
> On 10/20/2017 09:28 PM, Pavel Roskin wrote:
>> mkfs.ubifs treats all errors returned by llistxattr() except ENOENT as
>> fatal. In particular, if the host system doesn't support extended
>> attributes, mkfs.ubifs would fail. It happens even without any flags that
>> would explicitly request extended attribute support.
>>
> Would it also work if we simply extended the check you patched to
> test for ENOTSUP in addition?

Yes, that would work. I checked the OpenEmbedded build with the new
patch, it passes. The error is called EOPNOTSUPP. I can submit the
patch if that's the approach you prefer.

-- 
Regards,
Pavel Roskin



More information about the linux-mtd mailing list