Re: bonding sysfs output

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Wagner Ferenc
Date: Monday, November 26, 2007 - 1:29 am

Andrew Morton <akpm@linux-foundation.org> writes:


Trailing NULs are present in each file under /sys/class/net/*/bonding
and also in /sys/class/net/bonding_masters.  That is, in every file
provided by drivers/net/bonding/bond_sysfs.c.  Most of the patch is
concerned with this.

Closely related is the presence of trailing spaces in multivalue
files.  There are three such files, one of them has the trailing space
removed.  This patch removes it from the other two.  During this it
also renames one function argument 'buffer' to 'buf', for consistency.

On the policy side: some files are not applicable to some types of
bonds, and return a single linefeed in that case.  Except for one
single case, which returns 'NA\n'.  The patch changes these cases into
emtpy files.

If these are worthy changes, I'm absolutely willing to split up the
patch into three parts as the above.
-- 
Thanks,
Feri.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
bonding sysfs output, Wagner Ferenc, (Sun Nov 25, 8:12 am)
Re: bonding sysfs output, Andrew Morton, (Sun Nov 25, 9:51 pm)
Re: bonding sysfs output, Wagner Ferenc, (Mon Nov 26, 1:29 am)
Re: bonding sysfs output, Andrew Morton, (Tue Nov 27, 1:44 am)
Re: bonding sysfs output, Andrew Morton, (Tue Nov 27, 3:14 am)
Re: bonding sysfs output, Wagner Ferenc, (Tue Nov 27, 6:03 pm)
Re: bonding sysfs output, Jean Delvare, (Wed Dec 5, 3:59 pm)
Re: bonding sysfs output, Ferenc Wagner, (Thu Dec 6, 3:13 am)