Home
last modified time | relevance | path

Searched refs:tst_device (Results 1 - 25 of 58) sorted by relevance

123

/third_party/ltp/lib/newlib_tests/
H A Dtst_device.c37 fd = SAFE_OPEN(tst_device->dev, O_RDONLY); in setup()
45 SAFE_MKFS(tst_device->dev, tst_device->fs_type, NULL, NULL); in setup()
48 SAFE_MOUNT(tst_device->dev, mntpoint, tst_device->fs_type, 0, 0); in setup()
76 if (!strcmp(tst_device->dev, block_dev)) in test_tst_find_backing_dev()
81 mntpoint, tst_device->dev, block_dev); in test_tst_find_backing_dev()
/third_party/ltp/testcases/kernel/syscalls/quotactl/
H A Dquotactl07.c37 TST_EXP_PASS(do_quotactl(fd, QCMD(Q_XQUOTARM, USRQUOTA), tst_device->dev, 0, in verify_quota()
45 TST_EXP_FAIL(do_quotactl(fd, QCMD(Q_XQUOTARM, USRQUOTA), tst_device->dev, 0, in verify_quota()
58 SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, "usrquota"); in setup()
62 SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, "noquota"); in setup()
H A Dquotactl02.h38 TEST(do_quotactl(fd, QCMD(Q_XGETNEXTQUOTA, quotatype), tst_device->dev, in check_support_cmd()
43 TEST(do_quotactl(fd, QCMD(Q_XGETQSTATV, quotatype), tst_device->dev, test_id, in check_support_cmd()
54 TST_EXP_PASS_SILENT(do_quotactl(fd, subcmd, tst_device->dev, test_id, in check_qoff()
71 TST_EXP_PASS_SILENT(do_quotactl(fd, subcmd, tst_device->dev, test_id, in check_qon()
90 TST_EXP_PASS_SILENT(do_quotactl(fd, subcmd, tst_device->dev, test_id, in check_qoffv()
109 TST_EXP_PASS_SILENT(do_quotactl(fd, subcmd, tst_device->dev, test_id, in check_qonv()
128 TST_EXP_PASS_SILENT(do_quotactl(fd, subcmd, tst_device->dev, test_id, in check_qlim()
H A Dquotactl04.c104 SAFE_MKFS(tst_device->dev, tst_device->fs_type, fs_opts, NULL); in setup()
105 SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, NULL); in setup()
109 TEST(do_quotactl(fd, QCMD(Q_GETNEXTQUOTA, PRJQUOTA), tst_device->dev, in setup()
138 TST_EXP_PASS_SILENT(do_quotactl(fd, tc->cmd, tst_device->dev, *tc->id, tc->addr), in verify_quota()
H A Dquotactl08.c160 SAFE_MKFS(tst_device->dev, tst_device->fs_type, fs_opts, NULL); in setup()
161 SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, NULL); in setup()
165 TEST(do_quotactl(fd, QCMD(Q_GETNEXTQUOTA, USRQUOTA), tst_device->dev, in setup()
195 TST_EXP_PASS_SILENT(do_quotactl(fd, tc->cmd, tst_device->dev, *tc->id, tc->addr), in verify_quota()
H A Dquotactl06.c140 tst_device->dev, fmt_id, usrpath), in verify_quotactl()
158 TST_EXP_FAIL(quotactl(tc->cmd, tst_device->dev, *tc->id, in verify_quotactl()
164 tst_device->dev, fmt_id, usrpath), in verify_quotactl()
193 TEST(quotactl(QCMD(Q_GETNEXTQUOTA, USRQUOTA), tst_device->dev, in setup()
H A Dquotactl09.c97 TST_EXP_PASS_SILENT(do_quotactl(fd, QCMD(Q_QUOTAON, USRQUOTA), tst_device->dev, in verify_quotactl()
129 TST_EXP_FAIL(do_quotactl(fd, tc->cmd, tst_device->dev, *tc->id, tc->addr), in verify_quotactl()
133 TST_EXP_PASS_SILENT(do_quotactl(fd, QCMD(Q_QUOTAOFF, USRQUOTA), tst_device->dev, in verify_quotactl()
151 TEST(do_quotactl(fd, QCMD(Q_GETNEXTQUOTA, USRQUOTA), tst_device->dev, in setup()
/third_party/ltp/testcases/kernel/syscalls/ioctl/
H A Dioctl04.c41 TEST(mount(tst_device->dev, "mntpoint", tst_device->fs_type, 0, NULL)); in verify_ioctl()
58 TEST(mount(tst_device->dev, "mntpoint", tst_device->fs_type, MS_RDONLY, NULL)); in verify_ioctl()
74 fd = SAFE_OPEN(tst_device->dev, O_RDONLY); in setup()
/third_party/ltp/testcases/kernel/syscalls/fanotify/
H A Dfanotify22.c59 SAFE_MOUNT(tst_device->dev, MOUNT_PATH, tst_device->fs_type, in trigger_fs_abort()
267 SAFE_MOUNT(tst_device->dev, MOUNT_PATH, tst_device->fs_type, 0, NULL); in do_test()
279 do_debugfs_request(tst_device->dev, "sif " BAD_DIR " mode 0xff"); in pre_corrupt_fs()
280 do_debugfs_request(tst_device->dev, "ln <1> " BAD_LINK); in pre_corrupt_fs()
281 SAFE_MOUNT(tst_device->dev, MOUNT_PATH, tst_device->fs_type, 0, NULL); in pre_corrupt_fs()
/third_party/ltp/testcases/kernel/syscalls/mount/
H A Dmount07.c147 TST_EXP_PASS_SILENT(mount(tst_device->dev, MNTPOINT, tst_device->fs_type, in run()
149 if (!flag || !strcmp(tst_device->fs_type, "tmpfs")) in run()
154 TST_EXP_PASS_SILENT(mount(tst_device->dev, MNTPOINT, tst_device->fs_type, in run()
H A Dmount03.c72 SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, MS_REMOUNT, NULL); in test_remount()
216 TST_EXP_PASS_SILENT(mount(tst_device->dev, MNTPOINT, tst_device->fs_type, in run()
/third_party/ltp/testcases/kernel/syscalls/inotify/
H A Dinotify03.c58 SAFE_MOUNT(tst_device->dev, mntpoint, tst_device->fs_type, 0, NULL); in verify_inotify()
71 tst_res(TINFO, "umount %s", tst_device->dev); in verify_inotify()
135 SAFE_MOUNT(tst_device->dev, mntpoint, tst_device->fs_type, 0, NULL); in setup()
/third_party/ltp/testcases/kernel/syscalls/fsconfig/
H A Dfsconfig01.c25 TEST(fd = fsopen(tst_device->fs_type, 0)); in run()
33 TEST(fsconfig(fd, FSCONFIG_SET_STRING, "source", tst_device->dev, 0)); in run()
37 TEST(fsconfig(fd, FSCONFIG_SET_PATH, "sync", tst_device->dev, 0)); in run()
45 TEST(fsconfig(fd, FSCONFIG_SET_PATH_EMPTY, "sync", tst_device->dev, 0)); in run()
H A Dfsconfig03.c36 TEST(fd = fsopen(tst_device->fs_type, 0)); in run()
70 tst_device->fs_type); in run()
73 tst_device->fs_type); in run()
/third_party/ltp/testcases/misc/lvm/
H A Dprepare_lvm.sh46 LVM_DEV1=`tst_device acquire 1040 "$LVM_IMGDIR/lvm_pv1.img"`
48 LVM_DEV2=`tst_device acquire 1040 "$LVM_IMGDIR/lvm_pv2.img"`
54 LVM_DEV3=`tst_device acquire $DEVSIZE "$LVM_IMGDIR/lvm_pv3.img"`
56 LVM_DEV4=`tst_device acquire $DEVSIZE "$LVM_IMGDIR/lvm_pv4.img"`
/third_party/ltp/testcases/kernel/syscalls/statx/
H A Dstatx05.c96 SAFE_MKFS(tst_device->dev, tst_device->fs_type, fs_opts, NULL); in setup()
97 SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, 0); in setup()
H A Dstatx11.c36 TST_EXP_PASS_SILENT(statx(AT_FDCWD, tst_device->dev, 0, STATX_DIOALIGN, &buf), in verify_statx()
37 "statx(AT_FDCWD, %s, 0, STATX_DIOALIGN, &buf)", tst_device->dev); in verify_statx()
66 strcpy(full_name, tst_device->dev); in setup()
H A Dstatx09.c128 SAFE_MKFS(tst_device->dev, tst_device->fs_type, fs_opts, NULL); in setup()
130 TEST(mount(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, NULL)); in setup()
H A Dstatx04.c100 if (!strcmp(tst_device->fs_type, "xfs") || !strcmp(tst_device->fs_type, "tmpfs")) in setup()
104 if (!strcmp(tst_device->fs_type, "btrfs") && tst_kvercmp(4, 13, 0) < 0) in setup()
/third_party/ltp/testcases/kernel/syscalls/fsmount/
H A Dfsmount01.c44 TEST(sfd = fsopen(tst_device->fs_type, FSOPEN_CLOEXEC)); in run()
47 tst_device->fs_type); in run()
51 TEST(fsconfig(sfd, FSCONFIG_SET_STRING, "source", tst_device->dev, 0)); in run()
55 "fsconfig(FSCONFIG_SET_STRING) failed to set source to %s", tst_device->dev); in run()
/third_party/ltp/include/
H A Dtst_device.h13 struct tst_device { struct
22 extern struct tst_device *tst_device;
/third_party/ltp/testcases/kernel/syscalls/sync_file_range/
H A Dsync_file_range02.c52 tst_dev_bytes_written(tst_device->dev); in verify_sync_file_range()
64 written = tst_dev_bytes_written(tst_device->dev); in verify_sync_file_range()
110 if (!strcmp(tst_device->fs_type, "vfat")) { in setup()
/third_party/ltp/testcases/kernel/syscalls/sync/
H A Dsync01.c36 tst_dev_bytes_written(tst_device->dev); in verify_sync()
42 written = tst_dev_bytes_written(tst_device->dev); in verify_sync()
/third_party/ltp/testcases/kernel/syscalls/umount/
H A Dumount01.c21 SAFE_MOUNT(tst_device->dev, MNTPOINT, in verify_umount()
22 tst_device->fs_type, 0, NULL); in verify_umount()
/third_party/ltp/testcases/kernel/syscalls/readahead/
H A Dreadahead02.c268 tst_device->fs_type); in test_readahead()
277 tst_device->fs_type); in test_readahead()
351 SAFE_LSTAT(tst_device->dev, &sbuf); in setup_readahead_length()
353 SAFE_READLINK(tst_device->dev, tmp, PATH_MAX); in setup_readahead_length()
355 strcpy(tmp, tst_device->dev); in setup_readahead_length()

Completed in 8 milliseconds

123