X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=PVE%2FStorage%2FCephFSPlugin.pm;h=c18f8c937029d46b68aeafded5ec8d0a9d9c30ad;hb=82881c5f9e3c50549c159847a391afe23cb1855b;hp=53491edb533ad0ed5af3f128ab2ab19cfcdd59ea;hpb=35ccd3d004d648b3e678f211ac8646f4735fe0ec;p=pve-storage.git diff --git a/PVE/Storage/CephFSPlugin.pm b/PVE/Storage/CephFSPlugin.pm index 53491ed..c18f8c9 100644 --- a/PVE/Storage/CephFSPlugin.pm +++ b/PVE/Storage/CephFSPlugin.pm @@ -20,16 +20,14 @@ sub cephfs_is_mounted { my $cmd_option = PVE::CephConfig::ceph_connect_option($scfg, $storeid); my $configfile = $cmd_option->{ceph_conf}; - my $server = $cmd_option->{mon_host} // PVE::CephConfig::get_monaddr_list($configfile); my $subdir = $scfg->{subdir} // '/'; my $mountpoint = $scfg->{path}; - my $source = "$server:$subdir"; $mountdata = PVE::ProcFSTools::parse_proc_mounts() if !$mountdata; return $mountpoint if grep { $_->[2] =~ m#^ceph|fuse\.ceph-fuse# && - $_->[0] =~ m#^\Q$source\E|ceph-fuse$# && + $_->[0] =~ m#\Q:$subdir\E$|^ceph-fuse$# && $_->[1] eq $mountpoint } @$mountdata;