if /afs/.:mount/cell:volume:vnode is passed in, don't pass the :vnode
into the volume id lookup
Change-Id: If877b467cd37f06dcb090c34560bf76f8e4b0d10
Reviewed-on: http://gerrit.openafs.org/1383
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
/* Get the volume struct. Unless this volume name has ".readonly" or
* ".backup" in it, this will get the volume struct for the RW volume.
* The RO volume will be prefetched if requested (but not returned).
+ * Set up to use volname first.
*/
+ cpos = afs_strchr(volnamep, ':'); /* if vno present */
+ if (cpos)
+ *cpos = 0;
+
/*printf("Calling GetVolumeByName\n");*/
tvp = afs_GetVolumeByName(volnamep, mtptCell, prefetch, areq, WRITE_LOCK);
}
osi_FreeSmallSpace(buf);
}
+ /* done with volname */
+ if (cpos)
+ *cpos = ':';
if (!tvp) {
/*printf("Couldn't find the volume\n");*/