Whamcloud - gitweb
Fix lov stripe offset calculations.
authoradilger <adilger>
Thu, 12 Sep 2002 12:13:59 +0000 (12:13 +0000)
committeradilger <adilger>
Thu, 12 Sep 2002 12:13:59 +0000 (12:13 +0000)
lustre/lov/lov_obd.c

index 04f5481..13d51c4 100644 (file)
@@ -542,7 +542,7 @@ static __u64 lov_offset(struct lov_stripe_md *lsm, __u64 lov_off, int stripeno)
         else
                 stripe_off -= stripeno * ssize;
 
-        return lov_off + stripe_off;
+        return lov_off * ssize + stripe_off;
 }
 
 /* compute which stripe offset "lov_off" will be written into */