blob: b1e1fdb6179b30beaf9836be71d6cbe6a6a8cf72 [file] [log] [blame] [edit]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <fs/transaction/transaction_handler.h>
#include <zircon/device/block.h>
#include <utility>
#include <fbl/algorithm.h>
#include <fbl/macros.h>
#include <fbl/vector.h>
namespace fs {
zx_status_t TransactionHandler::RunOperation(
const storage::Operation& operation, storage::BlockBuffer* buffer) {
return RunRequests(
{storage::BufferedOperation{
#ifdef __Fuchsia__
.vmoid = buffer->vmoid(),
#else
.data = buffer->Data(0),
#endif
.op = operation}});
}
} // namespace fs