From: Andreas Gruenbacher Date: Thu, 19 May 2011 15:39:28 +0000 (+0200) Subject: drbd: Make drbd's use of netlink attribute flags less confusing X-Git-Tag: v3.8-rc1~78^2~18^2~199 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f9359201b5cf1d94fe0e0c47fcba38cfc921863;p=pandora-kernel.git drbd: Make drbd's use of netlink attribute flags less confusing Make it more clear in the flag names which flags are internal to drbd, and which are not. The check for mandatory attributes is the only extension visible at the netlink layer. Attributes with this flag set would look like unknown attributes to some kernel versions. The netlink layer would ignore them and also skip consistency checks on the attribute type and legth. To avoid this, we check for mandatory attributes first, remove the mandatory flag, and then process the attributes normally. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- Reading git-diff-tree failed