The mounted/unmounted icon sometimes doesn't update for AUTOFS network mounts

Issue #744 new
prl created an issue

If there is more than one network mount in NetworkBrowser, then in MENU>Setup>Network>Mount manager>Mountpoint management and MENU>Setup>Network>Network browser, the mounted/unmounted icon in the displays may not update correctly for mount type AUTOFS when the mount list is updated after a mount is marked as “not active”.

This is because the commands to control the mounts and the code that updates the mount information for NetworkBrowser are interleaved for each mount point, but the command to reload autofs only runs just before the table update for the last mount. That means that only the last mount updated can have the correct status displayed if it an automount and is disabled.

There is also a race condition between the end of the run of the autofs reload and check for the existence of the mountpoint in the second phase of the processing of a mountpoint, so sometimes the last mount processed can also fail to update its mount status.

The problem arises because of an incorrect optimisation in commit 4d0bfa4d (in the enigma2-plugins repository) that runs the autofs reload only once at the end of an update of the mounts by ‘AutoMount.CheckMountPoint()’.

Replication

With at least two network mounts of type AUTOFS configured and enabled, set each one to “not active” and REEN Save in the Mount editor screen for the mount. At most one of the two mounts will correctly show the “not mounted” (disk icon with white cross in a small red circle) status icon.