From e399cb60c8511e34b1c331dfd38d3d202e8dbfe3 Mon Sep 17 00:00:00 2001 From: prateekpandey14 Date: Fri, 10 Jan 2020 18:44:48 +0530 Subject: [PATCH] fix(clone): get fsType from the Storage class annotation Commit changes to get the fstype info from the CASVolume resource which populated using via CAS config in StorageClass annotations. Signed-off-by: prateekpandey14 --- snapshot/pkg/volume/openebs/processor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snapshot/pkg/volume/openebs/processor.go b/snapshot/pkg/volume/openebs/processor.go index ad9ce9eb41e..5bdc67f78df 100644 --- a/snapshot/pkg/volume/openebs/processor.go +++ b/snapshot/pkg/volume/openebs/processor.go @@ -252,7 +252,7 @@ func (h *openEBSPlugin) SnapshotRestore(snapshotData *crdv1.VolumeSnapshotData, TargetPortal: newVolume.Spec.TargetPortal, IQN: newVolume.Spec.Iqn, Lun: 0, - FSType: "ext4", + FSType: newVolume.Spec.FSType, ReadOnly: false, }, }