Re: [PATCH 1/3] [RFC] genhd: add a new attribute in devicestructure

From: James Bottomley
Date: Wed Jun 15 2011 - 10:43:33 EST


On Wed, 2011-06-15 at 17:16 +0900, Nao Nishijima wrote:
> Allow users to set the preferred name of device via sysfs interface.
>
> (Exsample) sda -> foo
> # echo foo > /sys/block/sda/preferred_name
>
> Suggested-by: James Bottomley <James.Bottomley@xxxxxxxxxxxxxxxxxxxxx>

So, as I said previously, I think this needs to be in struct device not
struct gendisk. It will be an easier infrastructure to use and it
easily generalises to our other naming problems (like net).

James


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/