]> andersk Git - moira.git/commitdiff
Strip out illegal volume name characters.
authorprobe <probe>
Fri, 14 Aug 1992 17:30:35 +0000 (17:30 +0000)
committerprobe <probe>
Fri, 14 Aug 1992 17:30:35 +0000 (17:30 +0000)
New name for "fs checkbackups" is "fs checkvolumes"

incremental/afs_create.pl

index 7144fcb109a65cb393c68a37f10f97a1720861b6..86d460e1fb2fa5d93c0974443671b007dabbb24f 100644 (file)
@@ -33,6 +33,7 @@ die "Usage: $0 locker type cell path user group\n" if (@ARGV != 6);
 $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
 
 # Find free space
 ($asrv,$apart) = &afs_find($cell,$type,$quota);
@@ -45,7 +46,7 @@ push(@clean, "$vos remove $asrv $apart $vname -cell $cell >/dev/null");
 
 # 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");
 
This page took 0.183526 seconds and 5 git commands to generate.