/external/ltp/lib/ |
D | tst_supported_fs_types.c | 30 static int has_mkfs(const char *fs_type) in has_mkfs() argument 35 sprintf(buf, "mkfs.%s >/dev/null 2>&1", fs_type); in has_mkfs() 40 tst_res(TINFO, "mkfs.%s does not exist", fs_type); in has_mkfs() 44 tst_res(TINFO, "mkfs.%s does exist", fs_type); in has_mkfs() 48 static int has_kernel_support(const char *fs_type, int flags) in has_kernel_support() argument 58 mount("/dev/zero", tmpdir, fs_type, 0, NULL); in has_kernel_support() 60 tst_res(TINFO, "Kernel supports %s", fs_type); in has_kernel_support() 79 sprintf(buf, "mount.%s >/dev/null 2>&1", fs_type); in has_kernel_support() 83 tst_res(TINFO, "Filesystem %s is not supported", fs_type); in has_kernel_support() 92 tst_res(TINFO, "FUSE does support %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 snprintf(mkfs, sizeof(mkfs), "mkfs.%s", fs_type); in tst_mkfs_() 90 dev, fs_type, fs_opts_str, extra_opts_str); in tst_mkfs_() 107 const char *fs_type; in tst_dev_fs_type() local 109 fs_type = getenv("LTP_DEV_FS_TYPE"); in tst_dev_fs_type() 111 if (fs_type) in tst_dev_fs_type() 112 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_() 174 tst_fs_type_name(fs_type)); in tst_fs_fill_subdirs_()
|
/external/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()
|
/external/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 103 if [ $? -eq 0 ] && [ "$fs_type" = "ntfs" ]; then 109 if [ "$fs_type" = "xfs" ] || [ "$fs_type" = "btrfs" ]; then 129 mkfs_verify_type "$fs_type" "$device" 137 mkfs_verify_size "$fs_type" "$size"
|
/external/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()
|
/external/e2fsprogs/lib/support/ |
D | plausible.c | 186 char *fs_type = NULL; in check_plausibility() local 241 fs_type = blkid_get_tag_value(cache, "TYPE", device); in check_plausibility() 242 if (fs_type) in check_plausibility() 247 if (fs_type) { in check_plausibility() 250 device, fs_type, fs_label); in check_plausibility() 253 fs_type); in check_plausibility() 254 if (strncmp(fs_type, "ext", 3) == 0) in check_plausibility() 256 free(fs_type); in check_plausibility()
|
/external/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()
|
/external/ltp/testcases/kernel/syscalls/fchown/ |
D | fchown04.c | 98 const char *fs_type; in setup() local 106 fs_type = tst_dev_fs_type(); in setup() 116 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup() 118 SAFE_MOUNT(cleanup, device, "mntpoint", fs_type, 0, NULL); in setup() 121 SAFE_MOUNT(cleanup, device, "mntpoint", fs_type, in setup()
|
/external/ltp/include/ |
D | tst_mkfs.h | 28 const char *dev, const char *fs_type, 31 #define SAFE_MKFS(device, fs_type, fs_opts, extra_opts) \ argument 32 tst_mkfs_(__FILE__, __LINE__, NULL, device, fs_type, \
|
/external/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()
|
/external/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()
|
/external/ltp/testcases/kernel/syscalls/linkat/ |
D | linkat02.c | 55 static const char *fs_type; variable 151 fs_type = tst_dev_fs_type(); in setup() 173 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup() 176 SAFE_MOUNT(cleanup, device, "mntpoint", fs_type, 0, NULL); in setup() 194 SAFE_MOUNT(cleanup, device, "mntpoint", fs_type, in setup_erofs()
|
/external/autotest/client/bin/ |
D | fsinfo.py | 39 def parse_mke2fs_conf(fs_type, conf_file='/etc/mke2fs.conf'): argument 62 if len(components) == 2 and current_fs_type == fs_type: 293 def match_ext_options(fs_type, dev, needed_options): argument 296 conf_opt = parse_mke2fs_conf(fs_type) 369 def match_mkfs_option(fs_type, dev, needed_options): argument 371 if fs_type.startswith('ext'): 372 ret = match_ext_options(fs_type, dev, needed_options) 373 elif fs_type == 'xfs':
|
/external/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()
|
/external/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()
|
/external/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()
|
/external/ltp/testcases/kernel/syscalls/chown/ |
D | chown04.c | 139 const char *fs_type; in setup() local 147 fs_type = tst_dev_fs_type(); in setup() 152 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup() 175 SAFE_MOUNT(cleanup, device, "mntpoint", fs_type, MS_RDONLY, NULL); in setup()
|
/external/ltp/testcases/kernel/syscalls/renameat/ |
D | renameat01.c | 134 const char *fs_type; in setup() local 149 fs_type = tst_dev_fs_type(); in setup() 185 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup() 187 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL); in setup() 190 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, MS_REMOUNT | MS_RDONLY, in setup()
|