mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
cephfs: fix subvolumegroup creation for multiple fs
In a cluster we can have multiple filesystem for that we need to have a map of subvolumegroups to check filesystem is created nor not. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
9d46478794
commit
e56621cd66
@ -33,9 +33,7 @@ const (
|
||||
var ErrSubVolMetadataNotSupported = errors.New("subvolume metadata operations are not supported")
|
||||
|
||||
func (s *subVolumeClient) supportsSubVolMetadata() bool {
|
||||
if _, keyPresent := clusterAdditionalInfo[s.clusterID]; !keyPresent {
|
||||
clusterAdditionalInfo[s.clusterID] = &localClusterState{}
|
||||
}
|
||||
newLocalClusterState(s.clusterID)
|
||||
|
||||
return clusterAdditionalInfo[s.clusterID].subVolMetadataState != unsupported
|
||||
}
|
||||
|
Reference in New Issue
Block a user