Lines Matching refs:ioctl
249 ioctl(-1, BTRFS_IOC_TRANS_START, NULL); in btrfs_test_trans_ioctls()
252 ioctl(-1, BTRFS_IOC_TRANS_END, NULL); in btrfs_test_trans_ioctls()
268 ioctl(-1, BTRFS_IOC_SYNC, NULL); in btrfs_test_sync_ioctls()
271 ioctl(-1, BTRFS_IOC_WAIT_SYNC, NULL); in btrfs_test_sync_ioctls()
275 ioctl(-1, BTRFS_IOC_WAIT_SYNC, &u64val); in btrfs_test_sync_ioctls()
370 ioctl(-1, BTRFS_IOC_SNAP_CREATE, NULL); in btrfs_test_subvol_ioctls()
374 ioctl(-1, BTRFS_IOC_SNAP_CREATE, &vol_args); in btrfs_test_subvol_ioctls()
378 ioctl(-1, BTRFS_IOC_SUBVOL_CREATE, &vol_args); in btrfs_test_subvol_ioctls()
382 ioctl(-1, BTRFS_IOC_SNAP_DESTROY, &vol_args); in btrfs_test_subvol_ioctls()
387 ioctl(-1, BTRFS_IOC_SNAP_CREATE, &vol_args); in btrfs_test_subvol_ioctls()
391 ioctl(-1, BTRFS_IOC_SUBVOL_CREATE, &vol_args); in btrfs_test_subvol_ioctls()
395 ioctl(-1, BTRFS_IOC_SNAP_DESTROY, &vol_args); in btrfs_test_subvol_ioctls()
403 ioctl(-1, BTRFS_IOC_SNAP_CREATE_V2, NULL); in btrfs_test_subvol_ioctls()
407 ioctl(-1, BTRFS_IOC_SUBVOL_CREATE_V2, NULL); in btrfs_test_subvol_ioctls()
414 ioctl(-1, BTRFS_IOC_SNAP_CREATE_V2, &vol_args_v2); in btrfs_test_subvol_ioctls()
419 ioctl(-1, BTRFS_IOC_SUBVOL_CREATE_V2, &vol_args_v2); in btrfs_test_subvol_ioctls()
425 ioctl(-1, BTRFS_IOC_SNAP_CREATE_V2, &vol_args_v2); in btrfs_test_subvol_ioctls()
430 ioctl(-1, BTRFS_IOC_SUBVOL_CREATE_V2, &vol_args_v2); in btrfs_test_subvol_ioctls()
438 ioctl(-1, BTRFS_IOC_SNAP_CREATE_V2, &vol_args_v2); in btrfs_test_subvol_ioctls()
443 ioctl(-1, BTRFS_IOC_SUBVOL_CREATE_V2, &vol_args_v2); in btrfs_test_subvol_ioctls()
468 ioctl(-1, BTRFS_IOC_SNAP_CREATE_V2, &vol_args_v2); in btrfs_test_subvol_ioctls()
473 ioctl(-1, BTRFS_IOC_SUBVOL_CREATE_V2, &vol_args_v2); in btrfs_test_subvol_ioctls()
476 ioctl(-1, BTRFS_IOC_DEFAULT_SUBVOL, NULL); in btrfs_test_subvol_ioctls()
480 ioctl(-1, BTRFS_IOC_DEFAULT_SUBVOL, &u64val); in btrfs_test_subvol_ioctls()
487 ioctl(-1, BTRFS_IOC_SUBVOL_SETFLAGS, &vol_args_v2.flags); in btrfs_test_subvol_ioctls()
509 ret = ioctl(btrfs_test_dir_fd, BTRFS_IOC_SUBVOL_CREATE_V2, in btrfs_test_subvol_ioctls()
528 ioctl(btrfs_test_dir_fd, BTRFS_IOC_SNAP_CREATE_V2, in btrfs_test_subvol_ioctls()
536 ioctl(btrfs_test_dir_fd, BTRFS_IOC_SNAP_DESTROY, &vol_args); in btrfs_test_subvol_ioctls()
542 ioctl(btrfs_test_dir_fd, BTRFS_IOC_SNAP_DESTROY, &vol_args); in btrfs_test_subvol_ioctls()
606 ioctl(-1, BTRFS_IOC_BALANCE_CTL, 1); in btrfs_test_balance_ioctls()
612 ioctl(-1, BTRFS_IOC_BALANCE_CTL, 2); in btrfs_test_balance_ioctls()
619 ioctl(-1, BTRFS_IOC_BALANCE, NULL); in btrfs_test_balance_ioctls()
622 ioctl(-1, BTRFS_IOC_BALANCE, &vol_args); in btrfs_test_balance_ioctls()
626 ioctl(-1, BTRFS_IOC_BALANCE_V2, NULL); in btrfs_test_balance_ioctls()
638 ioctl(-1, BTRFS_IOC_BALANCE_V2, &args); in btrfs_test_balance_ioctls()
671 ret = ioctl(btrfs_test_dir_fd, BTRFS_IOC_BALANCE_V2, &args); in btrfs_test_balance_ioctls()
710 ioctl(-1, BTRFS_IOC_RESIZE, NULL); in btrfs_test_device_ioctls()
714 ioctl(-1, BTRFS_IOC_RESIZE, &args); in btrfs_test_device_ioctls()
718 ioctl(-1, BTRFS_IOC_SCAN_DEV, NULL); in btrfs_test_device_ioctls()
723 ioctl(-1, BTRFS_IOC_SCAN_DEV, &args); in btrfs_test_device_ioctls()
727 ioctl(-1, BTRFS_IOC_ADD_DEV, NULL); in btrfs_test_device_ioctls()
730 ioctl(-1, BTRFS_IOC_ADD_DEV, &args); in btrfs_test_device_ioctls()
734 ioctl(-1, BTRFS_IOC_RM_DEV, NULL); in btrfs_test_device_ioctls()
737 ioctl(-1, BTRFS_IOC_RM_DEV, &args); in btrfs_test_device_ioctls()
759 ioctl(-1, BTRFS_IOC_CLONE, clone_fd); in btrfs_test_clone_ioctls()
764 ioctl(-1, BTRFS_IOC_CLONE_RANGE, NULL); in btrfs_test_clone_ioctls()
769 ioctl(-1, BTRFS_IOC_CLONE_RANGE, &args); in btrfs_test_clone_ioctls()
818 ioctl(-1, BTRFS_IOC_DEFRAG, NULL); in btrfs_test_defrag_ioctls()
821 ioctl(-1, BTRFS_IOC_DEFRAG, &vol_args); in btrfs_test_defrag_ioctls()
825 ioctl(-1, BTRFS_IOC_DEFRAG_RANGE, NULL); in btrfs_test_defrag_ioctls()
831 ioctl(-1, BTRFS_IOC_DEFRAG_RANGE, &args); in btrfs_test_defrag_ioctls()
837 ioctl(-1, BTRFS_IOC_DEFRAG_RANGE, &args); in btrfs_test_defrag_ioctls()
843 ioctl(-1, BTRFS_IOC_DEFRAG_RANGE, &args); in btrfs_test_defrag_ioctls()
959 ioctl(-1, BTRFS_IOC_TREE_SEARCH, NULL); in btrfs_test_search_ioctls()
963 ioctl(-1, BTRFS_IOC_TREE_SEARCH_V2, NULL); in btrfs_test_search_ioctls()
970 ioctl(-1, BTRFS_IOC_TREE_SEARCH, &search_args); in btrfs_test_search_ioctls()
976 ioctl(-1, BTRFS_IOC_TREE_SEARCH_V2, &search_args_v2); in btrfs_test_search_ioctls()
985 ioctl(-1, BTRFS_IOC_TREE_SEARCH, &search_args); in btrfs_test_search_ioctls()
991 ioctl(-1, BTRFS_IOC_TREE_SEARCH_V2, &search_args_v2); in btrfs_test_search_ioctls()
1000 ioctl(-1, BTRFS_IOC_TREE_SEARCH, &search_args); in btrfs_test_search_ioctls()
1006 ioctl(-1, BTRFS_IOC_TREE_SEARCH_V2, &search_args_v2); in btrfs_test_search_ioctls()
1015 ioctl(-1, BTRFS_IOC_TREE_SEARCH, &search_args); in btrfs_test_search_ioctls()
1021 ioctl(-1, BTRFS_IOC_TREE_SEARCH_V2, &search_args_v2); in btrfs_test_search_ioctls()
1030 ioctl(-1, BTRFS_IOC_TREE_SEARCH, &search_args); in btrfs_test_search_ioctls()
1036 ioctl(-1, BTRFS_IOC_TREE_SEARCH_V2, &search_args_v2); in btrfs_test_search_ioctls()
1056 ioctl(btrfs_test_dir_fd, BTRFS_IOC_TREE_SEARCH, &search_args); in btrfs_test_search_ioctls()
1073 ioctl(btrfs_test_dir_fd, BTRFS_IOC_TREE_SEARCH_V2, args); in btrfs_test_search_ioctls()
1086 ioctl(btrfs_test_dir_fd, BTRFS_IOC_TREE_SEARCH_V2, args); in btrfs_test_search_ioctls()
1105 ioctl(-1, BTRFS_IOC_INO_LOOKUP, NULL); in btrfs_test_ino_lookup_ioctl()
1113 ioctl(-1, BTRFS_IOC_INO_LOOKUP, &args); in btrfs_test_ino_lookup_ioctl()
1122 ioctl(btrfs_test_dir_fd, BTRFS_IOC_INO_LOOKUP, &args); in btrfs_test_ino_lookup_ioctl()
1136 ioctl(-1, BTRFS_IOC_SPACE_INFO, NULL); in btrfs_test_space_info_ioctl()
1140 ioctl(-1, BTRFS_IOC_SPACE_INFO, &args); in btrfs_test_space_info_ioctl()
1151 ioctl(btrfs_test_dir_fd, BTRFS_IOC_SPACE_INFO, &args_passed); in btrfs_test_space_info_ioctl()
1165 ioctl(btrfs_test_dir_fd, BTRFS_IOC_SPACE_INFO, argsp); in btrfs_test_space_info_ioctl()
1209 ioctl(-1, BTRFS_IOC_SCRUB, NULL); in btrfs_test_scrub_ioctls()
1212 ioctl(-1, BTRFS_IOC_SCRUB_CANCEL, NULL); in btrfs_test_scrub_ioctls()
1221 ioctl(-1, BTRFS_IOC_SCRUB, &args); in btrfs_test_scrub_ioctls()
1224 ioctl(-1, BTRFS_IOC_SCRUB_PROGRESS, NULL); in btrfs_test_scrub_ioctls()
1228 ioctl(-1, BTRFS_IOC_SCRUB_PROGRESS, &args); in btrfs_test_scrub_ioctls()
1246 ioctl(-1, BTRFS_IOC_DEV_INFO, NULL); in btrfs_test_dev_info_ioctl()
1250 ioctl(-1, BTRFS_IOC_DEV_INFO, &args); in btrfs_test_dev_info_ioctl()
1285 ioctl(-1, BTRFS_IOC_INO_PATHS, NULL); in btrfs_test_ino_path_ioctls()
1289 ioctl(-1, BTRFS_IOC_LOGICAL_INO, NULL); in btrfs_test_ino_path_ioctls()
1293 ioctl(-1, BTRFS_IOC_INO_PATHS, &args); in btrfs_test_ino_path_ioctls()
1299 ioctl(-1, BTRFS_IOC_INO_PATHS, &args); in btrfs_test_ino_path_ioctls()
1305 ioctl(-1, BTRFS_IOC_LOGICAL_INO, &args); in btrfs_test_ino_path_ioctls()
1323 ioctl(-1, BTRFS_IOC_LOGICAL_INO, &args); in btrfs_test_ino_path_ioctls()
1340 ioctl(-1, BTRFS_IOC_LOGICAL_INO, &args); in btrfs_test_ino_path_ioctls()
1364 ioctl(btrfs_test_dir_fd, BTRFS_IOC_INO_PATHS, &args); in btrfs_test_ino_path_ioctls()
1390 ioctl(fd, BTRFS_IOC_SYNC, NULL); in btrfs_test_ino_path_ioctls()
1409 ioctl(fd, FS_IOC_FIEMAP, fiemap); in btrfs_test_ino_path_ioctls()
1442 ioctl(fd, BTRFS_IOC_LOGICAL_INO, &args); in btrfs_test_ino_path_ioctls()
1476 ioctl(-1, BTRFS_IOC_SET_RECEIVED_SUBVOL, NULL); in btrfs_test_set_received_subvol_ioctl()
1480 ioctl(-1, BTRFS_IOC_SET_RECEIVED_SUBVOL, &args); in btrfs_test_set_received_subvol_ioctl()
1505 ioctl(-1, BTRFS_IOC_SEND, NULL); in btrfs_test_send_ioctl()
1516 ioctl(-1, BTRFS_IOC_SEND, &args); in btrfs_test_send_ioctl()
1538 ioctl(-1, BTRFS_IOC_SEND, &args); in btrfs_test_send_ioctl()
1553 ioctl(-1, BTRFS_IOC_QUOTA_CTL, NULL); in btrfs_test_quota_ctl_ioctl()
1557 ioctl(-1, BTRFS_IOC_QUOTA_CTL, &args); in btrfs_test_quota_ctl_ioctl()
1565 ioctl(-1, BTRFS_IOC_QUOTA_CTL, &args); in btrfs_test_quota_ctl_ioctl()
1573 ioctl(-1, BTRFS_IOC_QUOTA_CTL, &args); in btrfs_test_quota_ctl_ioctl()
1581 ioctl(-1, BTRFS_IOC_QUOTA_CTL, &args); in btrfs_test_quota_ctl_ioctl()
1600 ioctl(-1, BTRFS_IOC_QGROUP_ASSIGN, NULL); in btrfs_test_qgroup_assign_ioctl()
1604 ioctl(-1, BTRFS_IOC_QGROUP_ASSIGN, &args); in btrfs_test_qgroup_assign_ioctl()
1623 ioctl(-1, BTRFS_IOC_QGROUP_CREATE, NULL); in btrfs_test_qgroup_create_ioctl()
1626 ioctl(-1, BTRFS_IOC_QGROUP_CREATE, &args); in btrfs_test_qgroup_create_ioctl()
1646 ioctl(-1, BTRFS_IOC_QUOTA_RESCAN, NULL); in btrfs_test_quota_rescan_ioctl()
1650 ioctl(-1, BTRFS_IOC_QUOTA_RESCAN, &args); in btrfs_test_quota_rescan_ioctl()
1653 ioctl(-1, BTRFS_IOC_QUOTA_RESCAN_WAIT, NULL); in btrfs_test_quota_rescan_ioctl()
1671 ioctl(-1, FS_IOC_SETFSLABEL, NULL); in btrfs_test_label_ioctls()
1675 ioctl(-1, FS_IOC_SETFSLABEL, label); in btrfs_test_label_ioctls()
1680 ioctl(btrfs_test_dir_fd, FS_IOC_SETFSLABEL, label); in btrfs_test_label_ioctls()
1684 ioctl(btrfs_test_dir_fd, FS_IOC_GETFSLABEL, label); in btrfs_test_label_ioctls()
1703 ioctl(-1, BTRFS_IOC_GET_DEV_STATS, NULL); in btrfs_test_get_dev_stats_ioctl()
1712 ioctl(-1, BTRFS_IOC_GET_DEV_STATS, &args); in btrfs_test_get_dev_stats_ioctl()
1724 ioctl(btrfs_test_dir_fd, BTRFS_IOC_GET_DEV_STATS, &args); in btrfs_test_get_dev_stats_ioctl()
1767 ioctl(-1, BTRFS_IOC_DEV_REPLACE, NULL); in btrfs_test_dev_replace_ioctl()
1774 ioctl(-1, BTRFS_IOC_DEV_REPLACE, &args); in btrfs_test_dev_replace_ioctl()
1795 ioctl(-1, BTRFS_IOC_DEV_REPLACE, &args); in btrfs_test_dev_replace_ioctl()
1812 ioctl(-1, BTRFS_IOC_FILE_EXTENT_SAME, NULL); in btrfs_test_extent_same_ioctl()
1825 ioctl(-1, BTRFS_IOC_FILE_EXTENT_SAME, &args); in btrfs_test_extent_same_ioctl()
1863 ioctl(-1, BTRFS_IOC_FILE_EXTENT_SAME, argsp); in btrfs_test_extent_same_ioctl()
1928 ioctl(fd1, BTRFS_IOC_FILE_EXTENT_SAME, argsp); in btrfs_test_extent_same_ioctl()
1995 ioctl(-1, BTRFS_IOC_SET_FEATURES, NULL); in btrfs_test_features_ioctls()
2003 ioctl(-1, BTRFS_IOC_SET_FEATURES, &args); in btrfs_test_features_ioctls()
2009 ioctl(btrfs_test_dir_fd, BTRFS_IOC_GET_FEATURES, in btrfs_test_features_ioctls()
2014 ioctl(btrfs_test_dir_fd, BTRFS_IOC_GET_SUPPORTED_FEATURES, in btrfs_test_features_ioctls()
2046 ioctl(-1, (unsigned long) btrfs_read_cmd[i].val, 0); in btrfs_test_read_ioctls()