9126983f9b
- Filesystem: create systemd drop-in for network filesystems Resolves: rhbz#2203813 Resolves: rhbz#2184779
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
From 78622f1d3e46d58b78efe33643d05bea4d6948a2 Mon Sep 17 00:00:00 2001
|
|
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
|
|
Date: Wed, 17 May 2023 12:29:38 +0200
|
|
Subject: [PATCH] Filesystem: create systemd drop-in for network filesystems
|
|
|
|
---
|
|
heartbeat/Filesystem | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/heartbeat/Filesystem b/heartbeat/Filesystem
|
|
index 50c68f115..65a9dffb5 100755
|
|
--- a/heartbeat/Filesystem
|
|
+++ b/heartbeat/Filesystem
|
|
@@ -1021,6 +1021,7 @@ is_option "ro" &&
|
|
case "$FSTYPE" in
|
|
nfs4|nfs|efs|smbfs|cifs|none|gfs2|glusterfs|ceph|ocfs2|overlay|overlayfs|tmpfs|cvfs|lustre)
|
|
CLUSTERSAFE=1 # this is kind of safe too
|
|
+ systemd_drop_in "99-Filesystem-remote" "After" "remote-fs.target"
|
|
;;
|
|
# add here CLUSTERSAFE=0 for all filesystems which are not
|
|
# cluster aware and which, even if when mounted read-only,
|
|
@@ -1028,6 +1029,7 @@ nfs4|nfs|efs|smbfs|cifs|none|gfs2|glusterfs|ceph|ocfs2|overlay|overlayfs|tmpfs|c
|
|
ext4|ext4dev|ext3|reiserfs|reiser4|xfs|jfs)
|
|
if ocf_is_true "$OCF_RESKEY_force_clones"; then
|
|
CLUSTERSAFE=2
|
|
+ systemd_drop_in "99-Filesystem-remote" "After" "remote-fs.target"
|
|
else
|
|
CLUSTERSAFE=0 # these are not allowed
|
|
fi
|