public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Alan Cox <alan@redhat.com>
To: linux-kernel@vger.kernel.org
Subject: 2.4 IDE hotplug disk change and size change problem
Date: Tue, 23 Dec 2003 18:01:20 -0500	[thread overview]
Message-ID: <20031223230120.GA5771@devserv.devel.redhat.com> (raw)

Some people found that the

	hdparm -b0 
	swap disk for a larger one
	hdparm -b1

would then go nuts with disks IFF the new disk was larger and fdisk wasnt run.

Can folks seeing this try the following guess at the problem (I dont currently
have any hotpluggable IDE working except CD/DVD bays)


--- ide.c~	2003-12-23 22:45:50.000000000 +0000
+++ ide.c	2003-12-23 22:51:26.000000000 +0000
@@ -826,7 +826,11 @@
 	for (unit = 0; unit < MAX_DRIVES; ++unit) {
 		ide_drive_t *drive = &hwif->drives[unit];
 		if(drive->present && !drive->dead)
+		{
+			drive->revalidate = 1;
 			ide_attach_drive(drive);
+			ide_revalidate_disk(MKDEV(hwif->major, unit<<PARTN_BITS));
+		}
 	}
 	our_drive->usage++;
 	return 0;



                 reply	other threads:[~2003-12-23 23:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20031223230120.GA5771@devserv.devel.redhat.com \
    --to=alan@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /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