Lines Matching refs:blk_fd
39 int blk_fd; member
145 rc = preadv(vdev_blk->blk_fd, iov, iovcnt, req->sector_num * 512); in vub_readv()
168 rc = pwritev(vdev_blk->blk_fd, iov, iovcnt, req->sector_num * 512); in vub_writev()
201 if (ioctl(vdev_blk->blk_fd, BLKDISCARD, range) == 0) { in vub_discard_write_zeroes()
206 if (ioctl(vdev_blk->blk_fd, BLKZEROOUT, range) == 0) { in vub_discard_write_zeroes()
222 fdatasync(vdev_blk->blk_fd); in vub_flush()
445 if (vdev_blk->blk_fd >= 0) { in vub_set_config()
446 close(vdev_blk->blk_fd); in vub_set_config()
447 vdev_blk->blk_fd = -1; in vub_set_config()
453 vdev_blk->blk_fd = -1; in vub_set_config()
456 vdev_blk->blk_fd = fd; in vub_set_config()
511 if (vdev_blk->blk_fd >= 0) { in vub_free()
512 close(vdev_blk->blk_fd); in vub_free()
560 vdev_blk->blk_fd = vub_open(blk_file, 0); in vub_new()
561 if (vdev_blk->blk_fd < 0) { in vub_new()
571 vub_initialize_config(vdev_blk->blk_fd, &vdev_blk->blkcfg); in vub_new()