vol_split: Recover from stream open failure
authorAndrew Deason <adeason@sinenomine.net>
Mon, 6 Dec 2010 22:11:24 +0000 (16:11 -0600)
committerDerrick Brashear <shadow@dementia.org>
Tue, 7 Dec 2010 05:37:50 +0000 (21:37 -0800)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

src/volser/vol_split.c

index 0680efc..c34cbbe 100644 (file)
@@ -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);