$protodir="/moira/dotfiles";
$quota=1;
-%vtypes_ATHENA_MIT_EDU =
- ("ACTIVITY", "activity",
- "APROJ", "aproj",
- "AREF", "aref",
- "CONTRIB", "contrib",
- "COURSE", "course",
- "HOMEDIR", "user",
- "PROJECT", "project",
- "REF", "ref",
- "SW", "sw",
- "SYSTEM", "system",
- "UROP", "urop",
- );
-
%proc =
("ATHENA.MIT.EDU", 'athena_proc' );
# 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 = &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);
# Create mountpoint and set quota
$path =~ s:^/afs/([^.]):/afs/.\1:;
-system("$fs checkb >/dev/null; $fs mkm $path $vname");
+system("$fs checkv >/dev/null; $fs mkm $path $vname");
&fatal("Unable to create $path") if ($?);
push(@clean, "$fs rmm $path");