|
@@ -1271,33 +1271,35 @@ find_unc(__be32 new_target_ip_addr, char *uncName, char *userName)
|
|
|
|
|
|
read_lock(&GlobalSMBSeslock);
|
|
read_lock(&GlobalSMBSeslock);
|
|
list_for_each(tmp, &GlobalTreeConnectionList) {
|
|
list_for_each(tmp, &GlobalTreeConnectionList) {
|
|
- cFYI(1, ("Next tcon - "));
|
|
|
|
|
|
+ cFYI(1, ("Next tcon"));
|
|
tcon = list_entry(tmp, struct cifsTconInfo, cifsConnectionList);
|
|
tcon = list_entry(tmp, struct cifsTconInfo, cifsConnectionList);
|
|
if (tcon->ses) {
|
|
if (tcon->ses) {
|
|
if (tcon->ses->server) {
|
|
if (tcon->ses->server) {
|
|
cFYI(1,
|
|
cFYI(1,
|
|
- (" old ip addr: %x == new ip %x ?",
|
|
|
|
|
|
+ ("old ip addr: %x == new ip %x ?",
|
|
tcon->ses->server->addr.sockAddr.sin_addr.
|
|
tcon->ses->server->addr.sockAddr.sin_addr.
|
|
s_addr, new_target_ip_addr));
|
|
s_addr, new_target_ip_addr));
|
|
if (tcon->ses->server->addr.sockAddr.sin_addr.
|
|
if (tcon->ses->server->addr.sockAddr.sin_addr.
|
|
s_addr == new_target_ip_addr) {
|
|
s_addr == new_target_ip_addr) {
|
|
- /* BB lock tcon and server and tcp session and increment use count here? */
|
|
|
|
|
|
+ /* BB lock tcon, server and tcp session and increment use count here? */
|
|
/* found a match on the TCP session */
|
|
/* found a match on the TCP session */
|
|
/* BB check if reconnection needed */
|
|
/* BB check if reconnection needed */
|
|
- cFYI(1,("Matched ip, old UNC: %s == new: %s ?",
|
|
|
|
|
|
+ cFYI(1,("IP match, old UNC: %s new: %s",
|
|
tcon->treeName, uncName));
|
|
tcon->treeName, uncName));
|
|
if (strncmp
|
|
if (strncmp
|
|
(tcon->treeName, uncName,
|
|
(tcon->treeName, uncName,
|
|
MAX_TREE_SIZE) == 0) {
|
|
MAX_TREE_SIZE) == 0) {
|
|
cFYI(1,
|
|
cFYI(1,
|
|
- ("Matched UNC, old user: %s == new: %s ?",
|
|
|
|
|
|
+ ("and old usr: %s new: %s",
|
|
tcon->treeName, uncName));
|
|
tcon->treeName, uncName));
|
|
if (strncmp
|
|
if (strncmp
|
|
(tcon->ses->userName,
|
|
(tcon->ses->userName,
|
|
userName,
|
|
userName,
|
|
MAX_USERNAME_SIZE) == 0) {
|
|
MAX_USERNAME_SIZE) == 0) {
|
|
read_unlock(&GlobalSMBSeslock);
|
|
read_unlock(&GlobalSMBSeslock);
|
|
- return tcon;/* also matched user (smb session)*/
|
|
|
|
|
|
+ /* matched smb session
|
|
|
|
+ (user name */
|
|
|
|
+ return tcon;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|