Searched refs:zfs_fd (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/cmd/zinject/ |
H A D | zinject.c | 157 int zfs_fd; variable 344 while (ioctl(zfs_fd, ZFS_IOC_INJECT_LIST_NEXT, &zc) == 0) in iter_handlers() 511 if (ioctl(zfs_fd, ZFS_IOC_CLEAR_FAULT, &zc) != 0) { in cancel_one_handler() 544 if (ioctl(zfs_fd, ZFS_IOC_CLEAR_FAULT, &zc) != 0) { in cancel_handler() 568 if (ioctl(zfs_fd, ZFS_IOC_INJECT_FAULT, &zc) != 0) { in register_handler() 628 if (ioctl(zfs_fd, ZFS_IOC_VDEV_SET_STATE, &zc) == 0) in perform_action() 773 if ((zfs_fd = open(ZFS_DEV, O_RDWR)) < 0) { in main()
|
/illumos-gate/usr/src/test/zfs-tests/cmd/libzfs_input_check/ |
H A D | libzfs_input_check.c | 40 int zfs_fd; variable 171 if (ioctl(zfs_fd, ioc, &zc) != 0) in lzc_ioctl_run() 473 fnvlist_add_int32(optional, "cleanup_fd", zfs_fd); in test_hold() 708 err = ioctl(zfs_fd, ZFS_IOC_DESTROY, &zc); in zfs_destroy() 855 if (ioctl(zfs_fd, ioc, &zc) != 0 && in zfs_ioc_input_tests() 1004 zfs_fd = open(ZFS_DEV, O_RDWR|O_EXCL); in main() 1005 if (zfs_fd < 0) { in main() 1013 (void) close(zfs_fd); in main()
|