Re: [PATCH] ksmbd: return the cause of a failed link
From: Namjae Jeon
Date: Sat Nov 28 2026 - 01:23:55 EST
On Sat, Nov 28, 2026 at 12:16 PM Ian Bridges <icb@xxxxxxxxxxxx> wrote:
>
> Hi Namjae,
Hi Ian,
>
> Thanks for the review. You're right that passing the errors through
> does not handle all the link failures correctly.
>
> I'd like to propose one default mapping for errors from the VFS, shared
> by the handlers, with the link path as its first user. It would cover
> the cases you named, STATUS_NOT_SUPPORTED for a filesystem without hard
> links and STATUS_TOO_MANY_LINKS. Results that a handler carries in an
> errno today, such as -EPERM for a sharing violation in smb2_open(),
> would set the status directly instead. The other handlers would move
> over later, each in its own patch.
>
> Would you like a v2 of this patch along those lines?
Sounds good, thanks!
>
> Thanks,
> Ian