rescan partitions returns EIO since 2.6.8

From: Andries.Brouwer
Date: Sun Dec 05 2004 - 09:04:21 EST


Martin Pool changed the behaviour of the BLKRRPART ioctl in 2.6.8.
The effect is that one now gets an I/O error when first
partitioning an empty disk:

# sfdisk /dev/sda
Checking that no-one is using this disk right now ...
BLKRRPART: Input/output error

Ugly. I am tempted to go back to the state before his patch.

Why was this patch made? Just something random that seemed like
a good idea? Is there software that needs it?

Andries


The guilty patch (called "lost error code"):

if (!get_capacity(disk) || !(state = check_partition(disk, bdev)))
- return 0;
+ return -EIO;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/