Gitweb:
http://git.fedorahosted.org/git/?p=gfs2-utils.git;a=commitdiff;h=e348a0e8...
Commit: e348a0e860cbaab7e48822b646cc5ac6cfe4ff81
Parent: adaec30d937486269c61a788a7262b2549f5ae30
Author: Andrew Price <anprice(a)redhat.com>
AuthorDate: Mon Jul 8 10:31:24 2013 +0100
Committer: Andrew Price <anprice(a)redhat.com>
CommitterDate: Mon Jul 8 10:31:24 2013 +0100
init.d/gfs2: Work around nested mount points umount bug
Work around a bug where umounting nested gfs2 mount points would take
place in the wrong order.
Ref: bz#963657
Signed-off-by: Andrew Price <anprice(a)redhat.com>
---
gfs2/init.d/gfs2 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gfs2/init.d/gfs2 b/gfs2/init.d/gfs2
index 29c64ba..467f37b 100644
--- a/gfs2/init.d/gfs2
+++ b/gfs2/init.d/gfs2
@@ -68,7 +68,7 @@ fi
# This script's behavior is modeled closely after the netfs script.
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~
/noauto/ { print $2 }' /etc/fstab)
-GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 !=
"/" { print $2 }' /proc/mounts)
+GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 !=
"/" { print $2 }' /proc/mounts | sort -r)
if [ -z "$GFS2FSTAB" ]; then
echo "GFS2: no entries found in /etc/fstab"