mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
cephfs: retrieve NewCSISnapshotJournal with namespace set
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
parent
1746b4e6ee
commit
a4f2c5617c
@ -195,6 +195,14 @@ func NewCSIVolumeJournalWithNamespace(suffix, ns string) *Config {
|
|||||||
return j
|
return j
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NewCSISnapshotJournalWithNamespace returns an instance of CSIJournal for
|
||||||
|
// snapshots using a predetermined namespace value.
|
||||||
|
func NewCSISnapshotJournalWithNamespace(suffix, ns string) *Config {
|
||||||
|
j := NewCSISnapshotJournal(suffix)
|
||||||
|
j.namespace = ns
|
||||||
|
return j
|
||||||
|
}
|
||||||
|
|
||||||
// GetNameForUUID returns volume name.
|
// GetNameForUUID returns volume name.
|
||||||
func (cj *Config) GetNameForUUID(prefix, uid string, isSnapshot bool) string {
|
func (cj *Config) GetNameForUUID(prefix, uid string, isSnapshot bool) string {
|
||||||
if prefix == "" {
|
if prefix == "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user