|
|
aea863 |
autofs-5.1.4 - fix age setting at startup
|
|
|
aea863 |
|
|
|
aea863 |
From: Ian Kent <raven@themaw.net>
|
|
|
aea863 |
|
|
|
aea863 |
Commit 2b567ace7d, which resets the master map list on startup
|
|
|
aea863 |
before retrying a read, incorrectly sets age using time() when
|
|
|
aea863 |
it should use monotonic_time().
|
|
|
aea863 |
|
|
|
aea863 |
This causes lookup failures for submounts in cases where a master
|
|
|
aea863 |
map read retry was needed.
|
|
|
aea863 |
|
|
|
aea863 |
The failure happens because the mount entry age is greater than
|
|
|
aea863 |
the map entry age which is meant to indicate the map is no longer
|
|
|
aea863 |
valid which is not the case.
|
|
|
aea863 |
|
|
|
aea863 |
Signed-off-by: Ian Kent <raven@themaw.net>
|
|
|
aea863 |
---
|
|
|
aea863 |
CHANGELOG | 1 +
|
|
|
aea863 |
daemon/automount.c | 2 +-
|
|
|
aea863 |
2 files changed, 2 insertions(+), 1 deletion(-)
|
|
|
aea863 |
|
|
|
aea863 |
--- autofs-5.1.4.orig/CHANGELOG
|
|
|
aea863 |
+++ autofs-5.1.4/CHANGELOG
|
|
|
aea863 |
@@ -32,6 +32,7 @@ xx/xx/2018 autofs-5.1.5
|
|
|
aea863 |
- mark removed cache entry negative.
|
|
|
aea863 |
- set bind mount as propagation slave.
|
|
|
aea863 |
- add master map pseudo options for mount propagation.
|
|
|
aea863 |
+- fix age setting at startup.
|
|
|
aea863 |
|
|
|
aea863 |
19/12/2017 autofs-5.1.4
|
|
|
aea863 |
- fix spec file url.
|
|
|
aea863 |
--- autofs-5.1.4.orig/daemon/automount.c
|
|
|
aea863 |
+++ autofs-5.1.4/daemon/automount.c
|
|
|
aea863 |
@@ -2610,7 +2610,7 @@ int main(int argc, char *argv[])
|
|
|
aea863 |
* we have anyway.
|
|
|
aea863 |
*/
|
|
|
aea863 |
do_master_list_reset(master_list);
|
|
|
aea863 |
- age = time(NULL);
|
|
|
aea863 |
+ age = monotonic_time(NULL);
|
|
|
aea863 |
master_read_master(master_list, age, 1);
|
|
|
aea863 |
}
|
|
|
aea863 |
}
|