• Tejun Heo's avatar
    block: Revert "[SCSI] genhd: add a new attribute "alias" in gendisk" · d0985394
    Tejun Heo authored
    This reverts commit a72c5e5e.
    
    The commit introduced alias for block devices which is intended to be
    used during logging although actual usage hasn't been committed yet.
    This approach adds very limited benefit (raw log might be easier to
    follow) which can be trivially implemented in userland but has a lot
    of problems.
    
    It is much worse than netif renames because it doesn't rename the
    actual device but just adds conveninence name which isn't used
    universally or enforced.  Everything internal including device lookup
    and sysfs still uses the internal name and nothing prevents two
    devices from using conflicting alias - ie. sda can have sdb as its
    alias.
    
    This has been nacked by people working on device driver core, block
    layer and kernel-userland interface and shouldn't have been
    upstreamed.  Revert it.
    
     http://thread.gmane.org/gmane.linux.kernel/1155104
     http://thread.gmane.org/gmane.linux.scsi/68632
     http:/...
    d0985394
genhd.c 42.8 KB