Hi Alasdair and others,<br><br>I found a small bug in the clone_bio() function in dm.c . The number of bio<br>vectors in the cloned bio is incorrectly set to the index of the last bio<br>vector in its range. I have corrected it in the attached patch.
<br><br>I encountered another problem in the final else condition of __clone_and_map()<br>function where the bio vector is split in to two parts. This is perhaps based<br>on the assumption that the next target can completely accomodate the bio
<br>vector. However, I have encountered situations when this assumption can be<br>violated and have introduced a do-while loop to correct it.<br><br>Please review the attached patch and let me know if you need more information.
<br><br>Thanks<br><br>Abhishek Gupta<br>2nd Year Graduate Student<br>Department of Computer Science, UBC.<br>Vancouver, Canada.<br><br>
<br>