am-utils/am-utils-6.2-0.git.9b652fb4-fix-handle-failed-umount-on-exit.patch

14 lines
491 B
Diff

diff -up am-utils-6.1.5/amd/map.c.orig am-utils-6.1.5/amd/map.c
--- am-utils-6.1.5/amd/map.c.orig 2014-03-19 19:45:45.000000000 +0800
+++ am-utils-6.1.5/amd/map.c 2014-03-19 19:47:42.741848068 +0800
@@ -748,7 +748,8 @@ umount_exported(void)
} else {
am_unmounted(mp);
}
- exported_ap[i] = NULL;
+ if (!(mf->mf_flags && (MFF_UNMOUNTING|MFF_MOUNTED)))
+ exported_ap[i] = NULL;
} else {
/*
* Any other node gets forcibly timed out.