blob: 74f5d6c6992abb824035749d6e0375edfe7d64e6 [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.
#ifndef SRC_STORAGE_BLOBFS_INCLUDE_BLOBFS_MKFS_H_
#define SRC_STORAGE_BLOBFS_INCLUDE_BLOBFS_MKFS_H_
#include <blobfs/blob-layout.h>
#include <block-client/cpp/block-device.h>
namespace blobfs {
using block_client::BlockDevice;
// Options for constructing new blobfs images.
struct FilesystemOptions {
// Which layout to use to store blobs.
BlobLayoutFormat blob_layout_format = BlobLayoutFormat::kPaddedMerkleTreeAtStart;
};
// Formats the underlying device with an empty Blobfs partition.
zx_status_t FormatFilesystem(BlockDevice* device, const FilesystemOptions& options);
} // namespace blobfs
#endif // SRC_STORAGE_BLOBFS_INCLUDE_BLOBFS_MKFS_H_