From: <Andries.Brouwer@cwi.nl>
To: mbp@sourcefrog.net
Cc: linux-kernel@vger.kernel.org
Subject: rescan partitions returns EIO since 2.6.8
Date: Sun, 5 Dec 2004 15:03:14 +0100 (MET) [thread overview]
Message-ID: <200412051403.iB5E3EJ01749@apps.cwi.nl> (raw)
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;
next reply other threads:[~2004-12-05 14:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-05 14:03 Andries.Brouwer [this message]
2004-12-06 0:47 ` Martin Pool
2004-12-06 1:50 ` Andries Brouwer
2004-12-14 6:31 ` Martin Pool
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200412051403.iB5E3EJ01749@apps.cwi.nl \
--to=andries.brouwer@cwi.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=mbp@sourcefrog.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®