Lines Matching refs:fd
61 * Initializes a raw disk image backing file from an fd. Stores the
65 virtio_raw_init(struct virtio_backing *file, off_t *szp, int *fd, size_t nfd)
73 sz = lseek(fd[0], 0, SEEK_END);
80 *fdp = fd[0];
108 int fd, ret;
111 fd = open(imgfile_path, O_RDWR | O_CREAT | O_TRUNC | O_EXCL,
113 if (fd == -1)
117 if (ftruncate(fd, (off_t)imgsize) == -1) {
119 close(fd);
124 ret = close(fd);