/external/ltp/testcases/kernel/syscalls/mount/ |
D | mount02.c | 58 static const char *fs_type; variable 77 const char **fs_type; member 84 {&char_dev, &mntpoint, &fs_type, 0, ENOTBLK, NULL, NULL}, 85 {&device, &mntpoint, &fs_type, 0, EBUSY, do_mount, do_umount}, 86 {&device, &mntpoint, &fs_type, MS_REMOUNT | MS_RDONLY, EBUSY, 88 {&null, &mntpoint, &fs_type, 0, EINVAL, NULL, NULL}, 90 {&device, &mntpoint, &fs_type, MS_REMOUNT, EINVAL, NULL, NULL}, 91 {&fault, &mntpoint, &fs_type, 0, EFAULT, NULL, NULL}, 93 {&device, &long_path, &fs_type, 0, ENAMETOOLONG, NULL, NULL}, 94 {&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 if (mount(device, mntpoint_src, fs_type, 0, NULL) == -1) in main() 76 TEST(mount(mntpoint_src, mntpoint_des, fs_type, MS_MOVE, NULL)); in main() 126 fs_type = tst_dev_fs_type(); in setup() 132 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/syslinux/libinstaller/ |
D | fs.c | 34 void syslinux_make_bootsect(void *bs, int fs_type) in syslinux_make_bootsect() argument 36 if (fs_type == VFAT) { in syslinux_make_bootsect() 43 } else if (fs_type == NTFS) { in syslinux_make_bootsect() 53 static const char *check_fat_bootsect(const void *bs, int *fs_type) in check_fat_bootsect() argument 127 if (fs_type) in check_fat_bootsect() 128 *fs_type = VFAT; in check_fat_bootsect() 133 static const char *check_ntfs_bootsect(const void *bs, int *fs_type) in check_ntfs_bootsect() argument 142 if (fs_type) in check_ntfs_bootsect() 143 *fs_type = NTFS; in check_ntfs_bootsect() 148 const char *syslinux_check_bootsect(const void *bs, int *fs_type) in syslinux_check_bootsect() argument [all …]
|
/external/ltp/testcases/commands/mkfs/ |
D | mkfs01.sh | 113 local fs_type=$2 118 if [ -n "$fs_type" ]; then 119 mkfs_op="-t $fs_type" 122 if [ "$fs_type" = "xfs" ] || [ "$fs_type" = "btrfs" ]; then 129 if [ $? -eq 0 ] && [ "$fs_type" = "ntfs" ]; then 135 if [ "$fs_type" = "xfs" ] || [ "$fs_type" = "btrfs" ]; then 155 mkfs_verify_type "$fs_type" "$device" 163 mkfs_verify_size "$fs_type" "$size"
|
/external/ltp/lib/ |
D | tst_mkfs.c | 25 const char *dev, const char *fs_type, in tst_mkfs_() argument 39 if (!fs_type) { in tst_mkfs_() 45 snprintf(mkfs, sizeof(mkfs), "mkfs.%s", fs_type); in tst_mkfs_() 79 dev, fs_type, fs_opts_str, extra_opt ? extra_opt : ""); in tst_mkfs_() 96 const char *fs_type; in tst_dev_fs_type() local 98 fs_type = getenv("LTP_DEV_FS_TYPE"); in tst_dev_fs_type() 100 if (fs_type) in tst_dev_fs_type() 101 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/syslinux/extlinux/ |
D | main.c | 316 if (fs_type == EXT2 || fs_type == VFAT || fs_type == NTFS || in patch_file_and_bootblock() 317 fs_type == XFS || fs_type == UFS1 || fs_type == UFS2) { in patch_file_and_bootblock() 322 } else if (fs_type == BTRFS) { in patch_file_and_bootblock() 354 if (fs_type == EXT2) { in install_bootblock() 362 } else if (fs_type == BTRFS) { in install_bootblock() 370 } else if (fs_type == VFAT) { in install_bootblock() 378 } else if (fs_type == NTFS) { in install_bootblock() 386 } else if (fs_type == XFS) { in install_bootblock() 405 } else if (fs_type == UFS1 || fs_type == UFS2) { in install_bootblock() 406 uint32_t sblock_off = (fs_type == UFS1) ? in install_bootblock() [all …]
|
/external/e2fsprogs/lib/support/ |
D | plausible.c | 175 char *fs_type = NULL; in check_plausibility() local 230 fs_type = blkid_get_tag_value(cache, "TYPE", device); in check_plausibility() 231 if (fs_type) in check_plausibility() 236 if (fs_type) { in check_plausibility() 239 "labelled '%s'\n"), device, fs_type, fs_label); in check_plausibility() 242 fs_type); in check_plausibility() 243 if (strncmp(fs_type, "ext", 3) == 0) in check_plausibility() 245 free(fs_type); in check_plausibility()
|
/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 if (mount(device, MNTPOINT, fs_type, 0, NULL) < 0) { in setup() 155 if (mount(device, MNTPOINT, fs_type, MS_REMOUNT | MS_RDONLY, NULL) < 0) { in test_erofs() 166 if (mount(device, MNTPOINT, fs_type, MS_REMOUNT, NULL) < 0) { in test_erofs()
|
/external/ltp/testcases/kernel/syscalls/swapon/ |
D | swapon01.c | 35 static long fs_type; variable 42 if (fs_type == TST_BTRFS_MAGIC && errno == EINVAL) { in verify_swapon() 87 switch ((fs_type = tst_fs_type(cleanup, "."))) { in setup() 92 tst_fs_type_name(fs_type)); in setup()
|
D | swapon02.c | 50 static long fs_type; variable 84 if (fs_type == TST_BTRFS_MAGIC && errno == EINVAL) { in verify_swapon() 135 switch ((fs_type = tst_fs_type(cleanup, "."))) { in setup() 140 tst_fs_type_name(fs_type)); in setup() 149 if (fs_type != TST_BTRFS_MAGIC || errno != EINVAL) in setup()
|
/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()
|
/external/ltp/testcases/kernel/syscalls/swapoff/ |
D | swapoff01.c | 36 static long fs_type; variable 58 if (fs_type == TST_BTRFS_MAGIC && errno == EINVAL) { in verify_swapoff() 89 switch ((fs_type = tst_fs_type(cleanup, "."))) { in setup() 94 tst_fs_type_name(fs_type)); in setup()
|
/external/ltp/testcases/kernel/syscalls/fchmod/ |
D | fchmod06.c | 114 const char *fs_type; in setup() local 124 fs_type = tst_dev_fs_type(); in setup() 130 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup() 134 if (mount(device, "mntpoint", fs_type, 0, NULL) < 0) { in setup() 143 if (mount(device, "mntpoint", fs_type, in setup()
|
/external/ltp/testcases/kernel/syscalls/link/ |
D | link08.c | 123 const char *fs_type; in setup() local 133 fs_type = tst_dev_fs_type(); in setup() 146 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup() 148 if (mount(device, MNT_POINT, fs_type, 0, NULL) < 0) { in setup() 155 if (mount(device, MNT_POINT, fs_type, in setup()
|
/external/ltp/testcases/kernel/syscalls/mkdirat/ |
D | mkdirat02.c | 87 const char *fs_type; in setup() local 97 fs_type = tst_dev_fs_type(); in setup() 119 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup() 122 if (mount(device, "test_dir/mntpoint", fs_type, MS_RDONLY, NULL) < 0) { in setup() 129 if (mount(device, "mntpoint", fs_type, MS_RDONLY, NULL) < 0) { 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 if (mount(device, "mntpoint", fs_type, 0, NULL) < 0) { in setup() 124 if (mount(device, "mntpoint", fs_type, in setup()
|
/external/ltp/include/ |
D | tst_mkfs.h | 27 const char *dev, const char *fs_type, 30 #define SAFE_MKFS(device, fs_type, fs_opts, extra_opt) \ argument 31 tst_mkfs_(__FILE__, __LINE__, NULL, device, fs_type, \
|
/external/ltp/testcases/kernel/syscalls/rmdir/ |
D | rmdir02.c | 124 const char *fs_type; in setup() local 134 fs_type = tst_dev_fs_type(); in setup() 140 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup() 142 if (mount(device, MNTPOINT, fs_type, 0, NULL) == -1) { in setup() 147 if (mount(device, MNTPOINT, fs_type, MS_REMOUNT | MS_RDONLY, in setup()
|
/external/autotest/client/bin/ |
D | fsinfo.py | 31 def parse_mke2fs_conf(fs_type, conf_file='/etc/mke2fs.conf'): argument 54 if len(components) == 2 and current_fs_type == fs_type: 285 def match_ext_options(fs_type, dev, needed_options): argument 288 conf_opt = parse_mke2fs_conf(fs_type) 361 def match_mkfs_option(fs_type, dev, needed_options): argument 363 if fs_type.startswith('ext'): 364 ret = match_ext_options(fs_type, dev, needed_options) 365 elif fs_type == 'xfs':
|
/external/ltp/testcases/kernel/syscalls/utimes/ |
D | utimes01.c | 116 const char *fs_type; in setup() local 126 fs_type = tst_dev_fs_type(); in setup() 142 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup() 144 if (mount(device, MNTPOINT, fs_type, 0, NULL) == -1) { in setup() 153 if (mount(device, MNTPOINT, fs_type, 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 if (mount(device, "mntpoint", fs_type, 0, NULL) < 0) { in setup() 197 if (mount(device, "mntpoint", fs_type, in setup_erofs()
|
/external/ltp/testcases/kernel/syscalls/acct/ |
D | acct01.c | 54 static const char *fs_type; variable 147 fs_type = tst_dev_fs_type(); in setup() 153 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup() 155 if (mount(device, "mntpoint", fs_type, 0, NULL) < 0) { in setup() 164 if (mount(device, "mntpoint", fs_type, in setup()
|