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:32:08 +0000 (07:32 +0100)
commitf9cf17836ec36f50583514e912ebf276ed40518b
tree86702b854e04501800b263731f32e510c0c88e5c
parent8025fd0706c850e3b296dd2947c0e0e3c08d6d7d
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