blob: e745d184f2ebfdbeb694e7180015dc1cd4508204 [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.
#pragma once
#ifndef __Fuchsia__
#error "Fuchsia-only header"
#include <zircon/device/block.h>
namespace fvm {
// Walks through all slices on the partition backed by |fd|, attempting to free
// everything except for the first slice. Does not close |fd|.
zx_status_t ResetAllSlices(int fd);