/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2022 Oracle. All Rights Reserved. * Author: Darrick J. Wong */ #ifndef __XFS_SCRUB_XFBLOB_H__ #define __XFS_SCRUB_XFBLOB_H__ struct xfblob { struct xfile *xfile; loff_t last_offset; }; typedef loff_t xfblob_cookie; int xfblob_create(struct xfs_mount *mp, const char *descr, struct xfblob **blobp); void xfblob_destroy(struct xfblob *blob); int xfblob_load(struct xfblob *blob, xfblob_cookie cookie, void *ptr, uint32_t size); int xfblob_store(struct xfblob *blob, xfblob_cookie *cookie, void *ptr, uint32_t size); int xfblob_free(struct xfblob *blob, xfblob_cookie cookie); long long xfblob_bytes(struct xfblob *blob); void xfblob_truncate(struct xfblob *blob); #endif /* __XFS_SCRUB_XFBLOB_H__ */