Re: Past End Of Device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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));

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________

Ataraid-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/ataraid-list

[Index of Archives]     [Linux RAID]     [Linux Device Mapper]     [Linux IDE]     [Linux SCSI]     [Kernel]     [Linux Books]     [Linux Admin]     [GFS]     [RPM]     [Yosemite Campgrounds]     [AMD 64]

  Powered by Linux