Cleanup VOffline log message for non-DAFS

Commit fd592c7674 fixed the 'Volume X
(Y) is now offline' message for DAFS, but the same problem persists
for non-DAFS. Fix the non-DAFS case.

Change-Id: I7b19a3c2cad8b7233eb03a83598f9bf95db5ac65
Reviewed-on: http://gerrit.openafs.org/3213
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Andrew Deason 2010-11-01 15:34:26 -05:00 committed by Derrick Brashear
parent 81602ffa3b
commit 138ac6577e

View File

@ -4632,11 +4632,14 @@ VCheckOffline(Volume * vp)
VUpdateVolume_r(&error, vp, 0);
VCloseVolumeHandles_r(vp);
if (LogLevel) {
Log("VOffline: Volume %u (%s) is now offline", V_id(vp),
V_name(vp));
if (V_offlineMessage(vp)[0])
Log(" (%s)", V_offlineMessage(vp));
Log("\n");
if (V_offlineMessage(vp)[0]) {
Log("VOffline: Volume %lu (%s) is now offline (%s)\n",
afs_printable_uint32_lu(V_id(vp)), V_name(vp),
V_offlineMessage(vp));
} else {
Log("VOffline: Volume %lu (%s) is now offline\n",
afs_printable_uint32_lu(V_id(vp)), V_name(vp));
}
}
FreeVolumeHeader(vp);
#ifdef AFS_PTHREAD_ENV