blob: d4714cf3f961919bc3ce55cbe3d21d02c8946207 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include "journal.h"
#include "journal/segmented_journal.h"
#include "journal/circular_bounded_journal.h"
namespace crimson::os::seastore::journal {
JournalRef make_segmented(
SegmentProvider &provider,
JournalTrimmer &trimmer)
{
return std::make_unique<SegmentedJournal>(provider, trimmer);
}
JournalRef make_circularbounded(
JournalTrimmer &trimmer,
crimson::os::seastore::random_block_device::RBMDevice* device,
std::string path)
{
return std::make_unique<CircularBoundedJournal>(trimmer, device, path);
}
}
|