Portable blocksize (replaces #4171).
authorJarkko Hietaniemi <jhi@iki.fi>
Fri, 17 Sep 1999 13:47:49 +0000 (13:47 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Fri, 17 Sep 1999 13:47:49 +0000 (13:47 +0000)
p4raw-id: //depot/cfgperl@4172

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

index f4959f7..c3f7de3 100644 (file)
@@ -68,11 +68,7 @@ my @s;
 
 print "# @s\n";
 
-# Is there a portable way to find out what's the unit of st_blocks?
-
-my $BLOCKSIZE = 512;
-
-$BLOCKSIZE = 4096 if $^O eq 'unicos';
+my $BLOCKSIZE = $s[11] || 512;
 
 unless (@s == 13 &&
        $s[7] == 1_000_003 &&
index 46df014..dcba630 100644 (file)
@@ -71,11 +71,7 @@ my @s;
 
 print "# @s\n";
 
-# Is there a portable way to find out what's the unit of st_blocks?
-
-my $BLOCKSIZE = 512;
-
-$BLOCKSIZE = 4096 if $^O eq 'unicos';
+my $BLOCKSIZE = $s[11] || 512;
 
 unless (@s == 13 &&
        $s[7] == 1_000_003 &&