Files
linux-st/include/linux
Nao Nishijima a72c5e5eb7 [SCSI] genhd: add a new attribute "alias" in gendisk
This patch allows the user to set an "alias" of the disk via sysfs interface.

This patch only adds a new attribute "alias" in gendisk structure.
To show the alias instead of the device name in kernel messages,
we need to revise printk messages and use alias_name() in them.

Example:
(current) printk("disk name is %s\n", disk->disk_name);
(new)     printk("disk name is %s\n", alias_name(disk));

Users can use alphabets, numbers, '-' and '_' in "alias" attribute. A disk can
have an "alias" which length is up to 255 bytes. This attribute is write-once.

Suggested-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Suggested-by: Jon Masters <jcm@redhat.com>
Signed-off-by: Nao Nishijima <nao.nishijima.xt@hitachi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2011-08-29 00:16:19 -07:00
..
2011-08-03 11:30:42 -04:00
2011-08-11 10:36:05 +02:00
2011-07-31 22:05:09 +02:00
2011-08-03 19:06:37 -04:00
2011-08-06 22:53:23 -07:00
2011-07-31 12:18:15 -04:00
2011-07-31 12:18:16 -04:00
2011-08-09 11:27:16 -06:00
2011-07-30 08:44:19 -10:00
2011-08-03 14:25:22 -10:00