X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fpartitions%2Fcheck.c;h=6149e4b58c887a62cd11e4776650b1880745af2a;hb=3c375c6f3a809d0d999d6dc933634f0b97ed7ae9;hp=03f808c5b79d4733e55b2c017ff8a5ab399c45fc;hpb=f9166e736e516a4b1de16577b5428afd0cffe325;p=linux-2.6 diff --git a/fs/partitions/check.c b/fs/partitions/check.c index 03f808c5b7..6149e4b58c 100644 --- a/fs/partitions/check.c +++ b/fs/partitions/check.c @@ -473,6 +473,10 @@ int rescan_partitions(struct gendisk *disk, struct block_device *bdev) return 0; if (IS_ERR(state)) /* I/O error reading the partition table */ return -EIO; + + /* tell userspace that the media / partition table may have changed */ + kobject_uevent(&disk->dev.kobj, KOBJ_CHANGE); + for (p = 1; p < state->limit; p++) { sector_t size = state->parts[p].size; sector_t from = state->parts[p].from;