Skip to content

Commit a36bc78

Browse files
authored
Merge pull request ceph#55349 from afreen23/fix-64112
mgr/dashboard: Create subvol of same name in different group Reviewed-by: Ankush Behl <[email protected]> Reviewed-by: Nizamudeen A <[email protected]>
2 parents d45818b + fb79df4 commit a36bc78

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-subvolume-form/cephfs-subvolume-form.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ export class CephfsSubvolumeFormComponent extends CdForm implements OnInit {
108108
this.cephFsSubvolumeService,
109109
null,
110110
null,
111-
this.fsName
111+
this.fsName,
112+
this.subVolumeGroupName
112113
)
113114
]
114115
}),

src/pybind/mgr/dashboard/frontend/src/app/shared/api/cephfs-subvolume.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ export class CephfsSubvolumeService {
7575
});
7676
}
7777

78-
exists(subVolumeName: string, fsName: string) {
79-
return this.info(fsName, subVolumeName).pipe(
78+
exists(subVolumeName: string, fsName: string, subVolumeGroupName: string = '') {
79+
return this.info(fsName, subVolumeName, subVolumeGroupName).pipe(
8080
mapTo(true),
8181
catchError((error: Event) => {
8282
if (_.isFunction(error.preventDefault)) {

0 commit comments

Comments
 (0)