]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
afs: Return ENOENT if no cell DNS record can be found
authorDavid Howells <dhowells@redhat.com>
Thu, 26 Oct 2023 00:25:07 +0000 (01:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 3 Dec 2023 06:31:22 +0000 (07:31 +0100)
commit84ebfbed3ae055e516e8e7204697207b60d7898d
treeb699c71a3e0ec9c75647010c0fb09b590a0272dc
parent6aeac88a45de1cf7576be1d4255c8c4cd176c19d
afs: Return ENOENT if no cell DNS record can be found

[ Upstream commit 0167236e7d66c5e1e85d902a6abc2529b7544539 ]

Make AFS return error ENOENT if no cell SRV or AFSDB DNS record (or
cellservdb config file record) can be found rather than returning
EDESTADDRREQ.

Also add cell name lookup info to the cursor dump.

Fixes: d5c32c89b208 ("afs: Fix cell DNS lookup")
Reported-by: Markus Suvanto <markus.suvanto@gmail.com>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=216637
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/afs/vl_rotate.c