From: Olaf Hering <olh@suse.de>
To: Andrew Morton <akpm@osdl.org>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.linuxppc.org
Subject: [PATCH] mark swim3 floppy controller as removable device
Date: Wed, 28 Jul 2004 12:25:47 +0200 [thread overview]
Message-ID: <20040728102547.GA21543@suse.de> (raw)
Mark the mac floppy controller driver as removable media.
This prevents an entry in /proc/partitions.
Several tools will not try to access the floppy anymore with
this change.
Signed-off-by: Olaf Hering <olh@suse.de>
diff -purN linux-2.6.8-rc2-bk6.orig/drivers/block/swim3.c linux-2.6.8-rc2-bk6/drivers/block/swim3.c
--- linux-2.6.8-rc2-bk6.orig/drivers/block/swim3.c 2004-06-16 05:19:13.000000000 +0000
+++ linux-2.6.8-rc2-bk6/drivers/block/swim3.c 2004-07-28 10:11:37.236364106 +0000
@@ -1058,6 +1058,7 @@ int swim3_init(void)
disk->fops = &floppy_fops;
disk->private_data = &floppy_states[i];
disk->queue = swim3_queue;
+ disk->flags |= GENHD_FL_REMOVABLE;
sprintf(disk->disk_name, "fd%d", i);
sprintf(disk->devfs_name, "floppy/%d", i);
set_capacity(disk, 2880);
--
USB is for mice, FireWire is for men!
sUse lINUX ag, nÜRNBERG
reply other threads:[~2004-07-28 10:26 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=20040728102547.GA21543@suse.de \
--to=olh@suse.de \
--cc=akpm@osdl.org \
--cc=benh@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.linuxppc.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
all inboxes | Powered by JetHome®