blob: fadd3d1e985678d9c73fec3e9edfe079121e648b [file] [log] [blame]
// Copyright 2021 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 <lib/fpromise/result.h>
#include <string>
#include "src/storage/volume_image/adapter/adapter_options.h"
#include "src/storage/volume_image/fvm/options.h"
#include "src/storage/volume_image/partition.h"
#include "src/storage/volume_image/utils/reader.h"
namespace storage::volume_image {
// Returns a Partition to be incorporated into a FVM image, containing minfs.
// Note: Eventually as minfs host tool gets cleaned up, it should generate the volume and address
// descriptor for minfs, in the meantime we generate them on the fly.
fpromise::result<Partition, std::string> CreateMinfsFvmPartition(
std::unique_ptr<Reader> source_image, const PartitionOptions& partition_options,
const FvmOptions& fvm_options);
} // namespace storage::volume_image