From: Ian Bridges <icb@fastmail.org>
To: linkinjeon@kernel.org
Cc: senozhatsky@chromium.org, tom@talpey.com,
chenxiaosong@chenxiaosong.com, linux-cifs@vger.kernel.org,
linux-kernel@vger.kernel.org, Ian Bridges <icb@fastmail.org>
Subject: Re: [PATCH] ksmbd: return the cause of a failed link
Date: Fri, 27 Nov 2026 21:16:31 -0600 [thread overview]
Message-ID: <20261128031631.1713665-1-icb@fastmail.org> (raw)
In-Reply-To: <CAKYAXd-qC2UZbsOUEWvt3mhViwOyvHEqHt9hLK5+aiiuMC-4iQ@mail.gmail.com>
Hi Namjae,
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?
Thanks,
Ian
prev parent reply other threads:[~2026-11-28 3:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 1:39 Ian Bridges
2026-11-28 2:27 ` Namjae Jeon
2026-11-28 3:16 ` Ian Bridges [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261128031631.1713665-1-icb@fastmail.org \
--to=icb@fastmail.org \
--cc=chenxiaosong@chenxiaosong.com \
--cc=linkinjeon@kernel.org \
--cc=linux-cifs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=senozhatsky@chromium.org \
--cc=tom@talpey.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®