mirror of
https://github.com/torvalds/linux.git
synced 2026-10-10 20:38:02 +02:00
ksmbd: quiet mdssvc RPC log spam
macOS routinely probes the mdssvc RPC pipe to check for Spotlight search support. __rpc_method() already falls through to returning 0 (unsupported) for it via the default case, but that path also logs "Unsupported RPC: mdssvc" via pr_err on every single probe -- which happens often enough during normal macOS browsing/backup activity to spam the kernel log. Add an explicit case that returns the same value without the log line; behavior is unchanged, this only removes noise for an expected, routine client behavior. Assisted-by: Claude:claude-sonnet-5 Signed-off-by: Gael Blivet <gael.blivet@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
This commit is contained in:
parent
9870bbb55a
commit
92db30225e
|
|
@ -308,6 +308,9 @@ static int __rpc_method(char *rpc_name)
|
|||
if (!strcmp(rpc_name, "\\lsarpc") || !strcmp(rpc_name, "lsarpc"))
|
||||
return KSMBD_RPC_LSARPC_METHOD_INVOKE;
|
||||
|
||||
if (!strcmp(rpc_name, "\\mdssvc") || !strcmp(rpc_name, "mdssvc"))
|
||||
return 0; /* mdssvc unsupported: quiet, expected macOS probe */
|
||||
|
||||
pr_err("Unsupported RPC: %s\n", rpc_name);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user