Home
last modified time | relevance | path

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

12345

/external/ltp/lib/
Dtst_supported_fs_types.c42 static int has_mkfs(const char *fs_type) in has_mkfs() argument
47 sprintf(buf, "mkfs.%s >/dev/null 2>&1", fs_type); in has_mkfs()
52 tst_res(TINFO, "mkfs.%s does not exist", fs_type); in has_mkfs()
56 tst_res(TINFO, "mkfs.%s does exist", fs_type); in has_mkfs()
60 static int has_kernel_support(const char *fs_type) in has_kernel_support() argument
70 mount("/dev/zero", tmpdir, fs_type, 0, NULL); in has_kernel_support()
72 tst_res(TINFO, "Kernel supports %s", fs_type); in has_kernel_support()
91 sprintf(buf, "mount.%s >/dev/null 2>&1", fs_type); in has_kernel_support()
95 tst_res(TINFO, "Filesystem %s is not supported", fs_type); in has_kernel_support()
99 tst_res(TINFO, "FUSE does support %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 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()
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_()
174 tst_fs_type_name(fs_type)); in tst_fs_fill_subdirs_()
/external/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 …]
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()
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()
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()
/external/ltp/testcases/commands/mkfs/
Dmkfs01.sh112 local fs_type=$2
117 if [ -n "$fs_type" ]; then
118 mkfs_op="-t $fs_type"
121 if [ "$fs_type" = "xfs" ] || [ "$fs_type" = "btrfs" ]; then
128 if [ $? -eq 0 ] && [ "$fs_type" = "ntfs" ]; then
134 if [ "$fs_type" = "xfs" ] || [ "$fs_type" = "btrfs" ]; then
154 mkfs_verify_type "$fs_type" "$device"
162 mkfs_verify_size "$fs_type" "$size"
/external/u-boot/fs/
Dfs.c26 static int fs_type = FS_TYPE_ANY; variable
278 return fs_get_info(fs_type)->name; in fs_get_type_name()
316 fs_type = info->fstype; in fs_set_blk_dev()
341 fs_type = info->fstype; in fs_set_blk_dev_with_part()
351 struct fstype_info *info = fs_get_info(fs_type); in fs_close()
355 fs_type = FS_TYPE_ANY; in fs_close()
360 struct fstype_info *info = fs_get_info(fs_type); in fs_uuid()
369 struct fstype_info *info = fs_get_info(fs_type); in fs_ls()
373 fs_type = FS_TYPE_ANY; in fs_ls()
383 struct fstype_info *info = fs_get_info(fs_type); in fs_exists()
[all …]
/external/e2fsprogs/lib/support/
Dplausible.c186 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/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()
/external/libbrillo/brillo/imageloader/
Dmanifest.cc130 std::string fs_type; in ParseManifest() local
131 if (manifest_dict->GetString(kFSType, &fs_type)) { in ParseManifest()
132 if (fs_type == "ext4") { in ParseManifest()
134 } else if (fs_type == "squashfs") { in ParseManifest()
137 LOG(ERROR) << "Unsupported file system type: " << fs_type; in ParseManifest()
175 FileSystem Manifest::fs_type() const { in fs_type() function in brillo::imageloader::Manifest
/external/ltp/testcases/kernel/syscalls/swapon/
Dswapon01.c35 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()
Dswapon02.c50 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/
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()
/external/ltp/testcases/kernel/syscalls/swapoff/
Dswapoff01.c36 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/fchown/
Dfchown04.c98 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/autotest/client/bin/
Dfsinfo.py31 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/include/
Dtst_mkfs.h28 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/
Dread02.c58 static long fs_type; variable
81 tst_fs_type_name(fs_type)); in verify_read()
122 fs_type = tst_fs_type("."); in setup()
123 if (fs_type != TST_TMPFS_MAGIC) in setup()
/external/ltp/testcases/kernel/syscalls/linkat/
Dlinkat02.c55 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/ltp/testcases/kernel/syscalls/acct/
Dacct01.c54 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 SAFE_MOUNT(cleanup, device, "mntpoint", fs_type, 0, NULL); in setup()
161 SAFE_MOUNT(cleanup, device, "mntpoint", fs_type, in setup()
/external/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()

12345