1 Star 0 Fork 12

淮南子/autofs

forked from src-openEuler/autofs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0031-autofs-5.1.4-fix-age-setting-at-startup.patch 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
gu-gu-gu 提交于 2019-12-03 10:24 . autofs: openEuler init
autofs-5.1.4 - fix age setting at startup
From: Ian Kent <raven@themaw.net>
Commit 2b567ace7d, which resets the master map list on startup
when before retrying a read, incorrectly sets age using time()
when it should use monotonic_time().
This causes lookup failures for submounts in cases where a master
map read retry was needed.
The failure happens becuase the mount entry age is greater than
the map entry age which is meant to indicate the map is no longer
valid which is not the case.
Signed-off-by: Ian Kent <raven@themaw.net>
---
CHANGELOG | 1 +
daemon/automount.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
--- autofs-5.1.4.orig/daemon/automount.c
+++ autofs-5.1.4/daemon/automount.c
@@ -2606,7 +2606,7 @@ int main(int argc, char *argv[])
* we have anyway.
*/
do_master_list_reset(master_list);
- age = time(NULL);
+ age = monotonic_time(NULL);
master_read_master(master_list, age, 1);
}
}
--- autofs-5.1.4.orig/CHANGELOG
+++ autofs-5.1.4/CHANGELOG
@@ -29,6 +29,7 @@ xx/xx/2018 autofs-5.1.5
- change expire type naming to better reflect usage.
- use defines for expire type.
- make umount_ent() recognise forced umount.
+- fix age setting at startup.
19/12/2017 autofs-5.1.4
- fix spec file url.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/writings-of-prince-huainan/autofs.git
git@gitee.com:writings-of-prince-huainan/autofs.git
writings-of-prince-huainan
autofs
autofs
master

搜索帮助