Re: [PATCH 6/9] block: Add 'zoned' sysfs queue attribute

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux