This MR adds fixes for several Jiras. - RHEL-57466 - autofs crashes on startup after IDM client configuration We have had several different reports caused by this bug which leads to a SEGV with very little information about the cuase. - Resolves: RHEL-57466 - RHEL-69485 - Sporadic mount failures with amd program maps on RHEL8. This bug causes AMD-style program map mounts to sporadically not work. - Resolves: RHEL-69485 - RHEL-71359 - RFE: autofs: add handling for AMD 'nounmount' option This Jira adds support for a map option that was deferred in the original implementtion. One of our customers needs this so it has been implemented. - Resolves: RHEL-71359 Signed-off-by: Ian Kent <ikent@redhat.com>
52 lines
1.5 KiB
Diff
52 lines
1.5 KiB
Diff
autofs-5.1.9 - log when setting amd per-mount timeout
|
|
|
|
From: Ian Kent <raven@themaw.net>
|
|
|
|
Log action when setting amd per-mount expire timeout.
|
|
|
|
Signed-off-by: Ian Kent <raven@themaw.net>
|
|
---
|
|
CHANGELOG | 1 +
|
|
modules/parse_amd.c | 12 ++++++++++--
|
|
2 files changed, 11 insertions(+), 2 deletions(-)
|
|
|
|
--- autofs-5.1.7.orig/CHANGELOG
|
|
+++ autofs-5.1.7/CHANGELOG
|
|
@@ -175,6 +175,7 @@
|
|
- fix submount shutdown race.
|
|
- fix lookup search type in umount_subtree_mounts().
|
|
- fix remount_active_mount() not remounting symlinks.
|
|
+- log when setting amd per-mount timeout.
|
|
|
|
25/01/2021 autofs-5.1.7
|
|
- make bind mounts propagation slave by default.
|
|
--- autofs-5.1.7.orig/modules/parse_amd.c
|
|
+++ autofs-5.1.7/modules/parse_amd.c
|
|
@@ -1755,16 +1755,24 @@ static int amd_mount(struct autofs_point
|
|
"non-zero timeout set, possible conflicting options");
|
|
|
|
/* "nounmount" option, don't expire this mount. */
|
|
- if (ops)
|
|
+ if (ops) {
|
|
+ info(ap->logopt,
|
|
+ "set amd per-mount expire timeout to 0 for %s",
|
|
+ name);
|
|
ops->timeout(ap->logopt, ap->ioctlfd, name, 0);
|
|
+ }
|
|
} else if (per_mnt_flags & AMD_MOUNT_OPT_UTIMEOUT) {
|
|
if (!entry->utimeout)
|
|
warn(ap->logopt,
|
|
"zero timeout set, possible conflicting options");
|
|
|
|
/* "utimeout" option, expire this mount according to a timeout. */
|
|
- if (ops)
|
|
+ if (ops) {
|
|
+ info(ap->logopt,
|
|
+ "set amd per-dentry expire timeout to %d for %s",
|
|
+ entry->utimeout, name);
|
|
ops->timeout(ap->logopt, ap->ioctlfd, name, entry->utimeout);
|
|
+ }
|
|
}
|
|
}
|
|
done:
|