Home
last modified time | relevance | path

Searched refs:dir_path (Results 1 – 3 of 3) sorted by relevance

/Zephyr-Core-2.7.6/tests/subsys/fs/multi-fs/src/
Dtest_common_dir.c18 int test_rmdir(const char *dir_path);
20 int test_mkdir(const char *dir_path, const char *file) in test_mkdir() argument
27 res = sprintf(file_path, "%s/%s", dir_path, file); in test_mkdir()
30 if (check_file_dir_exists(dir_path)) { in test_mkdir()
31 TC_PRINT("[%s] exists, delete it\n", dir_path); in test_mkdir()
32 if (test_rmdir(dir_path)) { in test_mkdir()
33 TC_PRINT("Error deleting dir %s\n", dir_path); in test_mkdir()
37 TC_PRINT("Creating new dir %s\n", dir_path); in test_mkdir()
41 res = fs_mkdir(dir_path); in test_mkdir()
66 TC_PRINT("Created dir %s!\n", dir_path); in test_mkdir()
[all …]
Dtest_common.h20 int test_rmdir(const char *dir_path);
21 int test_mkdir(const char *dir_path, const char *file);
/Zephyr-Core-2.7.6/subsys/fs/
Dfuse_fs_access.c67 char dir_path[PATH_MAX]; in is_mount_point() local
71 if (len >= sizeof(dir_path)) { in is_mount_point()
75 memcpy(dir_path, path, len); in is_mount_point()
76 dir_path[len] = '\0'; in is_mount_point()
77 return strcmp(dirname(dir_path), "/") == 0; in is_mount_point()