Lines Matching full:lfs

364 typedef struct lfs {  struct
409 int lfs_format(lfs_t *lfs, const struct lfs_config *config); argument
415 // lfs and config must be allocated while mounted. The config struct must
419 int lfs_mount(lfs_t *lfs, const struct lfs_config *config);
425 int lfs_unmount(lfs_t *lfs);
433 int lfs_remove(lfs_t *lfs, const char *path);
441 int lfs_rename(lfs_t *lfs, const char *oldpath, const char *newpath);
447 int lfs_stat(lfs_t *lfs, const char *path, struct lfs_info *info);
461 lfs_ssize_t lfs_getattr(lfs_t *lfs, const char *path,
471 int lfs_setattr(lfs_t *lfs, const char *path,
479 int lfs_removeattr(lfs_t *lfs, const char *path, uint8_t type);
490 int lfs_file_open(lfs_t *lfs, lfs_file_t *file,
503 int lfs_file_opencfg(lfs_t *lfs, lfs_file_t *file,
513 int lfs_file_close(lfs_t *lfs, lfs_file_t *file);
519 int lfs_file_sync(lfs_t *lfs, lfs_file_t *file);
525 lfs_ssize_t lfs_file_read(lfs_t *lfs, lfs_file_t *file,
534 lfs_ssize_t lfs_file_write(lfs_t *lfs, lfs_file_t *file,
541 lfs_soff_t lfs_file_seek(lfs_t *lfs, lfs_file_t *file,
547 int lfs_file_truncate(lfs_t *lfs, lfs_file_t *file, lfs_off_t size);
551 // Equivalent to lfs_file_seek(lfs, file, 0, LFS_SEEK_CUR)
553 lfs_soff_t lfs_file_tell(lfs_t *lfs, lfs_file_t *file);
557 // Equivalent to lfs_file_seek(lfs, file, 0, LFS_SEEK_SET)
559 int lfs_file_rewind(lfs_t *lfs, lfs_file_t *file);
563 // Similar to lfs_file_seek(lfs, file, 0, LFS_SEEK_END)
565 lfs_soff_t lfs_file_size(lfs_t *lfs, lfs_file_t *file);
573 int lfs_mkdir(lfs_t *lfs, const char *path);
579 int lfs_dir_open(lfs_t *lfs, lfs_dir_t *dir, const char *path);
585 int lfs_dir_close(lfs_t *lfs, lfs_dir_t *dir);
592 int lfs_dir_read(lfs_t *lfs, lfs_dir_t *dir, struct lfs_info *info);
600 int lfs_dir_seek(lfs_t *lfs, lfs_dir_t *dir, lfs_off_t off);
608 lfs_soff_t lfs_dir_tell(lfs_t *lfs, lfs_dir_t *dir);
613 int lfs_dir_rewind(lfs_t *lfs, lfs_dir_t *dir);
624 lfs_ssize_t lfs_fs_size(lfs_t *lfs);
633 int lfs_fs_traverse(lfs_t *lfs, int (*cb)(void*, lfs_block_t), void *data);
647 int lfs_migrate(lfs_t *lfs, const struct lfs_config *cfg);