diff --git a/src/volser/vsprocs.c b/src/volser/vsprocs.c index 0ac7e1e2f0..f02fe44db7 100644 --- a/src/volser/vsprocs.c +++ b/src/volser/vsprocs.c @@ -761,6 +761,12 @@ UV_CreateVolume3(afs_uint32 aserver, afs_int32 apart, char *aname, /* rw,ro, bk id are related in the default case */ /* If caller specified RW id, but not RO/BK ids, have them be RW+1 and RW+2 */ lastid = *anewid; + if (aroid && *aroid != 0) { + lastid = MAX(lastid, *aroid); + } + if (abkid && *abkid != 0) { + lastid = MAX(lastid, *abkid); + } if (aroid && *aroid == 0) { *aroid = ++lastid; }