|
@@ -61,6 +61,14 @@ int register_blkdev(unsigned int major, const char *name)
|
|
|
/* temporary */
|
|
/* temporary */
|
|
|
if (major == 0) {
|
|
if (major == 0) {
|
|
|
for (index = ARRAY_SIZE(major_names)-1; index > 0; index--) {
|
|
for (index = ARRAY_SIZE(major_names)-1; index > 0; index--) {
|
|
|
|
|
+ /*
|
|
|
|
|
+ * Disallow the LANANA-assigned LOCAL/EXPERIMENTAL
|
|
|
|
|
+ * majors
|
|
|
|
|
+ */
|
|
|
|
|
+ if ((60 <= index && index <= 63) ||
|
|
|
|
|
+ (120 <= index && index <= 127) ||
|
|
|
|
|
+ (240 <= index && index <= 254))
|
|
|
|
|
+ continue;
|
|
|
if (major_names[index] == NULL)
|
|
if (major_names[index] == NULL)
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|