Am 27.07.2016 um 09:01 hat Changlong Xie geschrieben:
> From: Wen Congyang <[email protected]>
>
> Signed-off-by: Wen Congyang <[email protected]>
> Signed-off-by: Changlong Xie <[email protected]>
> Signed-off-by: Wang WeiWei <[email protected]>
> Signed-off-by: zhanghailiang <[email protected]>
> Signed-off-by: Gonglei <[email protected]>
> Reviewed-by: Eric Blake <[email protected]>
> @@ -2078,6 +2079,23 @@
> { 'enum' : 'ReplicationMode', 'data' : [ 'primary', 'secondary' ] }
>
> ##
> +# @BlockdevOptionsReplication
> +#
> +# Driver specific block device options for replication
> +#
> +# @mode: the replication mode
> +#
> +# @top-id: #optional In secondary mode, node name or device ID of the root
> +# node who owns the replication node chain. Ignored in primary mode.
Can we change this to "Must not be given in primary mode"? Not sure what
the code currently does, but I think it should error out if top-id is
given there.
> +#
> +# Since: 2.8
> +##
> +{ 'struct': 'BlockdevOptionsReplication',
> + 'base': 'BlockdevOptionsGenericFormat',
> + 'data': { 'mode': 'ReplicationMode',
> + '*top-id': 'str' } }
Kevin