lkml.org 
[lkml]   [2004]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectrescan 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/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.171 / U:1.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site