mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-17 20:00:23 +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
|
||||
}
|
||||
|
||||
// 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 == "" {
|
||||
|
Loading…
Reference in New Issue
Block a user