blob: a577a18999d28e685cc462f18828c6ff38846f74 [file] [log] [blame]
// Copyright 2020 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 "src/storage/minfs/minfs_private.h"
#ifdef __Fuchsia__
static_assert(false, "This file is not meant to be used on target");
#endif // __Fuchsia__
namespace minfs {
bool Minfs::DirtyCacheEnabled() { return false; }
[[nodiscard]] bool Minfs::IsJournalErrored() { return false; }
std::vector<fbl::RefPtr<VnodeMinfs>> Minfs::GetDirtyVnodes() {
std::vector<fbl::RefPtr<VnodeMinfs>> vnodes;
return vnodes;
}
zx_status_t Minfs::ContinueTransaction(size_t reserve_blocks,
std::unique_ptr<CachedBlockTransaction> cached_transaction,
std::unique_ptr<Transaction>* out) {
// Reserve blocks from allocators before returning WritebackWork to client.
*out = Transaction::FromCachedBlockTransaction(this, std::move(cached_transaction));
return (*out)->ExtendBlockReservation(reserve_blocks);
}
zx::status<> Minfs::AddDirtyBytes(uint64_t dirty_bytes, bool allocated) { return zx::ok(); }
void Minfs::SubtractDirtyBytes(uint64_t dirty_bytes, bool allocated) {}
} // namespace minfs