mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 05:57:43 +00:00
windows-netbios-name-logging-20081015
LICENSE MIT log more data to afsd_init.log regarding events that can cause the netbios name registration to become invalid.
This commit is contained in:
parent
e0298d5f09
commit
bfd01550bd
@ -8755,9 +8755,10 @@ void smb_Listener(void *parmp)
|
|||||||
|
|
||||||
if (code == NRC_NAMERR) {
|
if (code == NRC_NAMERR) {
|
||||||
/* An smb shutdown or Vista resume must have taken place */
|
/* An smb shutdown or Vista resume must have taken place */
|
||||||
osi_Log2(smb_logp,
|
osi_Log1(smb_logp,
|
||||||
"NCBLISTEN lana=%d failed with NRC_NAMERR.",
|
"NCBLISTEN lana=%d failed with NRC_NAMERR.",
|
||||||
ncbp->ncb_lana_num, code);
|
ncbp->ncb_lana_num);
|
||||||
|
afsi_log("NCBLISTEN lana=%d failed with NRC_NAMERR.", ncbp->ncb_lana_num);
|
||||||
|
|
||||||
if (lock_TryMutex(&smb_StartedLock)) {
|
if (lock_TryMutex(&smb_StartedLock)) {
|
||||||
lana_list.lana[i] = LANA_INVALID;
|
lana_list.lana[i] = LANA_INVALID;
|
||||||
@ -8776,6 +8777,8 @@ void smb_Listener(void *parmp)
|
|||||||
osi_Log2(smb_logp,
|
osi_Log2(smb_logp,
|
||||||
"NCBLISTEN lana=%d failed with %s. Listener thread exiting.",
|
"NCBLISTEN lana=%d failed with %s. Listener thread exiting.",
|
||||||
ncbp->ncb_lana_num, ncb_error_string(code));
|
ncbp->ncb_lana_num, ncb_error_string(code));
|
||||||
|
afsi_log("NCBLISTEN lana=%d failed with %s. Listener thread exiting.",
|
||||||
|
ncbp->ncb_lana_num, ncb_error_string(code));
|
||||||
|
|
||||||
for (i = 0; i < lana_list.length; i++) {
|
for (i = 0; i < lana_list.length; i++) {
|
||||||
if (lana_list.lana[i] == lana) {
|
if (lana_list.lana[i] == lana) {
|
||||||
@ -9350,7 +9353,7 @@ void smb_StopListener(NCB *ncbp, int lana, int wait)
|
|||||||
memcpy(ncbp->ncb_name,smb_sharename,NCBNAMSZ);
|
memcpy(ncbp->ncb_name,smb_sharename,NCBNAMSZ);
|
||||||
code = Netbios(ncbp);
|
code = Netbios(ncbp);
|
||||||
|
|
||||||
afsi_log("Netbios NCBDELNAME lana=%d code=%d retcode=%d complete=%d",
|
afsi_log("StopListener: Netbios NCBDELNAME lana=%d code=%d retcode=%d complete=%d",
|
||||||
lana, code, ncbp->ncb_retcode, ncbp->ncb_cmd_cplt);
|
lana, code, ncbp->ncb_retcode, ncbp->ncb_cmd_cplt);
|
||||||
|
|
||||||
/* and then reset the LANA; this will cause the listener threads to exit */
|
/* and then reset the LANA; this will cause the listener threads to exit */
|
||||||
@ -9362,9 +9365,9 @@ void smb_StopListener(NCB *ncbp, int lana, int wait)
|
|||||||
if (code == 0)
|
if (code == 0)
|
||||||
code = ncbp->ncb_retcode;
|
code = ncbp->ncb_retcode;
|
||||||
if (code != 0) {
|
if (code != 0) {
|
||||||
afsi_log("Netbios NCBRESET lana %d error code %d", lana, code);
|
afsi_log("StopListener: Netbios NCBRESET lana %d error code %d", lana, code);
|
||||||
} else {
|
} else {
|
||||||
afsi_log("Netbios NCBRESET lana %d succeeded", lana);
|
afsi_log("StopListener: Netbios NCBRESET lana %d succeeded", lana);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wait)
|
if (wait)
|
||||||
@ -9846,7 +9849,7 @@ void smb_Shutdown(void)
|
|||||||
if (code == 0)
|
if (code == 0)
|
||||||
code = ncbp->ncb_retcode;
|
code = ncbp->ncb_retcode;
|
||||||
if (code != 0) {
|
if (code != 0) {
|
||||||
fprintf(stderr, "Netbios NCBDELNAME lana %d error code %d",
|
fprintf(stderr, "Shutdown: Netbios NCBDELNAME lana %d error code %d",
|
||||||
ncbp->ncb_lana_num, code);
|
ncbp->ncb_lana_num, code);
|
||||||
}
|
}
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user