Lines Matching refs:fd
67 int fd; member
293 f->fd = open(f->file, O_RDWR | O_CREAT, 0644); in extstore_init()
294 if (f->fd < 0) { in extstore_init()
308 if (fcntl(f->fd, F_SETLK, &lock) < 0) { in extstore_init()
313 if (ftruncate(f->fd, 0) < 0) { in extstore_init()
356 e->pages[i].fd = f->fd; in extstore_init()
904 ret = lseek(p->fd, p->offset + cur_io->offset, SEEK_SET); in extstore_io_thread()
907 ret = read(p->fd, cur_io->buf, cur_io->len); in extstore_io_thread()
909 ret = readv(p->fd, cur_io->iov, cur_io->iovcnt); in extstore_io_thread()
914 … ret = pread(p->fd, cur_io->buf, cur_io->len, p->offset + cur_io->offset); in extstore_io_thread()
916 … ret = preadv(p->fd, cur_io->iov, cur_io->iovcnt, p->offset + cur_io->offset); in extstore_io_thread()
925 ret = pwrite(p->fd, cur_io->buf, cur_io->len, p->offset + cur_io->offset); in extstore_io_thread()