On 04/15/2016 11:03 AM, Hannes Reinecke wrote:
On 04/15/2016 07:45 PM, Bart Van Assche wrote:
Additionally, have you considered to create one sysfs directory per zone
instead of one sysfs attribute with all zone information? From
Documentation/filesystems/sysfs.txt: "Attributes should be ASCII text
files, preferably with only one value per file."
Yes, I have considered it.
But doing so would require me to add about 20k sysfs attributes.
For no apparent gain.
So I've settled on this condensed approach here.
Hello Hannes,
My understanding is that the one-value-per-file rule was introduced for
sysfs to make it easy for software, e.g. shell scripts, to process that
information. If multiple values occur in the same sysfs file sometimes
complicated code is needed in shell scripts to parse these values. If
one value is present in each sysfs file it becomes much easier for
software to process that sysfs information.
Bart.
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html