cephfs: retrieve NewCSISnapshotJournal with namespace set

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
Humble Chirammal 2020-08-04 00:21:25 +05:30 committed by mergify[bot]
parent 1746b4e6ee
commit a4f2c5617c

View File

@ -195,6 +195,14 @@ func NewCSIVolumeJournalWithNamespace(suffix, ns string) *Config {
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.
func (cj *Config) GetNameForUUID(prefix, uid string, isSnapshot bool) string {
if prefix == "" {