[pve-devel] [PATCH storage] cephfs: Exclude _netdev when mounting with fuse

Alwin Antreich a.antreich at proxmox.com
Tue Jun 11 14:28:44 CEST 2019


fuse 2.9.x does not support the _netdev option and a cephfs storage
mount fails. This patch ignores the _netdev option if 'fuse 1' is set on
the cephfs storage.

Signed-off-by: Alwin Antreich <a.antreich at proxmox.com>
---
Note: fuse3 (3.4.1) in buster supports _netdev

 PVE/Storage/CephFSPlugin.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/Storage/CephFSPlugin.pm b/PVE/Storage/CephFSPlugin.pm
index 16fc316..08584ca 100644
--- a/PVE/Storage/CephFSPlugin.pm
+++ b/PVE/Storage/CephFSPlugin.pm
@@ -69,7 +69,7 @@ sub cephfs_mount {
     # tell systemd that we're network dependent, else it umounts us to late on
     # shutdown, when we couldn't connect to the active MDS and thus unmount
     # hangs and delays shutdown/reboot (man systemd.mount)
-    push @$cmd, '-o', '_netdev';
+    push @$cmd, '-o', '_netdev' if !$scfg->{fuse};
 
     if ($scfg->{options}) {
 	push @$cmd, '-o', $scfg->{options};
-- 
2.11.0





More information about the pve-devel mailing list