Re: Past End Of Device

John Anderson <[email protected]>
Newsgroups gmane.linux.ataraid
Message-ID <[email protected]>
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
>[email protected]
>https://www.redhat.com/mailman/listinfo/ataraid-list
>
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.