erofs.h 651 B

12345678910111213141516171819
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _EROFS_H_
  3. #define _EROFS_H_
  4. struct disk_partition;
  5. int erofs_opendir(const char *filename, struct fs_dir_stream **dirsp);
  6. int erofs_readdir(struct fs_dir_stream *dirs, struct fs_dirent **dentp);
  7. int erofs_probe(struct blk_desc *fs_dev_desc,
  8. struct disk_partition *fs_partition);
  9. int erofs_read(const char *filename, void *buf, loff_t offset,
  10. loff_t len, loff_t *actread);
  11. int erofs_size(const char *filename, loff_t *size);
  12. int erofs_exists(const char *filename);
  13. void erofs_close(void);
  14. void erofs_closedir(struct fs_dir_stream *dirs);
  15. int erofs_uuid(char *uuid_str);
  16. #endif /* _EROFS_H */