blob: dca69dab0da48b2f176c413d44d6545ebb139989 [file] [log] [blame]
// 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.
#pragma once
#include <block-client/cpp/client.h>
#include <fbl/unique_fd.h>
// Ensures a block client has synchronized all operations to storage.
zx_status_t FlushClient(const block_client::Client& client);
// Ensures a block device has synchronized all operations to storage.
zx_status_t FlushBlockDevice(const fbl::unique_fd& fd);