[Drbd-dev] [PATCH 08/10] drbd: Introduce protocol version 100 headers

Kyle Moffett kyle at moffetthome.net
Fri Sep 23 19:42:52 CEST 2011


Hi!

On Fri, Sep 23, 2011 at 10:31, Philipp Reisner
<philipp.reisner at linbit.com> wrote:
> From: Andreas Gruenbacher <agruen at linbit.com>
>
> Signed-off-by: Philipp Reisner <philipp.reisner at linbit.com>
> Signed-off-by: Lars Ellenberg <lars.ellenberg at linbit.com>
> ---
>  drivers/block/drbd/drbd_int.h      |    8 ++++++++
>  drivers/block/drbd/drbd_main.c     |   31 +++++++++++++++++++++++++------
>  drivers/block/drbd/drbd_receiver.c |   14 ++++++++++++--
>  include/linux/drbd.h               |    1 +
>  4 files changed, 46 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h
> index 9868518..7d679c5 100644
> --- a/drivers/block/drbd/drbd_int.h
> +++ b/drivers/block/drbd/drbd_int.h
> @@ -307,6 +307,14 @@ struct p_header95 {
>        u32       vol_n_len;    /* big endian: high byte = volume; remaining 24 bit = length */
>  } __packed;
>
> +struct p_header100 {
> +       u32       magic;
> +       u16       volume;
> +       u16       command;
> +       u32       length;
> +       u32       pad;
> +} __packed;
> +

This commit also needs additional log message text,
specifically something that indicates what is new and
different between the protocol 95 and protocol 100
headers.  (IE: Why was the change made?)

Cheers,
Kyle Moffett


More information about the drbd-dev mailing list