From d72f75ebd4ada545c6d4386bc657551234d59662 Mon Sep 17 00:00:00 2001 From: adilger Date: Thu, 12 Sep 2002 12:13:59 +0000 Subject: [PATCH] Fix lov stripe offset calculations. --- lustre/lov/lov_obd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/lov/lov_obd.c b/lustre/lov/lov_obd.c index 04f5481..13d51c4 100644 --- a/lustre/lov/lov_obd.c +++ b/lustre/lov/lov_obd.c @@ -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 */ -- 1.8.3.1