Do not print volume name in DisplayFormat2 if status is not VOK
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 16 Jul 2009 15:53:52 +0000 (11:53 -0400)
committerDerrick Brashear <shadow@dementia.org>
Thu, 16 Jul 2009 17:05:08 +0000 (11:05 -0600)
commit868ddef206e7c764427cf4abb91e1e69326a2198
treec23bc9bbf747dcfd215722f9229ee70286bf55ae
parenta2d3f60222b29988f78b42608088d4db3da95d9d
Do not print volume name in DisplayFormat2 if status is not VOK

DisplayFormat2 is used to generate volume output for ListVolumes
and ExamineVolume.  If the volume status is not VOK, the name field
will not have been populated with valid data.  Do not print it.

This commit also removes an extraneous switch block from
XDisplayFormat2.  The switch variable is already known to
have the value VOK due to an enclosing conditional.

FIXES 125111

LICENSE MIT

Reviewed-on: http://gerrit.openafs.org/140
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Verified-by: Derrick Brashear <shadow@dementia.org>
src/volser/vos.c