Skip to content

Commit 201a355

Browse files
committed
libcephfs: Option to write + fsync via ceph_ll_nonblocking_readv_writev
Signed-off-by: Frank S. Filz <[email protected]>
1 parent 6809ff8 commit 201a355

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/include/cephfs/libcephfs.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ struct ceph_ll_io_info {
127127
int64_t off;
128128
int64_t result;
129129
bool write;
130+
bool fsync;
131+
bool syncdataonly;
130132
};
131133

132134
/* setattr mask bits (up to an int in size) */

src/libcephfs.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2042,7 +2042,8 @@ extern "C" int64_t ceph_ll_nonblocking_readv_writev(class ceph_mount_info *cmoun
20422042

20432043
return (cmount->get_client()->ll_preadv_pwritev(
20442044
io_info->fh, io_info->iov, io_info->iovcnt,
2045-
io_info->off, io_info->write, onfinish, &onfinish->bl));
2045+
io_info->off, io_info->write, onfinish, &onfinish->bl,
2046+
io_info->fsync, io_info->syncdataonly));
20462047
}
20472048

20482049
extern "C" int ceph_ll_close(class ceph_mount_info *cmount, Fh* fh)

0 commit comments

Comments
 (0)