Re: Past End Of Device

"Darrick J. Wong" <[email protected]>
Newsgroups gmane.linux.ataraid
Organization IBM
Message-ID <[email protected]>
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));

_______________________________________________
Ataraid-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/ataraid-list
signature.asc (application/pgp-signature, 254 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFENztna6vRYYgWQuURAv1BAKCs2v77YPJovGJp83nngJC69CHDOACfd2ce
slpRu+JQU7XPnGgL4gmnOv8=
=D2+/
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.