Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-cloud / recipes-support / cluster-resource-agents / resource-agents / stx / umount-in-namespace.patch
1 From eb45b8271ce64a046d41c93b1cffd641245ce55f Mon Sep 17 00:00:00 2001
2 From: Scott Little <scott.little@windriver.com>
3 Date: Mon, 2 Oct 2017 15:12:48 -0400
4 Subject: [PATCH 05/13] WRS: Patch1109: umount-in-namespace.patch
5
6 ---
7  heartbeat/Filesystem | 4 ++++
8  1 file changed, 4 insertions(+)
9
10 diff --git a/heartbeat/Filesystem b/heartbeat/Filesystem
11 index f536298..05e4097 100755
12 --- a/heartbeat/Filesystem
13 +++ b/heartbeat/Filesystem
14 @@ -503,6 +503,10 @@ signal_processes() {
15  }
16  try_umount() {
17         local SUB=$1
18 +
19 +    # We need to ensure we umount in namespaces, too
20 +    /usr/sbin/umount-in-namespace $SUB
21 +
22         $UMOUNT $umount_force $SUB
23         list_mounts | grep -q " $SUB " >/dev/null 2>&1 || {
24                 ocf_log info "unmounted $SUB successfully"
25 -- 
26 1.9.1
27