parent
9276cde182
commit
da6196cdc5
@ -0,0 +1,22 @@
|
|||||||
|
From 4b09b3e467a7f8076bbf20f5b027efecf16303e7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Gianluca Piccolo <gianluca.piccolo@wuerth-phoenix.com>
|
||||||
|
Date: Thu, 6 Jun 2024 17:34:41 +0200
|
||||||
|
Subject: [PATCH] Fix #1944
|
||||||
|
|
||||||
|
---
|
||||||
|
heartbeat/Filesystem | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/heartbeat/Filesystem b/heartbeat/Filesystem
|
||||||
|
index a445349b9..59b6c1b51 100755
|
||||||
|
--- a/heartbeat/Filesystem
|
||||||
|
+++ b/heartbeat/Filesystem
|
||||||
|
@@ -664,7 +664,7 @@ get_pids()
|
||||||
|
if [ "X${HOSTOS}" = "XOpenBSD" ];then
|
||||||
|
fstat | grep $dir | awk '{print $3}'
|
||||||
|
else
|
||||||
|
- $FUSER -m $dir 2>/dev/null
|
||||||
|
+ $FUSER -Mm $dir 2>/dev/null
|
||||||
|
fi
|
||||||
|
elif [ "$FORCE_UNMOUNT" = "safe" ]; then
|
||||||
|
procs=$(find /proc/[0-9]*/ -type l -lname "${dir}/*" -or -lname "${dir}" 2>/dev/null | awk -F/ '{print $3}')
|
@ -0,0 +1,26 @@
|
|||||||
|
From c9ba6ac66ee27a70c69e1156f17aa6beac277bc5 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
|
||||||
|
Date: Fri, 7 Jun 2024 14:23:28 +0200
|
||||||
|
Subject: [PATCH] Filesystem: use fuser -c on FreeBSD, as -m and -M are used
|
||||||
|
for other functionality
|
||||||
|
|
||||||
|
---
|
||||||
|
heartbeat/Filesystem | 4 +++-
|
||||||
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/heartbeat/Filesystem b/heartbeat/Filesystem
|
||||||
|
index 59b6c1b51..88fe2e2eb 100755
|
||||||
|
--- a/heartbeat/Filesystem
|
||||||
|
+++ b/heartbeat/Filesystem
|
||||||
|
@@ -661,8 +661,10 @@ get_pids()
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ocf_is_true "$FORCE_UNMOUNT"; then
|
||||||
|
- if [ "X${HOSTOS}" = "XOpenBSD" ];then
|
||||||
|
+ if [ "X${HOSTOS}" = "XOpenBSD" ]; then
|
||||||
|
fstat | grep $dir | awk '{print $3}'
|
||||||
|
+ elif [ "X${HOSTOS}" = "XFreeBSD" ]; then
|
||||||
|
+ $FUSER -c $dir 2>/dev/null
|
||||||
|
else
|
||||||
|
$FUSER -Mm $dir 2>/dev/null
|
||||||
|
fi
|
Loading…
Reference in new issue