Home
last modified time | relevance | path

Searched refs:fs_type (Results 1 – 25 of 136) sorted by relevance

123456

/third_party/ltp/lib/
Dtst_supported_fs_types.c32 static int has_mkfs(const char *fs_type) in has_mkfs() argument
37 if (strstr(fs_type, "tmpfs")) { in has_mkfs()
42 sprintf(buf, "mkfs.%s >/dev/null 2>&1", fs_type); in has_mkfs()
47 tst_res(TINFO, "mkfs.%s does not exist", fs_type); in has_mkfs()
51 tst_res(TINFO, "mkfs.%s does exist", fs_type); in has_mkfs()
55 int tst_fs_in_skiplist(const char *fs_type, const char *const *skiplist) in tst_fs_in_skiplist() argument
63 if (!strcmp(fs_type, skiplist[i])) in tst_fs_in_skiplist()
70 static enum tst_fs_impl has_kernel_support(const char *fs_type) in has_kernel_support() argument
85 ret = mount("/dev/zero", template, fs_type, 0, NULL); in has_kernel_support()
89 tst_res(TINFO, "Kernel supports %s", fs_type); in has_kernel_support()
[all …]
Dtst_mkfs.c26 const char *dev, const char *fs_type, in tst_mkfs_() argument
41 if (!fs_type) { in tst_mkfs_()
47 if (!strcmp(fs_type, "tmpfs")) { in tst_mkfs_()
53 snprintf(mkfs, sizeof(mkfs), "mkfs.%s", fs_type); in tst_mkfs_()
98 dev, fs_type, fs_opts_str, extra_opts_str); in tst_mkfs_()
117 const char *fs_type; in tst_dev_fs_type() local
119 fs_type = getenv("LTP_DEV_FS_TYPE"); in tst_dev_fs_type()
121 if (fs_type) in tst_dev_fs_type()
122 return fs_type; in tst_dev_fs_type()
Dtst_fs_link_count.c111 long fs_type; in tst_fs_fill_subdirs_() local
123 fs_type = tst_fs_type(cleanup, dir); in tst_fs_fill_subdirs_()
127 if (fs_type == subdir_limit_whitelist[i]) in tst_fs_fill_subdirs_()
132 "%s filesystem", tst_fs_type_name(fs_type)); in tst_fs_fill_subdirs_()
173 tst_fs_type_name(fs_type)); in tst_fs_fill_subdirs_()
/third_party/ltp/testcases/commands/mkfs/
Dmkfs01.sh87 local fs_type=$2
92 if [ -n "$fs_type" ]; then
93 mkfs_op="-t $fs_type"
96 if [ "$fs_type" = "xfs" ] || [ "$fs_type" = "btrfs" ]; then
99 if [ "$fs_type" = "ext3" ] || [ "$fs_type" = "ext4" ]; then
106 if [ $? -eq 0 ] && [ "$fs_type" = "ntfs" ]; then
112 if [ "$fs_type" = "xfs" ] || [ "$fs_type" = "btrfs" ]; then
132 mkfs_verify_type "$fs_type" "$device"
141 mkfs_verify_size "$fs_type" "$size"
/third_party/ltp/testcases/kernel/syscalls/mount/
Dmount02.c59 static const char *fs_type; variable
78 const char **fs_type; member
85 {&char_dev, &mntpoint, &fs_type, 0, ENOTBLK, NULL, NULL},
86 {&device, &mntpoint, &fs_type, 0, EBUSY, do_mount, do_umount},
87 {&device, &mntpoint, &fs_type, MS_REMOUNT | MS_RDONLY, EBUSY,
89 {&null, &mntpoint, &fs_type, 0, EINVAL, NULL, NULL},
91 {&device, &mntpoint, &fs_type, MS_REMOUNT, EINVAL, NULL, NULL},
92 {&fault, &mntpoint, &fs_type, 0, EFAULT, NULL, NULL},
94 {&device, &long_path, &fs_type, 0, ENAMETOOLONG, NULL, NULL},
95 {&device, &nonexistent, &fs_type, 0, ENOENT, NULL, NULL},
[all …]
Dmount01.c40 static const char *fs_type; variable
54 TEST(mount(device, MNTPOINT, fs_type, 0, NULL)); in main()
80 fs_type = tst_dev_fs_type(); in setup()
86 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup()
Dmount06.c53 static const char *fs_type; variable
72 SAFE_MOUNT(cleanup, device, mntpoint_src, fs_type, 0, NULL); in main()
74 TEST(mount(mntpoint_src, mntpoint_des, fs_type, MS_MOVE, NULL)); in main()
124 fs_type = tst_dev_fs_type(); in setup()
130 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup()
Dmount04.c38 static const char *fs_type; variable
46 TEST(mount(device, mntpoint, fs_type, 0, NULL)); in verify_mount()
95 fs_type = tst_dev_fs_type(); in setup()
101 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup()
Dmount03.c65 static const char *fs_type; variable
97 TEST(mount(device, mntpoint, fs_type, rwflags[i], in main()
245 TEST(mount(device, mntpoint, fs_type, MS_REMOUNT, NULL)); in test_rwflag()
348 fs_type = tst_dev_fs_type(); in setup()
354 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup()
368 SAFE_MOUNT(cleanup, device, mntpoint, fs_type, 0, NULL); in setup()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_fs_linear_llvm.c141 struct lp_type fs_type, in llvm_fragment_body() argument
152 LLVMValueRef src1 = lp_build_zero(gallivm, fs_type); in llvm_fragment_body()
189 lp_build_tgsi_aos(gallivm, shader->base.tokens, fs_type, in llvm_fragment_body()
218 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, fs_type); in llvm_fragment_body()
231 fs_type, in llvm_fragment_body()
258 struct lp_type fs_type; in llvmpipe_fs_variant_linear_llvm() local
292 memset(&fs_type, 0, sizeof fs_type); in llvmpipe_fs_variant_linear_llvm()
293 fs_type.floating = FALSE; in llvmpipe_fs_variant_linear_llvm()
294 fs_type.sign = FALSE; in llvmpipe_fs_variant_linear_llvm()
295 fs_type.norm = TRUE; in llvmpipe_fs_variant_linear_llvm()
[all …]
/third_party/ltp/testcases/kernel/syscalls/rename/
Drename11.c57 static const char *fs_type; variable
101 fs_type = tst_dev_fs_type(); in setup()
107 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup()
110 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL); in setup()
152 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, MS_REMOUNT | MS_RDONLY, in test_erofs()
161 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, MS_REMOUNT, NULL); in test_erofs()
/third_party/e2fsprogs/lib/support/
Dplausible.c187 char *fs_type = NULL; in check_plausibility() local
242 fs_type = blkid_get_tag_value(cache, "TYPE", device); in check_plausibility()
243 if (fs_type) in check_plausibility()
248 if (fs_type) { in check_plausibility()
251 device, fs_type, fs_label); in check_plausibility()
254 fs_type); in check_plausibility()
255 if (strncmp(fs_type, "ext", 3) == 0) in check_plausibility()
257 free(fs_type); in check_plausibility()
/third_party/ltp/testcases/kernel/syscalls/umount2/
Dumount2_01.c47 static const char *fs_type; variable
75 fs_type = tst_dev_fs_type(); in setup()
81 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup()
94 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL); in umount2_verify()
125 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL); in umount2_verify()
Dumount2_03.c44 static const char *fs_type; variable
95 fs_type = tst_dev_fs_type(); in setup()
101 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup()
112 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL); in test_umount2()
Dumount2_02.c48 static const char *fs_type; variable
85 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL); in main()
115 fs_type = tst_dev_fs_type(); in setup()
121 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup()
/third_party/libuv/test/
Dtest-fs-readdir.c51 ASSERT(req->fs_type == UV_FS_CLOSEDIR); in empty_closedir_cb()
62 ASSERT(req->fs_type == UV_FS_READDIR); in empty_readdir_cb()
78 ASSERT(req->fs_type == UV_FS_OPENDIR); in empty_opendir_cb()
119 ASSERT(opendir_req.fs_type == UV_FS_OPENDIR); in TEST_IMPL()
172 ASSERT(req->fs_type == UV_FS_OPENDIR); in non_existing_opendir_cb()
192 ASSERT(opendir_req.fs_type == UV_FS_OPENDIR); in TEST_IMPL()
224 ASSERT(req->fs_type == UV_FS_OPENDIR); in file_opendir_cb()
245 ASSERT(opendir_req.fs_type == UV_FS_OPENDIR); in TEST_IMPL()
286 ASSERT(req->fs_type == UV_FS_READDIR); in non_empty_readdir_cb()
327 ASSERT(req->fs_type == UV_FS_OPENDIR); in non_empty_opendir_cb()
[all …]
/third_party/ltp/include/
Dtst_mkfs.h15 const char *dev, const char *fs_type,
18 #define SAFE_MKFS(device, fs_type, fs_opts, extra_opts) \ argument
19 tst_mkfs_(__FILE__, __LINE__, NULL, device, fs_type, \
/third_party/ltp/testcases/kernel/syscalls/read/
Dread02.c45 static long fs_type; variable
68 tst_fs_type_name(fs_type)); in verify_read()
109 fs_type = tst_fs_type("."); in setup()
110 if (fs_type != TST_TMPFS_MAGIC) in setup()
/third_party/ltp/testcases/kernel/syscalls/lchown/
Dlchown03.c89 const char *fs_type; in setup() local
99 fs_type = tst_dev_fs_type(); in setup()
110 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup()
112 SAFE_MOUNT(cleanup, device, TEST_EROFS, fs_type, MS_RDONLY, NULL); in setup()
/third_party/ltp/testcases/kernel/syscalls/linkat/
Dlinkat02.c54 static const char *fs_type; variable
150 fs_type = tst_dev_fs_type(); in setup()
172 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup()
175 SAFE_MOUNT(cleanup, device, "mntpoint", fs_type, 0, NULL); in setup()
193 SAFE_MOUNT(cleanup, device, "mntpoint", fs_type, in setup_erofs()
/third_party/ltp/testcases/kernel/syscalls/renameat2/
Drenameat202.c45 static long fs_type; variable
88 fs_type = tst_fs_type(cleanup, "."); in setup()
126 if (TEST_ERRNO == EINVAL && TST_BTRFS_MAGIC == fs_type) { in renameat2_verify()
129 tst_fs_type_name(fs_type)); in renameat2_verify()
Drenameat201.c54 static long fs_type; variable
110 fs_type = tst_fs_type(cleanup, "."); in setup()
141 && fs_type == TST_BTRFS_MAGIC) { in renameat2_verify()
144 tst_fs_type_name(fs_type)); in renameat2_verify()
/third_party/ltp/testcases/kernel/syscalls/utime/
Dutime06.c105 const char *fs_type; in setup() local
117 fs_type = tst_dev_fs_type(); in setup()
122 tst_mkfs(cleanup, dev, fs_type, NULL, NULL); in setup()
125 SAFE_MOUNT(cleanup, dev, MNT_POINT, fs_type, MS_RDONLY, NULL); in setup()
/third_party/ltp/testcases/kernel/syscalls/mknod/
Dmknod07.c114 const char *fs_type; in setup() local
122 fs_type = tst_dev_fs_type(); in setup()
128 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup()
134 SAFE_MOUNT(cleanup, device, MNT_POINT, fs_type, MS_RDONLY, NULL); in setup()
/third_party/ltp/testcases/kernel/syscalls/renameat/
Drenameat01.c133 const char *fs_type; in setup() local
148 fs_type = tst_dev_fs_type(); in setup()
184 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup()
186 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL); in setup()
189 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, MS_REMOUNT | MS_RDONLY, in setup()

123456