Fixes https://tracker.ceph.com/issues/64112
Issue:
Currently, we are unable to create subvolume of same name in different
subvolume group
Fix:
We are validating only the filesystem name of subvolume
which is stopping the creation a subvolume of same name.
Added more granularity , by adding the subvolumegroup name.
Signed-off-by: Afreen <afreen23.git@gmail.com>
this.cephFsSubvolumeService,
null,
null,
- this.fsName
+ this.fsName,
+ this.subVolumeGroupName
)
]
}),
});
}
- exists(subVolumeName: string, fsName: string) {
- return this.info(fsName, subVolumeName).pipe(
+ exists(subVolumeName: string, fsName: string, subVolumeGroupName: string = '') {
+ return this.info(fsName, subVolumeName, subVolumeGroupName).pipe(
mapTo(true),
catchError((error: Event) => {
if (_.isFunction(error.preventDefault)) {