Skip to contentSkip to conversation

ceph: Inline data support

PATCH Superseded Li Wang 1 participant 1 message Dec 2, 2013

v4 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Li Wang

author
#0 lore raw

PATCH v4 1/1 ceph: Inline data support

This patch implements inline data support for Ceph. Review at:
https://github.com/ceph/ceph/pull/884
Pull at:
https://github.com/kylinstorage/ceph.git inline

---
Against v3:
Add the inline switch and make inline size tunable
Improve the back compatibility of mds from (9, 9) to (9, 6), provided the inlinefeature is disabled until all mds upgraded to support inline

Against v2:
Streamline the inline data migration with the subsequent read/write

Against v1:
With simplified process under multiple-writer case, referred to
http://pad.ceph.com/p/mds-inline-data,
http://www.spinics.net/lists/ceph-devel/msg16018.html

Li Wang (19):
ceph: Add inline data feature
ceph: Add inline state definition
mds: Add inline fields to inode_t
mds: Add inline encode/decode to inode_t
ceph: Add inline fields to MClientCaps
osdc: Add write method with truncate parameters
mds: Add inline fields to Capability
mds: Push inline data to client in cap message
ceph: Add inline fields to InodeStat
mds: Push inline data to client in inodestat
mds: Receive updated inline data from client
client: Add inline fields to Inode
client: Receive inline data pushed from mds
client: Push inline data to mds by send cap
client: Add inline data migration helper
client: Read inline data path
client: Write inline data path
client: Fallocate inline data path
ceph: Add inline switch and make inline size tunable

 src/ceph_mds.cc             |    1 +
 src/client/Client.cc        |  277 +++++++++++++++++++++++++++++++++++++++----
 src/client/Client.h         |    4 +
 src/client/Inode.h          |    5 +
 src/common/config_opts.h    |    2 +
 src/include/ceph_features.h |    2 +
 src/include/ceph_fs.h       |    3 +
 src/mds/CInode.cc           |   22 ++++
 src/mds/Capability.h        |    2 +
 src/mds/Locker.cc           |    7 ++
 src/mds/Server.cc           |    3 +
 src/mds/mdstypes.cc         |   12 +-
 src/mds/mdstypes.h          |    3 +
 src/messages/MClientCaps.h  |   19 ++-
 src/messages/MClientReply.h |    9 ++
 src/osdc/Objecter.h         |   10 +-
 16 files changed, 351 insertions(+), 30 deletions(-)
Signature · 1 line
1.7.9.5