mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 23:40:13 +00:00
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:
parent
81602ffa3b
commit
138ac6577e
@ -4632,11 +4632,14 @@ VCheckOffline(Volume * vp)
|
|||||||
VUpdateVolume_r(&error, vp, 0);
|
VUpdateVolume_r(&error, vp, 0);
|
||||||
VCloseVolumeHandles_r(vp);
|
VCloseVolumeHandles_r(vp);
|
||||||
if (LogLevel) {
|
if (LogLevel) {
|
||||||
Log("VOffline: Volume %u (%s) is now offline", V_id(vp),
|
if (V_offlineMessage(vp)[0]) {
|
||||||
V_name(vp));
|
Log("VOffline: Volume %lu (%s) is now offline (%s)\n",
|
||||||
if (V_offlineMessage(vp)[0])
|
afs_printable_uint32_lu(V_id(vp)), V_name(vp),
|
||||||
Log(" (%s)", V_offlineMessage(vp));
|
V_offlineMessage(vp));
|
||||||
Log("\n");
|
} else {
|
||||||
|
Log("VOffline: Volume %lu (%s) is now offline\n",
|
||||||
|
afs_printable_uint32_lu(V_id(vp)), V_name(vp));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
FreeVolumeHeader(vp);
|
FreeVolumeHeader(vp);
|
||||||
#ifdef AFS_PTHREAD_ENV
|
#ifdef AFS_PTHREAD_ENV
|
||||||
|
Loading…
Reference in New Issue
Block a user