Thanks Milan,<br><br>That clears my confusion.. need to read more doc... :)<br><br>--sanjana<br><br><div class="gmail_quote">On Wed, Nov 2, 2011 at 1:27 PM, Milan Broz <span dir="ltr"><<a href="mailto:mbroz@redhat.com">mbroz@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 11/01/2011 06:10 PM, Sanjana Shari wrote:<br>
> Using the remaining of first half of the same blockdevice /dev/loop0.<br>
> This seems to work. So I ma confused here how the mapping works..<br>
<br>
</div>There is no magic for linear mapping.<br>
Imagine you have this mapping table<br>
<br>
0 8 linear /dev/sdb 1000<br>
8 8 linear /dev/sdc 500<br>
<br>
It means you created 16 sectors device consisting of two segments.<br>
<br>
First half (sectors 0-7) is mapped to /dev/sdb starting at sector 10000.<br>
(IOW sectors 0-7 of newly mapped device is mapped to sectors 10000-10007 of /dev/sdb)<br>
<br>
Second half (sectors 8-15) is mapped to /dev/sdc starting at sector 500.<br>
<br>
See dmsetup man page, where linear mapping is described.<br>
Just do not confuse source and destination device offset.<br>
<font color="#888888"><br>
Milan<br>
</font></blockquote></div><br><br clear="all"><br><br><br>