Lines Matching refs:mountp

241 static int ext2_mkdir(struct fs_mount_t *mountp, const char *name)  in ext2_mkdir()  argument
244 struct ext2_data *fs = mountp->fs_data; in ext2_mkdir()
246 const char *path = fs_impl_strip_prefix(name, mountp); in ext2_mkdir()
368 static int ext2_mount(struct fs_mount_t *mountp) in ext2_mount() argument
374 bool possible_format = (mountp->flags & FS_MOUNT_FLAG_NO_FORMAT) == 0 && in ext2_mount()
375 (mountp->flags & FS_MOUNT_FLAG_READ_ONLY) == 0; in ext2_mount()
378 ret = ext2_init_storage(&fs, mountp->storage_dev, mountp->flags); in ext2_mount()
384 if (mountp->flags & FS_MOUNT_FLAG_READ_ONLY) { in ext2_mount()
439 mountp->fs_data = fs; in ext2_mount()
482 static int ext2_unmount(struct fs_mount_t *mountp) in ext2_unmount() argument
485 struct ext2_data *fs = mountp->fs_data; in ext2_unmount()
496 mountp->fs_data = NULL; in ext2_unmount()
500 static int ext2_unlink(struct fs_mount_t *mountp, const char *name) in ext2_unlink() argument
503 struct ext2_data *fs = mountp->fs_data; in ext2_unlink()
505 const char *path = fs_impl_strip_prefix(name, mountp); in ext2_unlink()
532 static int ext2_rename(struct fs_mount_t *mountp, const char *from, const char *to) in ext2_rename() argument
535 struct ext2_data *fs = mountp->fs_data; in ext2_rename()
539 const char *path_from = fs_impl_strip_prefix(from, mountp); in ext2_rename()
540 const char *path_to = fs_impl_strip_prefix(to, mountp); in ext2_rename()
581 static int ext2_stat(struct fs_mount_t *mountp, const char *path, struct fs_dirent *entry) in ext2_stat() argument
584 struct ext2_data *fs = mountp->fs_data; in ext2_stat()
586 path = fs_impl_strip_prefix(path, mountp); in ext2_stat()
610 static int ext2_statvfs(struct fs_mount_t *mountp, const char *path, struct fs_statvfs *stat) in ext2_statvfs() argument
613 struct ext2_data *fs = mountp->fs_data; in ext2_statvfs()