Windows: remove faulty assumptions about device names in vol-salvage
authorRod Widdowson <rdw@steadingsoftware.com>
Sun, 23 Jan 2011 12:04:59 +0000 (12:04 +0000)
committerJeffrey Altman <jaltman@openafs.org>
Mon, 24 Jan 2011 05:10:57 +0000 (21:10 -0800)
commitffb0cdcc91d86f6e7b62561aebe6dcb722c3d768
tree0e1d632f33274092e59e25496d6e0c7431658e17
parentf60bca943f7bc6352a5f7beedbb7ca47559f3513
Windows: remove faulty assumptions about device names in vol-salvage

The implementation has an assumption that all disk volumes have an
object name of \Device\HarddiskXXX (where XXX is a number).  This is
wrong since the name is purely a convention and since about WXP they
have been called \Device\HarddiskVolumeXXX.

Either way it is spurious to assume the format and then try to compare
the XXX.  This change just compares the strings.  This is done in a
case insenstive manner which is the safer option.  It is quite
feasible, but very unlikely that someone will uses 'case sensitively
different' object names.

Change-Id: Ifa91c88f2b17f747f30541b8833b722cf5993e48
Reviewed-on: http://gerrit.openafs.org/3745
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
src/vol/vol-salvage.c