# Lookup volume type
($c = $cell) =~ s/\./_/g;
-$vtype = eval "\$vtypes_$c{$type}";
-die "Cannot create $type volumes in $cell\n" unless $vtype;
-$vname = $vtype . "." . $locker;
-$vname =~ s/[^-A-Za-z0-9_.]//g; # strip out illegal characters
+$vname = &afs_vname($locker, $type, $cell);
+die "Cannot create $type volumes in $cell\n" unless $vname;
# Find free space
($asrv,$apart) = &afs_find($cell,$type,$quota);