Project

General

Profile

Feature #11903

libcephfs: implement read/write interface support "struct iovec"

Added by Haomai Wang almost 9 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
libcephfs
Labels (FS):
Pull request ID:

Description

Now if qemu virtfs directly call libcephfs api, it need to retranslate iov structure to continuous buffer. We should let libcephfs read/write support iovec structure to avoid extra memcpy.

Currently it's unimplemented:
extern "C" int64_t ceph_ll_readv(class ceph_mount_info *cmount,
struct Fh *fh, const struct iovec *iov,
int iovcnt, int64_t off) {
return -1; // TODO: implement
}

extern "C" int64_t ceph_ll_writev(class ceph_mount_info *cmount,
struct Fh *fh, const struct iovec *iov,
int iovcnt, int64_t off) {
return -1; // TODO: implement
}

History

#1 Updated by Haomai Wang almost 9 years ago

  • Category set to 24

#2 Updated by John Spray almost 9 years ago

  • Project changed from Ceph to CephFS
  • Category changed from 24 to 44

#3 Updated by Haomai Wang over 8 years ago

  • Status changed from New to Resolved

#4 Updated by Greg Farnum over 7 years ago

  • Component(FS) libcephfs added

Also available in: Atom PDF