Diagnose possible quota limits.
Jarkko Hietaniemi [Fri, 17 Sep 1999 12:16:34 +0000 (12:16 +0000)]
p4raw-id: //depot/cfgperl@4169

t/lib/syslfs.t
t/op/lfs.t

index 14a968a..80f0ebf 100644 (file)
@@ -96,10 +96,12 @@ unless($syswrite && $close) {
     } else {
         print "# close failed: $!\n"
     }
-    if ($! =~/File too large/) {
-       print "1..0\n# writing past 2GB failed\n";
-       explain();
+    if ($! =~/too large/i) {
+       print "1..0\n# writing past 2GB failed: process limits?\n";
+    } elsif ($! =~ /quota/i) {
+       print "1..0\n# filesystem quota limits?\n";
     }
+lain();
     bye();
 }
 
index af7853b..2384c96 100644 (file)
@@ -100,10 +100,12 @@ unless ($print && $close) {
     } else {
         print "# close failed: $!\n"
     }
-    if ($! =~/File too large/) {
-       print "1..0\n# writing past 2GB failed\n";
-       explain();
+    if ($! =~/too large/i) {
+       print "1..0\n# writing past 2GB failed: process limits?\n";
+    } elsif ($! =~ /quota/i) {
+       print "1..0\n# filesystem quota limits?\n";
     }
+ ain();
     bye();
 }