1// Copyright 2018 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#pragma once
6
7#include <block-client/cpp/client.h>
8#include <fbl/unique_fd.h>
9
10// Ensures a block client has synchronized all operations to storage.
11zx_status_t FlushClient(const block_client::Client& client);
12
13// Ensures a block device has synchronized all operations to storage.
14zx_status_t FlushBlockDevice(const fbl::unique_fd& fd);
15