<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div>Hi,<br><br></div>I wrote a basic device mapper driver which caches reads.<br><br></div>I gave dm msg prefix as below<br> #define DM_MSG_PREFIX "cacheread".<br>
<br></div>When i try to create a device mapper node using the below command<br>echo "0 `blockdev --getsize /dev/sda2` cacheread /dev/sda2 0" | dmsetup create cacheread<br><br></div>the system hangs.I am not getting any error messages.<br>
<br></div>When i try to create a device mapper node for linear target(this target is already present with the device mapper code) using below command<br><br>echo "0 `blockdev --getsize /dev/sda2` linear /dev/sda2 0" | dmsetup create linear<br>
</div>it succeeds and creates device node linear in /dev/mapper directory.<br><br></div>I am stuck with this issue and not able to proceed furthur.<br><br></div>Please let me know if you have any suggestions.<br><br></div>
Any help is truely appreciated.<br><br></div>Thanks in advance.<br><br></div>Regards,<br></div>Monica<br><div><div><div><div><div><div><div><div><br><br></div></div></div></div></div></div></div></div></div>