From bc0c13a84ba37958c0146903b9449dc426805465 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Mon, 6 Dec 2010 16:11:24 -0600 Subject: [PATCH] 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. Reviewed-on: http://gerrit.openafs.org/3466 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear (cherry picked from commit 94591a635bdd23ba74298c64273d4688405aa370) Change-Id: Iff1053a2ed1789f2a5047a59b8df4fad94e9062c Reviewed-on: http://gerrit.openafs.org/3792 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/volser/vol_split.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/volser/vol_split.c b/src/volser/vol_split.c index 119549dc2..73fdeab18 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_SEEK(stream, vcp->diskSize, 0); -- 2.39.5