/third_party/ltp/testcases/kernel/syscalls/quotactl/ |
D | quotactl07.c | 37 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()
|
D | quotactl02.h | 38 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()
|
D | quotactl08.c | 159 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()
|
D | quotactl04.c | 125 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()
|
D | quotactl06.c | 138 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()
|
D | quotactl09.c | 97 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/ |
D | ioctl04.c | 41 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/ |
D | prepare_lvm.sh | 47 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/ |
D | inotify03.c | 58 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/ |
D | statx05.c | 95 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/ |
D | fsconfig01.c | 25 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/ |
D | tst_device.h | 12 struct tst_device { struct 21 extern struct tst_device *tst_device; argument
|
/third_party/ltp/testcases/kernel/syscalls/fsmount/ |
D | fsmount01.c | 44 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()
|
D | fsmount02.c | 36 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/ |
D | fanotify22.c | 57 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/ |
D | sync_file_range02.c | 52 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/ |
D | readahead02.c | 267 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/ |
D | umount01.c | 21 SAFE_MOUNT(tst_device->dev, MNTPOINT, in verify_umount() 22 tst_device->fs_type, 0, NULL); in verify_umount()
|
D | umount03.c | 43 SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, NULL); in setup()
|
D | umount02.c | 66 SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, NULL); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/sync/ |
D | sync01.c | 36 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/ |
D | fsync04.c | 36 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/ |
D | fdatasync03.c | 36 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/ |
D | syncfs01.c | 37 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/ |
D | squashfs01.c | 80 "mksquashfs", DATA_DIR, tst_device->dev, in setup() 90 if (mount(tst_device->dev, MOUNT_DIR, "squashfs", 0, NULL) != 0) in run()
|