|
@@ -536,7 +536,7 @@ void register_disk(struct gendisk *disk)
|
|
disk->slave_dir = kobject_create_and_add("slaves", &ddev->kobj);
|
|
disk->slave_dir = kobject_create_and_add("slaves", &ddev->kobj);
|
|
|
|
|
|
/* No minors to use for partitions */
|
|
/* No minors to use for partitions */
|
|
- if (!disk_partitionable(disk))
|
|
|
|
|
|
+ if (!disk_part_scan_enabled(disk))
|
|
goto exit;
|
|
goto exit;
|
|
|
|
|
|
/* No such device (e.g., media were just removed) */
|
|
/* No such device (e.g., media were just removed) */
|
|
@@ -841,7 +841,7 @@ static int show_partition(struct seq_file *seqf, void *v)
|
|
char buf[BDEVNAME_SIZE];
|
|
char buf[BDEVNAME_SIZE];
|
|
|
|
|
|
/* Don't show non-partitionable removeable devices or empty devices */
|
|
/* Don't show non-partitionable removeable devices or empty devices */
|
|
- if (!get_capacity(sgp) || (!disk_partitionable(sgp) &&
|
|
|
|
|
|
+ if (!get_capacity(sgp) || (!disk_max_parts(sgp) &&
|
|
(sgp->flags & GENHD_FL_REMOVABLE)))
|
|
(sgp->flags & GENHD_FL_REMOVABLE)))
|
|
return 0;
|
|
return 0;
|
|
if (sgp->flags & GENHD_FL_SUPPRESS_PARTITION_INFO)
|
|
if (sgp->flags & GENHD_FL_SUPPRESS_PARTITION_INFO)
|