2019-03-07 00:46:37

by Richard Sharpe

[permalink] [raw]
Subject: Patch: Provide the offending UID/GID/name for which mapping fails we can debug the reasons

Hi folks,

It is annoying to see these messages in /var/log/messages:

2019-03-04 23:15:23 nfsidmap[25468]: name_lookup: nfs4_gid_to_name:
failed: Unknown error -2

because you have no idea what UID/GID/name failed.

Attached is a git-format-patch patch to add the additional info to
those error messages.

It does not add any new messages.

Let me know what you think.

--
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)(传说杜康是酒的发明者)


Attachments:
0001-Provide-the-offending-UID-GID-name-for-which-mapping.patch (1.39 kB)

2019-03-11 18:00:41

by Steve Dickson

[permalink] [raw]
Subject: Re: Patch: Provide the offending UID/GID/name for which mapping fails we can debug the reasons



On 3/6/19 7:46 PM, Richard Sharpe wrote:
> Hi folks,
>
> It is annoying to see these messages in /var/log/messages:
>
> 2019-03-04 23:15:23 nfsidmap[25468]: name_lookup: nfs4_gid_to_name:
> failed: Unknown error -2
>
> because you have no idea what UID/GID/name failed.
>
> Attached is a git-format-patch patch to add the additional info to
> those error messages.
>
> It does not add any new messages.
>
> Let me know what you think.
>
Committed...

Please, next time inline the patch.

steved.