blockd: unmount device explicitly when it disappears
authorRafał Miłecki <rafal@milecki.pl>
Wed, 12 Dec 2018 14:24:34 +0000 (15:24 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Fri, 28 Dec 2018 22:10:32 +0000 (23:10 +0100)
commit3bb3352a5f6c1cffd8a487b92eb762c857df75ed
treef76d815b1c015c3fade597f69d91809ff114e2e7
parent28753b3f027084fa2ca184bc8f8c54db36cc2421
blockd: unmount device explicitly when it disappears

To keep autofs behavior consistent blockd should request both: mounting
and unmounting when needed. It's important as autofs-related actions may
require slightly different handling.

Without this patch:
1) autofs mounts were handled using TYPE_AUTOFS
2) autofs unmounts were handled using TYPE_HOTPLUG

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
blockd.c