<div dir="ltr">Hi dm developers!<div><br></div><div>I'm during the experiment with dm-cache and storage client and I would be very grateful if some of You will help me with some of my questions :). </div><div><br></div><div>Simply, I would like to implement the write-through caching in the client where:</div><div> - dm-cache is only responsible to check whether requested data is in the cache device (return requested data if hit, ENODATA if miss - do not read from origin) - in case of miss, my client will read data from the origin.</div><div> - dm-cache will write only to the cache device - client will write data to the origin.</div><div><br></div><div>Easily, I need to start dm-cache in writethrough mode without determining the origin device. More specifically, I need to make two changes in dm code:</div><div> - Bypass the origin device while writing data</div><div> - Do not remap the result to the origin device in case of read miss.</div><div><br></div><div>So here's my questions:</div><div> - Do the similar solution exists?<br></div><div> - Do I have to change the policy code or maybe all of this things are contained in the target code?<br></div><div> - Could someone reproduce the IO path in dm-cache code? </div><div><br></div><div>Thanks for your help!</div><div>Regards,</div><div>JJ</div></div>