mount: fix removing mount point if it's expired
authorRafał Miłecki <rafal@milecki.pl>
Fri, 9 Feb 2018 16:18:21 +0000 (17:18 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Mon, 12 Feb 2018 09:55:34 +0000 (10:55 +0100)
commit36f91971b00f9f57875307b99a0f13b339a66baa
treed4469f24e06bef0f640eec37036483c6cd49a422
parented4270f23e7df70414fcb09203bcbc86f1b85a81
mount: fix removing mount point if it's expired

Kernel can report mount point as expired and when that happens mountd
unmounts it. When such a device disappears it's still important to:
1) Cleanup directories
2) Call hotplug scripts
Fix this by adding a new EXPIRED status and checking it when block
device disappears.

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