Past End Of Device

Darrick J. Wong djwong at us.ibm.com
Sat Apr 8 04:26:11 UTC 2006


John Anderson wrote:

> I ran dmraid -tay and I got:  nvidia_afaafcdh: 0 488397166 mirror core 2
> 64 nosync 2 /dev/sda 0 /dev/sdb 0
> I ran dmraid -s and I got:  Set name : nvidia_afaafcdh size : 488397166
> stride : 128 type : mirror status : ok subsets: 0 devs : 2 spares : 0
> I ran dmraid -ay and I got:    attempt to access beyond end of device
>    sda: rw=0, want=488398912, limit=488397168
>    attempt to access beyond end of device
>    rw=1, want=488398912, limit=488397168

Does this patch help?

(The same patch is in 2.6.16.)

--D

------------------

--- a/drivers/md/dm-log.c
+++ b/drivers/md/dm-log.c
@@ -573,7 +573,7 @@ static int core_get_resync_work(struct d
 					     lc->sync_search);
 		lc->sync_search = *region + 1;

-		if (*region == lc->region_count)
+		if (*region >= lc->region_count)
 			return 0;

 	} while (log_test_bit(lc->recovering_bits, *region));

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/ataraid-list/attachments/20060407/1021d92a/attachment.sig>


More information about the Ataraid-list mailing list