Re: [PATCH net-next 3/8] fs/quota: use nla_put_u64_64bit()
From: David Miller <davem@davemloft.net>
Date: 2016-04-26 16:24:08
Also in:
linux-wireless, lkml
From: David Miller <davem@davemloft.net>
Date: 2016-04-26 16:24:08
Also in:
linux-wireless, lkml
From: Jan Kara <jack@suse.cz> Date: Tue, 26 Apr 2016 13:08:48 +0200
On Tue 26-04-16 10:06:13, Nicolas Dichtel wrote:quoted
Signed-off-by: Nicolas Dichtel <redacted>OK, so I somewhat miss a description of what will this do to the netlink message so that I can judge whether the change is fine for the userspace counterpart parsing these messages. AFAIU this changes the message format by adding a QUOTA_NL_A_PAD field before each 64-bit field which needs an alignment, am I guessing right? Thus when the userspace counterpart uses genlmsg_parse() it should just silently ignore these attributes if I read the documentation right. Did I understand this correctly?
All userspace components using netlink should always ignore attributes they do not recognize in dumps. This is one of the most basic principles of netlink.