Home
last modified time | relevance | path

Searched refs:mountp (Results 1 – 5 of 5) sorted by relevance

/Zephyr-latest/tests/subsys/fs/fs_api/src/
Dtest_fs.c64 static int temp_unlink(struct fs_mount_t *mountp, const char *path) in temp_unlink() argument
66 if (mountp == NULL || path == NULL) { in temp_unlink()
70 if (strcmp(mountp->mnt_point, path) == 0) { in temp_unlink()
76 static int temp_rename(struct fs_mount_t *mountp, const char *from, in temp_rename() argument
79 if (mountp == NULL || from == NULL || to == NULL) { in temp_rename()
200 static int temp_mkdir(struct fs_mount_t *mountp, const char *path) in temp_mkdir() argument
202 if (mountp == NULL || path == NULL) { in temp_mkdir()
206 if (strcmp(mountp->mnt_point, path) == 0) { in temp_mkdir()
284 static int temp_stat(struct fs_mount_t *mountp, in temp_stat() argument
287 if (mountp == NULL || path == NULL || entry == NULL) { in temp_stat()
[all …]
/Zephyr-latest/include/zephyr/fs/
Dfs_sys.h135 int (*mount)(struct fs_mount_t *mountp);
142 int (*unmount)(struct fs_mount_t *mountp);
150 int (*unlink)(struct fs_mount_t *mountp, const char *name);
159 int (*rename)(struct fs_mount_t *mountp, const char *from,
168 int (*mkdir)(struct fs_mount_t *mountp, const char *name);
177 int (*stat)(struct fs_mount_t *mountp, const char *path,
187 int (*statvfs)(struct fs_mount_t *mountp, const char *path,
/Zephyr-latest/subsys/fs/ext2/
Dext2_ops.c241 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
[all …]
/Zephyr-latest/subsys/fs/
Dfat_fs.c156 static int fatfs_unlink(struct fs_mount_t *mountp, const char *path) in fatfs_unlink() argument
169 static int fatfs_rename(struct fs_mount_t *mountp, const char *from, in fatfs_rename() argument
333 static int fatfs_mkdir(struct fs_mount_t *mountp, const char *path) in fatfs_mkdir() argument
397 static int fatfs_stat(struct fs_mount_t *mountp, in fatfs_stat() argument
414 static int fatfs_statvfs(struct fs_mount_t *mountp, in fatfs_statvfs() argument
422 res = f_getfree(translate_path(mountp->mnt_point), &f_bfree, &fs); in fatfs_statvfs()
447 static int fatfs_mount(struct fs_mount_t *mountp) in fatfs_mount() argument
451 res = f_mount((FATFS *)mountp->fs_data, translate_path(mountp->mnt_point), 1); in fatfs_mount()
455 (mountp->flags & FS_MOUNT_FLAG_READ_ONLY) != 0) { in fatfs_mount()
460 (mountp->flags & FS_MOUNT_FLAG_NO_FORMAT) == 0) { in fatfs_mount()
[all …]
Dlittlefs_fs.c343 static int littlefs_unlink(struct fs_mount_t *mountp, const char *path) in littlefs_unlink() argument
345 struct fs_littlefs *fs = mountp->fs_data; in littlefs_unlink()
347 path = fs_impl_strip_prefix(path, mountp); in littlefs_unlink()
357 static int littlefs_rename(struct fs_mount_t *mountp, const char *from, in littlefs_rename() argument
360 struct fs_littlefs *fs = mountp->fs_data; in littlefs_rename()
362 from = fs_impl_strip_prefix(from, mountp); in littlefs_rename()
363 to = fs_impl_strip_prefix(to, mountp); in littlefs_rename()
454 static int littlefs_mkdir(struct fs_mount_t *mountp, const char *path) in littlefs_mkdir() argument
456 struct fs_littlefs *fs = mountp->fs_data; in littlefs_mkdir()
458 path = fs_impl_strip_prefix(path, mountp); in littlefs_mkdir()
[all …]