cephfs: initialize VolumeGroupJournal

initialize VolumeGroupJournal which is
required for volumegroup rados communication

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2024-02-05 13:21:26 +01:00 committed by mergify[bot]
parent 445de7926d
commit ff6eda0de1
2 changed files with 8 additions and 0 deletions

View File

@ -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)

View File

@ -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