ZFS_DEV
if (cleanup_fd == -1 && (cleanup_fd = open(ZFS_DEV,
if ((zfs_fd = open(ZFS_DEV, O_RDWR)) < 0) {
int fd = open(ZFS_DEV, O_RDWR);
if (passthru_otherdev_ioctl(&zfs_dev, ZFS_DEV, &err,
di->cleanupfd = open(ZFS_DEV, O_RDWR|O_EXCL);
sdd.cleanup_fd = open(ZFS_DEV, O_RDWR|O_EXCL);
cleanup_fd = open(ZFS_DEV, O_RDWR|O_EXCL);
if ((hdl->libzfs_fd = open(ZFS_DEV, O_RDWR)) < 0) {
zfs_fd = open(ZFS_DEV, O_RDWR|O_EXCL);
int cleanup_fd = open(ZFS_DEV, O_RDWR);