You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.8 KiB
56 lines
1.8 KiB
4 months ago
|
autofs-5.1.9 - fix amd external mount error handling
|
||
|
|
||
|
From: Ian Kent <raven@themaw.net>
|
||
|
|
||
|
An amd program mount might have defined its own umount program to be used
|
||
|
for external mounts.
|
||
|
|
||
|
In mount failure cases where the mount needs to be umounted be sure to
|
||
|
use the custom umount if there is one.
|
||
|
|
||
|
Signed-off-by: Ian Kent <raven@themaw.net>
|
||
|
---
|
||
|
CHANGELOG | 1 +
|
||
|
modules/parse_amd.c | 6 +++---
|
||
|
2 files changed, 4 insertions(+), 3 deletions(-)
|
||
|
|
||
|
--- autofs-5.1.9.orig/CHANGELOG
|
||
|
+++ autofs-5.1.9/CHANGELOG
|
||
|
@@ -6,6 +6,7 @@
|
||
|
- fix always recreate credential cache.
|
||
|
- fix get parent multi-mount check in try_remount().
|
||
|
- fix deadlock in remount.
|
||
|
+- fix amd external mount error handling.
|
||
|
|
||
|
02/11/2023 autofs-5.1.9
|
||
|
- fix kernel mount status notification.
|
||
|
--- autofs-5.1.9.orig/modules/parse_amd.c
|
||
|
+++ autofs-5.1.9/modules/parse_amd.c
|
||
|
@@ -1190,7 +1190,7 @@ static int do_generic_mount(struct autof
|
||
|
}
|
||
|
/* If we have an external mount add it to the list */
|
||
|
if (umount && !ext_mount_add(entry->fs, entry->umount)) {
|
||
|
- umount_ent(ap, entry->fs);
|
||
|
+ umount_amd_ext_mount(ap, entry->fs);
|
||
|
error(ap->logopt, MODPREFIX
|
||
|
"error: could not add external mount %s",
|
||
|
entry->fs);
|
||
|
@@ -1240,7 +1240,7 @@ static int do_nfs_mount(struct autofs_po
|
||
|
}
|
||
|
/* We might be using an external mount */
|
||
|
if (umount && !ext_mount_add(entry->fs, entry->umount)) {
|
||
|
- umount_ent(ap, entry->fs);
|
||
|
+ umount_amd_ext_mount(ap, entry->fs);
|
||
|
error(ap->logopt, MODPREFIX
|
||
|
"error: could not add external mount %s", entry->fs);
|
||
|
ret = 1;
|
||
|
@@ -1469,7 +1469,7 @@ static int do_program_mount(struct autof
|
||
|
"%s: mounted %s", entry->type, entry->fs);
|
||
|
goto do_free;
|
||
|
}
|
||
|
- umount_ent(ap, entry->fs);
|
||
|
+ umount_amd_ext_mount(ap, entry->fs);
|
||
|
}
|
||
|
|
||
|
if (!ext_mount_inuse(entry->fs))
|