Hi,<div><br></div><div>I want to write a clean up function in a device mapper target if the underlying block device fails or if it is removed. This is similar to, for example, having a register_reboot_notifier() inside a dm target so that the target can take appropriate action on a system reboot.</div>
<div><br></div><div>What would be the best way to handle this ? Should I look at the multi path code for any hints ? Appreciate any pointers to this.</div><div><br></div><div>Thanks,</div><div>-Sid</div><div><br></div><div>
<br></div><div><br></div>