diff options
-rw-r--r-- | block/partitions/core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/block/partitions/core.c b/block/partitions/core.c index 8a0ec929023b..76617b1d2d47 100644 --- a/block/partitions/core.c +++ b/block/partitions/core.c @@ -597,6 +597,9 @@ static int blk_add_partitions(struct gendisk *disk) if (disk->flags & GENHD_FL_NO_PART) return 0; + if (test_bit(GD_SUPPRESS_PART_SCAN, &disk->state)) + return 0; + state = check_partition(disk); if (!state) return 0; |