skip skeleton comments
[fio.git] / engines / libpmem.c
index a9b3e29be662e208bd1578eb0209a3e4316ebfac..2338f0fa24f42b4f8318ca9a4bc299283e28c8bf 100644 (file)
@@ -193,6 +193,7 @@ static enum fio_q_status fio_libpmem_queue(struct thread_data *td,
 
        dprint(FD_IO, "DEBUG fio_libpmem_queue\n");
        dprint(FD_IO,"td->o.odirect %d td->o.sync_io %d \n",td->o.odirect, td->o.sync_io);
+       /* map both O_SYNC / DSYNC to not using NODRAIN */
        flags = td->o.sync_io ? 0 : PMEM_F_MEM_NODRAIN;
        flags |= td->o.odirect ? PMEM_F_MEM_NONTEMPORAL : PMEM_F_MEM_TEMPORAL;
 
@@ -254,6 +255,7 @@ FIO_STATIC struct ioengine_ops ioengine = {
        .open_file      = fio_libpmem_open_file,
        .close_file     = fio_libpmem_close_file,
        .get_file_size  = generic_get_file_size,
+       .prepopulate_file = generic_prepopulate_file,
        .flags          = FIO_SYNCIO | FIO_RAWIO | FIO_DISKLESSIO | FIO_NOEXTEND |
                                FIO_NODISKUTIL | FIO_BARRIER | FIO_MEMALIGN,
 };