]> git.karo-electronics.de Git - linux-beck.git/commit
drbd: Convert boolean flags on netlink from NLA_FLAG to NLA_U8
authorAndreas Gruenbacher <agruen@linbit.com>
Wed, 4 May 2011 14:06:51 +0000 (16:06 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Nov 2012 15:55:45 +0000 (16:55 +0100)
commita5d8e1fb9d22851de89bbf52db6b11c56b895dd4
treee01243c9f44464e60955896f4041241ec886d649
parent813472ced7fac734157fe5be1137ce2bac942902
drbd: Convert boolean flags on netlink from NLA_FLAG to NLA_U8

Flags of type NLA_FLAG are either present or absent, but do not have a
value by themselves.  Use type NLA_U8 for our boolean flags instead, and
use the value to determine if the flag should be on or off.

On the drbdsetup command line, all those flags have an optional yes/no
argument which defaults to yes.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
include/linux/genl_magic_struct.h