]> andersk Git - moira.git/blobdiff - incremental/afs_rename.pl
Imakefile: use the same debug flag as everyone else
[moira.git] / incremental / afs_rename.pl
index bac85bda506a4641e4d8803910d0b7b4f1c20b2f..92d756c3265c51e984279b1fe22db6d7553b5d6e 100644 (file)
@@ -27,6 +27,10 @@ die "Cannot handle $newltype volumes\n" unless $vtype;
 $newvname = $vtype . "." . $newname;
 
 if ($oldtype eq "ERR") {
+    # If volume was never unmounted, we don't need to do anything.
+    system("$fs lsm $oldpath > /dev/null");
+    exit(0) if ($? == 0);
+
     # Lookup volume type for old locker
     ($c = $oldcell) =~ s/\./_/g;
     $vtype = eval "\$vtypes_$c{$oldltype}";
This page took 0.100668 seconds and 4 git commands to generate.