]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
libceph: abstract message data
authorAlex Elder <elder@inktank.com>
Sat, 2 Mar 2013 00:00:16 +0000 (18:00 -0600)
committerGreg Farnum <greg@inktank.com>
Wed, 13 Mar 2013 00:45:17 +0000 (17:45 -0700)
commit39e6e455d59db9ee2381edd6fd24d12b642aa3bc
treede44deaeb3a9b744c1ab726f1959534a03c3a0e6
parentd3350967139a0aab351db4055deba5ec2e55c4ae
libceph: abstract message data

Group the types of message data into an abstract structure with a
type indicator and a union containing fields appropriate to the
type of data it represents.  Use this to represent the pages,
pagelist, bio, and trail in a ceph message.

Verify message data is of type NONE in ceph_msg_data_set_*()
routines.  Since information about message data of type NONE really
should not be interpreted, get rid of the other assertions in those
functions.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
include/linux/ceph/messenger.h
net/ceph/messenger.c