Lines Matching refs:stat

38 	struct fs_dirent stat;  in create_write_hello()  local
40 zassert_equal(fs_stat(path.path, &stat), in create_write_hello()
44 zassert_equal(stat.type, FS_DIR_ENTRY_FILE, in create_write_hello()
46 zassert_str_equal(stat.name, HELLO, "stat new hello not hello"); in create_write_hello()
47 zassert_equal(stat.size, 0, in create_write_hello()
54 zassert_equal(fs_stat(path.path, &stat), in create_write_hello()
58 zassert_equal(stat.type, FS_DIR_ENTRY_FILE, in create_write_hello()
60 zassert_str_equal(stat.name, HELLO, "stat written hello not hello"); in create_write_hello()
67 zassert_equal(stat.size, 0, in create_write_hello()
74 zassert_equal(fs_stat(path.path, &stat), in create_write_hello()
78 zassert_equal(stat.type, FS_DIR_ENTRY_FILE, in create_write_hello()
80 zassert_str_equal(stat.name, HELLO, "stat closed hello not hello"); in create_write_hello()
81 zassert_equal(stat.size, TESTFS_BUFFER_SIZE, in create_write_hello()
138 struct fs_dirent stat; in seek_within_hello() local
140 zassert_equal(fs_stat(path.path, &stat), in seek_within_hello()
143 zassert_equal(stat.size, TESTFS_BUFFER_SIZE, in seek_within_hello()
146 off_t pos = stat.size / 4; in seek_within_hello()
159 zassert_equal(fs_tell(&file), stat.size, in seek_within_hello()
162 zassert_equal(fs_seek(&file, -stat.size, FS_SEEK_CUR), in seek_within_hello()
173 zassert_equal(fs_tell(&file), stat.size - pos, in seek_within_hello()
176 zassert_equal(testfs_verify_incrementing(&file, stat.size - pos, in seek_within_hello()
203 struct fs_dirent stat; in truncate_hello() local
205 zassert_equal(fs_stat(path.path, &stat), in truncate_hello()
208 zassert_equal(stat.size, TESTFS_BUFFER_SIZE, in truncate_hello()
211 off_t pos = 3 * stat.size / 4; in truncate_hello()
223 zassert_equal(fs_stat(path.path, &stat), in truncate_hello()
232 zassert_equal(stat.size, TESTFS_BUFFER_SIZE, in truncate_hello()
244 zassert_equal(fs_stat(path.path, &stat), in truncate_hello()
247 zassert_equal(stat.size, pos, in truncate_hello()
263 struct fs_dirent stat; in unlink_hello() local
265 zassert_equal(fs_stat(path.path, &stat), in unlink_hello()
271 zassert_equal(fs_stat(path.path, &stat), in unlink_hello()
294 struct fs_dirent stat; in sync_goodbye() local
296 zassert_equal(fs_stat(path.path, &stat), in sync_goodbye()
299 zassert_equal(stat.size, 0, in sync_goodbye()
311 zassert_equal(stat.size, 0, in sync_goodbye()
321 zassert_equal(fs_stat(path.path, &stat), in sync_goodbye()
324 printk("sync size %u\n", (uint32_t)stat.size); in sync_goodbye()
326 zassert_equal(stat.size, TESTFS_BUFFER_SIZE, in sync_goodbye()
333 zassert_equal(fs_stat(path.path, &stat), in sync_goodbye()
336 zassert_equal(stat.size, TESTFS_BUFFER_SIZE, in sync_goodbye()