From: Frank S. Filz Date: Thu, 14 Jul 2022 22:04:24 +0000 (-0700) Subject: libcephfs: Option to write + fsync via ceph_ll_nonblocking_readv_writev X-Git-Tag: v19.0.0~814^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=201a355f3696ce53b1c8846ed96b1be1de4db040;p=ceph.git libcephfs: Option to write + fsync via ceph_ll_nonblocking_readv_writev Signed-off-by: Frank S. Filz --- diff --git a/src/include/cephfs/libcephfs.h b/src/include/cephfs/libcephfs.h index 703dd900b5d17..ba0b76e072b57 100644 --- a/src/include/cephfs/libcephfs.h +++ b/src/include/cephfs/libcephfs.h @@ -127,6 +127,8 @@ struct ceph_ll_io_info { int64_t off; int64_t result; bool write; + bool fsync; + bool syncdataonly; }; /* setattr mask bits (up to an int in size) */ diff --git a/src/libcephfs.cc b/src/libcephfs.cc index a9387c32502fe..bafd0e6e4b4b2 100644 --- a/src/libcephfs.cc +++ b/src/libcephfs.cc @@ -2042,7 +2042,8 @@ extern "C" int64_t ceph_ll_nonblocking_readv_writev(class ceph_mount_info *cmoun return (cmount->get_client()->ll_preadv_pwritev( io_info->fh, io_info->iov, io_info->iovcnt, - io_info->off, io_info->write, onfinish, &onfinish->bl)); + io_info->off, io_info->write, onfinish, &onfinish->bl, + io_info->fsync, io_info->syncdataonly)); } extern "C" int ceph_ll_close(class ceph_mount_info *cmount, Fh* fh)