]> www.infradead.org Git - users/jedix/linux-maple.git/commit
smb: client: provide dns_resolve_{unc,name} helpers
authorPaulo Alcantara <pc@manguebit.com>
Tue, 7 Jan 2025 15:22:50 +0000 (12:22 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 20 Jan 2025 01:34:00 +0000 (19:34 -0600)
commit4b1b4c8be9dee9aa1a751cfa3954b2fcfdfe9c3d
tree0c230c8c7abcf70e6aac040138fa4d54e0de67a6
parent489d1523105e14e7a2c6e68205e05397e3b714fb
smb: client: provide dns_resolve_{unc,name} helpers

Some places pass hostnames rather than UNC paths to resolve them to ip
addresses, so provide helpers to handle both cases and then stop
converting hostnames to UNC paths by inserting path delimiters into
them.  Also kill @expiry parameter as it's not used anywhere.

Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsproto.h
fs/smb/client/connect.c
fs/smb/client/dfs.c
fs/smb/client/dfs_cache.c
fs/smb/client/dns_resolve.c
fs/smb/client/dns_resolve.h
fs/smb/client/misc.c