Re: [systemd-devel] Block device shutdown "hook"

2015-10-17 Thread Lennart Poettering
On Fri, 16.10.15 12:24, Ian Pilcher (arequip...@gmail.com) wrote: > 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

Re: [systemd-devel] Block device shutdown "hook"

2015-10-16 Thread Ian Pilcher
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

Re: [systemd-devel] Block device shutdown "hook"

2015-10-16 Thread Kay Sievers
On Fri, Oct 16, 2015 at 1:55 AM, Ian Pilcher wrote: > Does systemd provide any sort of "hook" mechanism to call a script > program when a block device is unmounted (or otherwise no longer being > used) on shutdown? > > I'm toying with the idea of creating an alternative way

[systemd-devel] Block device shutdown "hook"

2015-10-15 Thread Ian Pilcher
Does systemd provide any sort of "hook" mechanism to call a script program when a block device is unmounted (or otherwise no longer being used) on shutdown? I'm toying with the idea of creating an alternative way of managing dm-cache devices -- something that will operate a bit more like bcache,