|
|
135b98 |
autofs-5.1.5 - use ignore option for offset mounts as well
|
|
|
135b98 |
|
|
|
135b98 |
From: Ian Kent <raven@themaw.net>
|
|
|
135b98 |
|
|
|
135b98 |
The pseudo option "ignore" (that's used as a hint that applications
|
|
|
135b98 |
should ignore this mount when reporting a list of mounts) has been
|
|
|
135b98 |
added to direct and indirect mounts but hasn't been added to offset
|
|
|
135b98 |
mounts.
|
|
|
135b98 |
|
|
|
135b98 |
Signed-off-by: Ian Kent <raven@themaw.net>
|
|
|
135b98 |
---
|
|
|
135b98 |
CHANGELOG | 1 +
|
|
|
135b98 |
daemon/direct.c | 10 ++++++++++
|
|
|
135b98 |
2 files changed, 11 insertions(+)
|
|
|
135b98 |
|
|
|
135b98 |
--- autofs-5.1.4.orig/CHANGELOG
|
|
|
135b98 |
+++ autofs-5.1.4/CHANGELOG
|
|
|
135b98 |
@@ -61,6 +61,7 @@ xx/xx/2018 autofs-5.1.5
|
|
|
135b98 |
- fix amd entry memory leak.
|
|
|
135b98 |
- fix unlink_mount_tree() not umounting mounts.
|
|
|
135b98 |
- add ignore mount option.
|
|
|
135b98 |
+- use ignore option for offset mounts as well.
|
|
|
135b98 |
|
|
|
135b98 |
19/12/2017 autofs-5.1.4
|
|
|
135b98 |
- fix spec file url.
|
|
|
135b98 |
--- autofs-5.1.4.orig/daemon/direct.c
|
|
|
135b98 |
+++ autofs-5.1.4/daemon/direct.c
|
|
|
135b98 |
@@ -756,6 +756,16 @@ int mount_autofs_offset(struct autofs_po
|
|
|
135b98 |
mp->options = tmp;
|
|
|
135b98 |
}
|
|
|
135b98 |
}
|
|
|
135b98 |
+
|
|
|
135b98 |
+ if ((ap->flags & MOUNT_FLAG_IGNORE) &&
|
|
|
135b98 |
+ ((get_kver_major() == 5 && get_kver_minor() > 4) ||
|
|
|
135b98 |
+ (get_kver_major() > 5))) {
|
|
|
135b98 |
+ char *tmp = realloc(mp->options, strlen(mp->options) + 7);
|
|
|
135b98 |
+ if (tmp) {
|
|
|
135b98 |
+ strcat(tmp, ",ignore");
|
|
|
135b98 |
+ mp->options = tmp;
|
|
|
135b98 |
+ }
|
|
|
135b98 |
+ }
|
|
|
135b98 |
}
|
|
|
135b98 |
|
|
|
135b98 |
strcpy(mountpoint, root);
|