blob: 1fa2361667e09bb1b5e572c793e1bf50f8d82e96 [file] [log] [blame]
// Copyright 2017 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.
// This header includes FVM utilities which may be used by clients of
// the volume manager.
#ifndef __Fuchsia__
#error "Fuchsia-only header"
#include <lib/zx/channel.h>
#include <zircon/device/block.h>
#include "src/lib/storage/block_client/cpp/block_device.h"
namespace fvm {
// Walks through all slices on the partition backed by |device|, attempting to
// free everything except for the first slice.
zx_status_t ResetAllSlices(block_client::BlockDevice* device);
} // namespace fvm