On Sat, May 9, 2009 at 02:13, Tejun Heo <tj@xxxxxxxxxx> wrote: > This patch adds alt_size to genhd and exports it via sysfs. alt_size > is always smaller than the regular size. Being a hint, alt_size can > also be set from userland by writing to the sysfs node mostly for > debugging and testing. What does "alt_" stand for? I think that should be more descriptive in an exported interface. And can we please keep the "size_*" in front of the name, so that they group together? Also, values with magic block counts, while there is no way to get the blocksize with the same interface, are pretty weird. I think the current "size" attribute is just a bug. Not sure, how that should be solved, by adding a "blocksize" attribute that is always in the same context as the current "size*" values, or by just using bytes for new attributes here. Almost all tools I've seen using these attributes, have hardcoded * 512 in there, which may cause trouble pretty soon. And this is mostly a failure of the interface and not of the users, I think. Thanks, Kay -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel