1 /* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ 2 /* 3 * erofs-utils/lib/blobchunk.h 4 * 5 * Copyright (C) 2021, Alibaba Cloud 6 */ 7 #ifndef __EROFS_BLOBCHUNK_H 8 #define __EROFS_BLOBCHUNK_H 9 10 #ifdef __cplusplus 11 extern "C" 12 { 13 #endif 14 15 #include "erofs/internal.h" 16 17 struct erofs_blobchunk *erofs_get_unhashed_chunk(unsigned int device_id, 18 erofs_blk_t blkaddr, erofs_off_t sourceoffset); 19 int erofs_blob_write_chunk_indexes(struct erofs_inode *inode, erofs_off_t off); 20 int erofs_blob_write_chunked_file(struct erofs_inode *inode, int fd, 21 erofs_off_t startoff); 22 int tarerofs_write_chunkes(struct erofs_inode *inode, erofs_off_t data_offset); 23 int erofs_mkfs_dump_blobs(struct erofs_sb_info *sbi); 24 void erofs_blob_exit(void); 25 int erofs_blob_init(const char *blobfile_path, erofs_off_t chunksize); 26 int erofs_mkfs_init_devices(struct erofs_sb_info *sbi, unsigned int devices); 27 28 #ifdef __cplusplus 29 } 30 #endif 31 32 #endif 33