Lines Matching refs:fs
6 #include "fs-test.h"
9 static void test_fs_async_write(const char *test_name, struct fs *fs)
18 file = fs_file_init(fs, "foo", FS_OPEN_MODE_REPLACE |
29 test_file = test_fs_file_get(fs, "foo");
52 static void test_fs_async_copy(const char *test_name, struct fs *fs)
59 src = fs_file_init(fs, "foo", FS_OPEN_MODE_REPLACE);
62 dest = fs_file_init(fs, "bar", FS_OPEN_MODE_REPLACE |
67 test_file = test_fs_file_get(fs, "bar");
82 struct fs *fs;
87 if (fs_init(driver, args, &fs_set, &fs, &error) < 0)
90 test_fs = test_fs_get(fs);
93 test_fs_async_write(test_name, fs);
94 test_fs_async_copy(test_name, fs);
96 fs_deinit(&fs);