cleanup mountpoints of partitions failing to mount
authorKristof Roelants <kr.roelants@gmail.com>
Fri, 9 Sep 2016 13:46:48 +0000 (15:46 +0200)
committerJohn Crispin <john@phrozen.org>
Wed, 14 Sep 2016 19:36:25 +0000 (21:36 +0200)
commitd8145d1f78651f0ff4d53b7f2ccc89daeab4561b
treed6ffe7304007240891798a79d529890d54908c1e
parent46063a1657c449d46c1ed7384862f2c0aa051761
cleanup mountpoints of partitions failing to mount

If a partition fails to mount, its autofs mountpoint is created and the mounted
flag is unset. When the partition expires or is removed, the autofs mountpoint
is cleaned up only if the mounted flag is set. Added cleanup of the autofs
mountpoint at removal and unset mounted flag.

Signed-off-by: Kristof Roelants <Kristof.Roelants@technicolor.com>
mount.c