[systemd-devel] Block device shutdown "hook"

Ian Pilcher arequipeno at gmail.com
Fri Oct 16 10:24:26 PDT 2015


On 10/16/2015 05:25 AM, Kay Sievers wrote:
> Systemd, as the very last step at system reboot/shutdown tries to
> stop/disassemle/unmount all active mounts/mapper/loop/... devices, but
> that works only for simple storage setups and has no hooks for other
> tools.

This is the DM_DEV_REMOVE ioctl call in delete_dm() (in
src/core/umount.c), right?

If that's good enough for an LVM cache device, it's hard to see how it
wouldn't be good enough for a dm-cache device created in some other way.

So I think I need to go ask the device mapper folks ...

Thanks!

-- 
========================================================================
Ian Pilcher                                         arequipeno at gmail.com
-------- "I grew up before Mark Zuckerberg invented friendship" --------
========================================================================


More information about the systemd-devel mailing list