mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 02:43:36 +00:00
rbd: move core fields to rbdImage struct
moved ParentName, ParentPool and ImageFeatureSet fields to the rbdImage struct as these are the first citizens on the rbdImage. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
c6b288779a
commit
edcb2b529b
@ -41,7 +41,7 @@ func TestHasSnapshotFeature(t *testing.T) {
|
||||
rv := rbdVolume{}
|
||||
|
||||
for _, test := range tests {
|
||||
rv.imageFeatureSet = librbd.FeatureSetFromNames(strings.Split(test.features, ","))
|
||||
rv.ImageFeatureSet = librbd.FeatureSetFromNames(strings.Split(test.features, ","))
|
||||
if got := rv.hasSnapshotFeature(); got != test.hasFeature {
|
||||
t.Errorf("hasSnapshotFeature(%s) = %t, want %t", test.features, got, test.hasFeature)
|
||||
}
|
||||
|
Reference in New Issue
Block a user