blob: 5a478e1520ac11e922a0e6cd68cd25be7c963b27 [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 blobfs.
// Note: Eventually as blobfs host tool gets cleaned up, it should generate the volume and address
// descriptor for blobfs, in the meantime we generate them on the fly.
fpromise::result<Partition, std::string> CreateBlobfsFvmPartition(
std::unique_ptr<Reader> source_image, const PartitionOptions& partition_options,
const FvmOptions& fvm_options);
} // namespace storage::volume_image