[LEDE-DEV] [PATCH mountd] mount: don't mount device that is already mounted

Rafał Miłecki zajec5 at gmail.com
Fri Feb 9 00:57:21 PST 2018


On 8 February 2018 at 18:34, Rafał Miłecki <zajec5 at gmail.com> wrote:
> From: Rafał Miłecki <rafal at milecki.pl>
>
> It may happen that on mountd start some devices are already mounted.
> This could due to killing previous mountd instance or just a crash. In
> such case device shouldn't get remounted but added to the list with a
> mounted flag set. That will make mountd monitor it and take needed steps
> when it disappears.

Uh, this may not exactly work as expected.

Even if device is mounted, e.g. to /var/run/mountd/sda1 mountd on start does:
/bin/mount -t autofs -o (...) /tmp/run/mountd/
which causes /var/run/mountd/sda1 to /disappear/.

I've to think about it for a bit more.



More information about the Lede-dev mailing list