blob: 6732a6c3228592b191ed355f9a5e8fb0a8a3d2cc [file] [log] [blame]
// Copyright 2020 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 <block-client/cpp/block-device.h>
#include "src/storage/blobfs/common.h"
struct BlobCorruptOptions {
blobfs::Digest merkle;
// Corrupts the contents of the given blob within the given blobfs formatted block device. Returns
// success iff the image is in a clean state and the requested blob was corrupted.
zx_status_t CorruptBlob(std::unique_ptr<block_client::BlockDevice> device,
BlobCorruptOptions* options);