/third_party/ltp/lib/ |
D | tst_supported_fs_types.c | 32 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 …]
|
D | tst_mkfs.c | 26 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()
|
D | tst_fs_link_count.c | 111 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/ |
D | mkfs01.sh | 87 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/ |
D | mount02.c | 59 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 …]
|
D | mount01.c | 40 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()
|
D | mount06.c | 53 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()
|
D | mount04.c | 38 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()
|
D | mount03.c | 65 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/ |
D | lp_state_fs_linear_llvm.c | 141 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/ |
D | rename11.c | 57 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/ |
D | plausible.c | 187 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/ |
D | umount2_01.c | 47 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()
|
D | umount2_03.c | 44 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()
|
D | umount2_02.c | 48 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/ |
D | test-fs-readdir.c | 51 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/ |
D | tst_mkfs.h | 15 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/ |
D | read02.c | 45 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/ |
D | lchown03.c | 89 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/ |
D | linkat02.c | 54 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/ |
D | renameat202.c | 45 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()
|
D | renameat201.c | 54 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/ |
D | utime06.c | 105 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/ |
D | mknod07.c | 114 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/ |
D | renameat01.c | 133 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()
|