Past End Of Device

John Anderson john_anderson_ii at cox.net
Sat Apr 8 11:25:22 UTC 2006


Works like a champ when applied to 2.6.14.6!   Any write operations are 
stopped 1 block short of filling the device.

Thanks!

John A.


Darrick J. Wong wrote:

>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
>Ataraid-list at redhat.com
>https://www.redhat.com/mailman/listinfo/ataraid-list
>




More information about the Ataraid-list mailing list