1 /* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ 2 #ifndef __EROFS_REBUILD_H 3 #define __EROFS_REBUILD_H 4 5 #ifdef __cplusplus 6 extern "C" 7 { 8 #endif 9 10 #include "internal.h" 11 12 enum erofs_rebuild_datamode { 13 EROFS_REBUILD_DATA_BLOB_INDEX, 14 EROFS_REBUILD_DATA_RESVSP, 15 EROFS_REBUILD_DATA_FULL, 16 }; 17 18 struct erofs_dentry *erofs_rebuild_get_dentry(struct erofs_inode *pwd, 19 char *path, bool aufs, bool *whout, bool *opq, bool to_head); 20 21 int erofs_rebuild_load_tree(struct erofs_inode *root, struct erofs_sb_info *sbi, 22 enum erofs_rebuild_datamode mode); 23 24 #ifdef __cplusplus 25 } 26 #endif 27 28 #endif 29