From: Andrew Deason Date: Mon, 6 Dec 2010 22:11:24 +0000 (-0600) Subject: vol_split: Recover from stream open failure X-Git-Tag: upstream/1.8.0_pre1^2~4389 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=94591a635bdd23ba74298c64273d4688405aa370;p=packages%2Fo%2Fopenafs.git vol_split: Recover from stream open failure Make sure we go through the error recovery code when we can't create a stream, instead of just returning without cleaning up. Change-Id: Ie3a5be9a81b36624a7d49958233c42e82a0e4bfa Reviewed-on: http://gerrit.openafs.org/3466 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/volser/vol_split.c b/src/volser/vol_split.c index 0680efc6a..c34cbbeed 100644 --- a/src/volser/vol_split.c +++ b/src/volser/vol_split.c @@ -120,7 +120,7 @@ ExtractVnodes(struct Msg *m, Volume *vol, afs_int32 class, sprintf(m->line, "Couldn't stream open %s Index of volume %u\n", class ? "small":"large", V_id(vol)); rx_Write(m->call, m->line, strlen(m->line)); - return EIO; + code = EIO; goto Bad_Extract; } code = STREAM_ASEEK(stream, vcp->diskSize);