Home
last modified time | relevance | path

Searched refs:tst_device (Results 1 – 25 of 52) sorted by relevance

123

/third_party/ltp/testcases/kernel/syscalls/quotactl/
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()
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()
Dquotactl08.c159 SAFE_MKFS(tst_device->dev, tst_device->fs_type, fs_opts, NULL); in setup()
160 SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, NULL); in setup()
164 TEST(do_quotactl(fd, QCMD(Q_GETNEXTQUOTA, USRQUOTA), tst_device->dev, in setup()
194 TST_EXP_PASS_SILENT(do_quotactl(fd, tc->cmd, tst_device->dev, *tc->id, tc->addr), in verify_quota()
Dquotactl04.c125 SAFE_MKFS(tst_device->dev, tst_device->fs_type, fs_opts, NULL); in setup()
126 do_mount(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, NULL); in setup()
148 TST_EXP_PASS_SILENT(do_quotactl(fd, tc->cmd, tst_device->dev, *tc->id, tc->addr), in verify_quota()
Dquotactl06.c138 TST_EXP_PASS_SILENT(quotactl(QCMD(Q_QUOTAON, USRQUOTA), tst_device->dev, in verify_quotactl()
154 TST_EXP_FAIL(quotactl(tc->cmd, tst_device->dev, *tc->id, tc->addr), in verify_quotactl()
158 TST_EXP_PASS_SILENT(quotactl(QCMD(Q_QUOTAOFF, USRQUOTA), tst_device->dev, in verify_quotactl()
183 tst_require_quota_support(tst_device->dev, fmt_id, usrpath); in setup()
187 TEST(quotactl(QCMD(Q_GETNEXTQUOTA, USRQUOTA), tst_device->dev, in setup()
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/
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/misc/lvm/
Dprepare_lvm.sh47 LVM_DEV1=`tst_device acquire 1040 "$LVM_IMGDIR/lvm_pv1.img"`
49 LVM_DEV2=`tst_device acquire 1040 "$LVM_IMGDIR/lvm_pv2.img"`
55 LVM_DEV3=`tst_device acquire $DEVSIZE "$LVM_IMGDIR/lvm_pv3.img"`
57 LVM_DEV4=`tst_device acquire $DEVSIZE "$LVM_IMGDIR/lvm_pv4.img"`
/third_party/ltp/testcases/kernel/syscalls/inotify/
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/statx/
Dstatx05.c95 SAFE_MKFS(tst_device->dev, tst_device->fs_type, fs_opts, NULL); in setup()
96 SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, 0); in setup()
/third_party/ltp/testcases/kernel/syscalls/fsconfig/
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()
/third_party/ltp/include/
Dtst_device.h12 struct tst_device { struct
21 extern struct tst_device *tst_device; argument
/third_party/ltp/testcases/kernel/syscalls/fsmount/
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()
Dfsmount02.c36 TEST(fd = fsopen(tst_device->fs_type, 0)); in setup()
40 TEST(fsconfig(fd, FSCONFIG_SET_STRING, "source", tst_device->dev, 0)); in setup()
/third_party/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify22.c57 SAFE_MOUNT(tst_device->dev, MOUNT_PATH, tst_device->fs_type, in trigger_fs_abort()
261 do_debugfs_request(tst_device->dev, "sif " BAD_DIR " mode 0xff"); in pre_corrupt_fs()
262 SAFE_MOUNT(tst_device->dev, MOUNT_PATH, tst_device->fs_type, 0, NULL); in pre_corrupt_fs()
/third_party/ltp/testcases/kernel/syscalls/sync_file_range/
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/readahead/
Dreadahead02.c267 tst_device->fs_type); in test_readahead()
276 tst_device->fs_type); in test_readahead()
337 SAFE_LSTAT(tst_device->dev, &sbuf); in setup_readahead_length()
339 SAFE_READLINK(tst_device->dev, tmp, PATH_MAX); in setup_readahead_length()
341 strcpy(tmp, tst_device->dev); in setup_readahead_length()
/third_party/ltp/testcases/kernel/syscalls/umount/
Dumount01.c21 SAFE_MOUNT(tst_device->dev, MNTPOINT, in verify_umount()
22 tst_device->fs_type, 0, NULL); in verify_umount()
Dumount03.c43 SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, NULL); in setup()
Dumount02.c66 SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, NULL); in setup()
/third_party/ltp/testcases/kernel/syscalls/sync/
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/fsync/
Dfsync04.c36 tst_dev_bytes_written(tst_device->dev); in verify_fsync()
45 written = tst_dev_bytes_written(tst_device->dev); in verify_fsync()
/third_party/ltp/testcases/kernel/syscalls/fdatasync/
Dfdatasync03.c36 tst_dev_bytes_written(tst_device->dev); in verify_fdatasync()
45 written = tst_dev_bytes_written(tst_device->dev); in verify_fdatasync()
/third_party/ltp/testcases/kernel/syscalls/syncfs/
Dsyncfs01.c37 tst_dev_bytes_written(tst_device->dev); in verify_syncfs()
46 written = tst_dev_bytes_written(tst_device->dev); in verify_syncfs()
/third_party/ltp/testcases/kernel/fs/squashfs/
Dsquashfs01.c80 "mksquashfs", DATA_DIR, tst_device->dev, in setup()
90 if (mount(tst_device->dev, MOUNT_DIR, "squashfs", 0, NULL) != 0) in run()

123