summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorNao Nishijima <nao.nishijima.xt@hitachi.com>2011-08-25 18:04:06 +0900
committerJames Bottomley <JBottomley@Parallels.com>2011-08-29 00:16:19 -0700
commita72c5e5eb738033938ab30d6a634b74d1d060f10 (patch)
tree72cea6d75a62f7003d55f8a754c2d17149ada85f /virt
parent76e4e12ff2b3ef86773989fd897b194eb38016e6 (diff)
downloadlinux-3.10-a72c5e5eb738033938ab30d6a634b74d1d060f10.tar.gz
linux-3.10-a72c5e5eb738033938ab30d6a634b74d1d060f10.tar.bz2
linux-3.10-a72c5e5eb738033938ab30d6a634b74d1d060f10.zip
[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>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions