forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block: Revert "[SCSI] genhd: add a new attribute "alias" in gendisk"
This reverts commit a72c5e5. 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://thread.gmane.org/gmane.linux.scsi/69776 Signed-off-by: Tejun Heo <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Acked-by: Kay Sievers <[email protected]> Cc: "James E.J. Bottomley" <[email protected]> Cc: Nao Nishijima <[email protected]> Cc: Alan Cox <[email protected]> Cc: Al Viro <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information
Showing
3 changed files
with
0 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -206,16 +206,3 @@ Description: | |
when a discarded area is read the discard_zeroes_data | ||
parameter will be set to one. Otherwise it will be 0 and | ||
the result of reading a discarded area is undefined. | ||
What: /sys/block/<disk>/alias | ||
Date: Aug 2011 | ||
Contact: Nao Nishijima <[email protected]> | ||
Description: | ||
A raw device name of a disk does not always point a same disk | ||
each boot-up time. Therefore, users have to use persistent | ||
device names, which udev creates when the kernel finds a disk, | ||
instead of raw device name. However, kernel doesn't show those | ||
persistent names on its messages (e.g. dmesg). | ||
This file can store an alias of the disk and it would be | ||
appeared in kernel messages if it is set. A disk can have an | ||
alias which length is up to 255bytes. Users can use alphabets, | ||
numbers, "-" and "_" in alias name. This file is writeonce. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters