// create journal?
if (journalfn) {
- journal = new FileJournal(this, journalfn);
+ Journal *journal = new FileJournal(this, journalfn);
if (journal->create() < 0) {
dout(3) << "mount journal " << journalfn << " created failed" << endl;
- delete journal;
} else {
dout(3) << "mount journal " << journalfn << " created" << endl;
}
+ delete journal;
}
dout(2) << "mkfs: " << dev.get_device_name() << " " << dev.get_num_blocks() << " blocks, " << nice_blocks(dev.get_num_blocks()) << endl;
virtual void close() = 0;
// writes
+ virtual void make_writeable() = 0;
virtual bool submit_entry(bufferlist& e, Context *oncommit) = 0;// submit an item
virtual void commit_epoch_start() = 0; // mark epoch boundary
virtual void commit_epoch_finish() = 0; // mark prior epoch as committed (we can expire)