the previous continuation in the chain already returns a future, no need
to hook up another now().
Signed-off-by: Kefu Chai <kchai@redhat.com>
"Invalid error open_device in NVMeManager::mkfs"
}).finally([this] {
if (device) {
- return device->close().then([] {
- return mkfs_ertr::now();
- });
+ return device->close();
}
return mkfs_ertr::now();
});
assert(bl.length() < super.block_size);
iter.copy(bl.length(), bp.c_str());
- return device->write(super.start, bp
- ).safe_then([] {
- return write_ertr::now();
- });
+ return device->write(super.start, bp);
}
NVMeManager::read_ertr::future<rbm_metadata_header_t> NVMeManager::read_rbm_header(