[OracleOSS] [TitleIndex] [WordIndex]

OCFS2/DLM/dlm vote msg

#define OCFS2_MESSAGE_TYPE_VOTE     (0x1)
#define OCFS2_MESSAGE_TYPE_RESPONSE (0x2)
struct ocfs2_msg_hdr
{
        __be32 h_response_id; /* used to lookup message handle on sending
                            * node. */
        __be32 h_request;
        __be64 h_blkno;
        __be32 h_generation;
        __be32 h_node_num;    /* node sending this particular message. */
};

/* OCFS2_MAX_FILENAME_LEN is 255 characters, but we want to align this
 * for the network. */
#define OCFS2_VOTE_FILENAME_LEN 256
struct ocfs2_vote_msg
{
        struct ocfs2_msg_hdr v_hdr;
        union {
                __be32 v_generic1;
                __be32 v_orphaned_slot; /* Used during delete votes */
                __be32 v_nlink;         /* Used during unlink votes */
        } md1;                          /* Message type dependant 1 */
        __be32 v_unlink_namelen;
        __be64 v_unlink_parent;
        u8  v_unlink_dirent[OCFS2_VOTE_FILENAME_LEN];
};

2012-11-08 13:01