public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* rescan partitions returns EIO since 2.6.8
@ 2004-12-05 14:03 Andries.Brouwer
  2004-12-06  0:47 ` Martin Pool
  0 siblings, 1 reply; 4+ messages in thread
From: Andries.Brouwer @ 2004-12-05 14:03 UTC (permalink / raw)
  To: mbp; +Cc: linux-kernel

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;

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-12-14  6:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-05 14:03 rescan partitions returns EIO since 2.6.8 Andries.Brouwer
2004-12-06  0:47 ` Martin Pool
2004-12-06  1:50   ` Andries Brouwer
2004-12-14  6:31     ` Martin Pool

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox