Commit 8a1cdc9c authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Linus Torvalds

[PATCH] Revert ABI-breaking change in /proc

Some user tools parse /proc/scsi/scsi, so we can't yet change the names.
Change the existing ones back to their old names, and add an admonition
to not make the same mistake that I did.

Andrew Morton reports that this was breaking YDL 4.1 userspace.
Signed-off-by: default avatarMatthew Wilcox <matthew@wil.cx>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 508df253
...@@ -96,22 +96,26 @@ unsigned int scsi_logging_level; ...@@ -96,22 +96,26 @@ unsigned int scsi_logging_level;
EXPORT_SYMBOL(scsi_logging_level); EXPORT_SYMBOL(scsi_logging_level);
#endif #endif
/* NB: These are exposed through /proc/scsi/scsi and form part of the ABI.
* You may not alter any existing entry (although adding new ones is
* encouraged once assigned by ANSI/INCITS T10
*/
static const char *const scsi_device_types[] = { static const char *const scsi_device_types[] = {
"Direct access ", "Direct-Access ",
"Sequential access", "Sequential-Access",
"Printer ", "Printer ",
"Processor ", "Processor ",
"WORM ", "WORM ",
"CD/DVD ", "CD-ROM ",
"Scanner ", "Scanner ",
"Optical memory ", "Optical Device ",
"Media changer ", "Medium Changer ",
"Communications ", "Communications ",
"ASC IT8 ", "ASC IT8 ",
"ASC IT8 ", "ASC IT8 ",
"RAID ", "RAID ",
"Enclosure ", "Enclosure ",
"Direct access RBC", "Direct-Access-RBC",
"Optical card ", "Optical card ",
"Bridge controller", "Bridge controller",
"Object storage ", "Object storage ",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment