]> git.michaelhowe.org Git - packages/o/openafs.git/commit
volser: Remove ExtractVolId
authorAndrew Deason <adeason@sinenomine.net>
Tue, 11 Oct 2011 15:51:14 +0000 (10:51 -0500)
committerDerrick Brashear <shadow@dementix.org>
Wed, 26 Oct 2011 22:55:31 +0000 (15:55 -0700)
commit080e4a736ba95d4dcb4167a1a8f8accab8a928b0
treef05e2633a7bbd8ece5ea5ce632f68f298658ad44
parentbcccac5ccb89a9b4368bcef293913bcf98b8446c
volser: Remove ExtractVolId

volser was using its own function to extract a volume ID from a
filename string, and was using atol to do so. The ato* family of
functions can have problems with larger volume IDs, not to mention a
lack of error checking, so don't use it. Since we already have the
function VolumeNumber in the vol package to do the very same thing,
just use that instead.

Reviewed-on: http://gerrit.openafs.org/5594
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit 87f969f82d12c8200ede3fd30a151e09ab0bf6ad)

Change-Id: I4f047c4141493e151db0a6b5ec21bee3af35e040
Reviewed-on: http://gerrit.openafs.org/5720
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
src/volser/volprocs.c