From ff6eda0de1b1253b340a8f34c4a8d8815dd8ebf5 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Mon, 5 Feb 2024 13:21:26 +0100 Subject: [PATCH] cephfs: initialize VolumeGroupJournal initialize VolumeGroupJournal which is required for volumegroup rados communication Signed-off-by: Madhu Rajanna --- internal/cephfs/driver.go | 4 ++++ internal/cephfs/store/fsjournal.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/internal/cephfs/driver.go b/internal/cephfs/driver.go index d12f3fd69..3aa8caf6b 100644 --- a/internal/cephfs/driver.go +++ b/internal/cephfs/driver.go @@ -124,6 +124,10 @@ func (fs *Driver) Run(conf *util.Config) { store.VolJournal = journal.NewCSIVolumeJournalWithNamespace(CSIInstanceID, fsutil.RadosNamespace) store.SnapJournal = journal.NewCSISnapshotJournalWithNamespace(CSIInstanceID, fsutil.RadosNamespace) + + store.VolumeGroupJournal = journal.NewCSIVolumeGroupJournalWithNamespace( + CSIInstanceID, + fsutil.RadosNamespace) // Initialize default library driver fs.cd = csicommon.NewCSIDriver(conf.DriverName, util.DriverVersion, conf.NodeID) diff --git a/internal/cephfs/store/fsjournal.go b/internal/cephfs/store/fsjournal.go index a8fbcdb50..c9f9a16d7 100644 --- a/internal/cephfs/store/fsjournal.go +++ b/internal/cephfs/store/fsjournal.go @@ -40,6 +40,10 @@ var ( // SnapJournal is used to maintain RADOS based journals for CO generated. // SnapshotName to backing CephFS subvolumes. SnapJournal *journal.Config + + // VolumeGroupJournal is used to maintain RADOS based journals for CO + // generate request name to CephFS snapshot group attributes. + VolumeGroupJournal journal.VolumeGroupJournalConfig ) // VolumeIdentifier structure contains an association between the CSI VolumeID to its subvolume