]> git.michaelhowe.org Git - packages/o/openafs.git/commit
salvager: Do not abort on large volume IDs
authorAndrew Deason <adeason@sinenomine.net>
Tue, 21 Feb 2012 21:28:08 +0000 (15:28 -0600)
committerDerrick Brashear <shadow@dementix.org>
Thu, 23 Feb 2012 20:16:34 +0000 (12:16 -0800)
commitbea2a94610335939d6ef869489ce5bd19d1a11da
treeb3733c5b88ec2be0a3559b8c662b853d1aeda4b0
parent8a0bc72693cf7e735539f10e55b292f59ca0ad6f
salvager: Do not abort on large volume IDs

We have already checked that 'vid' is valid; no need to check if it is
negative. Also change vid to be a VolumeId.

This is partially cherry-picked from
0884e9d0fddf2be81abf6468209048331efa8a1e. The commit
4d691ae10903e01db4d6b24a4eb02da536cadf7c is comprised of changes from
both ce5e263b488f8cb85662031ee08eea448dab2d27 and
0884e9d0fddf2be81abf6468209048331efa8a1e, but it missed a few things
from 0884e9d0fddf2be81abf6468209048331efa8a1e. This commit brings in
the rest of the changes from 0884e9d0fddf2be81abf6468209048331efa8a1e.

Change-Id: I8e001bfe81128b2e2214b3b2fa83e4797374022b
Reviewed-on: http://gerrit.openafs.org/6778
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/vol/salvaged.c
src/vol/salvager.c