Windows: Panic if RDR_Initialize SERVICE_DISABLED

If RDR_Initialize() fails with ERROR_SERVICE_DISABLED it means that
the AFSRedir.sys driver loaded but the AFSRedirLib.sys driver library
cannot be loaded.  In this situation neither the RDR nor SMB interfaces
can successfully be used.  Panic!

Change-Id: I09d30a86b9d72b9077d4c7578dab52314cce559a
Reviewed-on: http://gerrit.openafs.org/8514
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
This commit is contained in:
Jeffrey Altman 2012-11-25 23:56:47 -05:00
parent e3373c5ad2
commit 5ab61bbc5c

View File

@ -1387,8 +1387,13 @@ afsd_Main(DWORD argc, LPTSTR *argv)
cm_VolStatus_Service_Started();
code = RDR_Initialize();
RDR_Initialized = !code;
afsi_log("RDR_Initialize returned: (code = %d)", code);
if ( code == ERROR_SERVICE_DISABLED) {
afsi_log("RDR_Initialize failed: 1058 (Unable to load AFSRedirLib.sys)");
osi_panic(reason, __FILE__, __LINE__);
} else {
RDR_Initialized = !code;
afsi_log("RDR_Initialize returned: (code = %d)", code);
}
if (RDR_Initialized) {
if (cm_sysNameCount)