Lines Matching refs:fs
22 LOG_MODULE_REGISTER(fs);
160 CHECKIF(mp->fs->open == NULL) { in fs_open()
170 CHECKIF(mp->fs->truncate == NULL) { in fs_open()
178 rc = mp->fs->open(zfp, file_name, flags); in fs_open()
190 rc = mp->fs->truncate(zfp, 0); in fs_open()
209 CHECKIF(zfp->mp->fs->close == NULL) { in fs_close()
213 rc = zfp->mp->fs->close(zfp); in fs_close()
232 CHECKIF(zfp->mp->fs->read == NULL) { in fs_read()
236 rc = zfp->mp->fs->read(zfp, ptr, size); in fs_read()
252 CHECKIF(zfp->mp->fs->write == NULL) { in fs_write()
256 rc = zfp->mp->fs->write(zfp, ptr, size); in fs_write()
272 CHECKIF(zfp->mp->fs->lseek == NULL) { in fs_seek()
276 rc = zfp->mp->fs->lseek(zfp, offset, whence); in fs_seek()
292 CHECKIF(zfp->mp->fs->tell == NULL) { in fs_tell()
296 rc = zfp->mp->fs->tell(zfp); in fs_tell()
312 CHECKIF(zfp->mp->fs->truncate == NULL) { in fs_truncate()
316 rc = zfp->mp->fs->truncate(zfp, length); in fs_truncate()
332 CHECKIF(zfp->mp->fs->sync == NULL) { in fs_sync()
336 rc = zfp->mp->fs->sync(zfp); in fs_sync()
379 CHECKIF(mp->fs->opendir == NULL) { in fs_opendir()
384 rc = zdp->mp->fs->opendir(zdp, abs_path); in fs_opendir()
400 CHECKIF(zdp->mp->fs->readdir == NULL) { in fs_readdir()
406 rc = zdp->mp->fs->readdir(zdp, entry); in fs_readdir()
485 CHECKIF(zdp->mp->fs->closedir == NULL) { in fs_closedir()
489 rc = zdp->mp->fs->closedir(zdp); in fs_closedir()
522 CHECKIF(mp->fs->mkdir == NULL) { in fs_mkdir()
526 rc = mp->fs->mkdir(mp, abs_path); in fs_mkdir()
555 CHECKIF(mp->fs->unlink == NULL) { in fs_unlink()
559 rc = mp->fs->unlink(mp, abs_path); in fs_unlink()
595 CHECKIF(mp->fs->rename == NULL) { in fs_rename()
599 rc = mp->fs->rename(mp, from, to); in fs_rename()
624 CHECKIF(mp->fs->stat == NULL) { in fs_stat()
628 rc = mp->fs->stat(mp, abs_path, entry); in fs_stat()
654 CHECKIF(mp->fs->statvfs == NULL) { in fs_statvfs()
658 rc = mp->fs->statvfs(mp, abs_path, stat); in fs_statvfs()
669 const struct fs_file_system_t *fs; in fs_mount() local
718 fs = fs_type_get(mp->type); in fs_mount()
719 if (fs == NULL) { in fs_mount()
725 CHECKIF(fs->mount == NULL) { in fs_mount()
731 if (fs->unmount == NULL) { in fs_mount()
736 rc = fs->mount(mp); in fs_mount()
744 mp->fs = fs; in fs_mount()
759 const struct fs_file_system_t *fs; in fs_mkfs() local
764 fs = fs_type_get(fs_type); in fs_mkfs()
765 if (fs == NULL) { in fs_mkfs()
772 CHECKIF(fs->mkfs == NULL) { in fs_mkfs()
778 rc = fs->mkfs(dev_id, cfg, flags); in fs_mkfs()
806 CHECKIF(mp->fs->unmount == NULL) { in fs_unmount()
812 rc = mp->fs->unmount(mp); in fs_unmount()
860 int fs_register(int type, const struct fs_file_system_t *fs) in fs_register() argument
869 rc = registry_add(type, fs); in fs_register()
880 int fs_unregister(int type, const struct fs_file_system_t *fs) in fs_unregister() argument
888 if ((ep == NULL) || (ep->fstp != fs)) { in fs_unregister()