Messages in this thread | | | Date | Sun, 5 Dec 2004 15:03:14 +0100 (MET) | From | <> | Subject | rescan partitions returns EIO since 2.6.8 |
| |
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |