From: Paul Clements <paul.clements@steeleye.com>
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] nbd: fix device names
Date: Tue, 01 Jun 2004 10:01:45 -0400 [thread overview]
Message-ID: <40BC8C49.4020602@steeleye.com> (raw)
In-Reply-To: <4034FDD0.33BC57AF@SteelEye.com>
[-- Attachment #1: Type: text/plain, Size: 140 bytes --]
It seems more appropriate to call the devices "nbX" rather than "nbdX",
since that's what the device nodes are actually named.
--
Paul
[-- Attachment #2: nbd_nb_devname.diff --]
[-- Type: text/plain, Size: 497 bytes --]
--- linux/drivers/block/nbd.c.PRISTINE Thu Apr 15 13:40:18 2004
+++ linux/drivers/block/nbd.c Thu Apr 15 13:53:18 2004
@@ -713,7 +753,7 @@ static int __init nbd_init(void)
disk->fops = &nbd_fops;
disk->private_data = &nbd_dev[i];
disk->flags |= GENHD_FL_SUPPRESS_PARTITION_INFO;
- sprintf(disk->disk_name, "nbd%d", i);
+ sprintf(disk->disk_name, "nb%d", i);
sprintf(disk->devfs_name, "nbd/%d", i);
set_capacity(disk, 0x7ffffc00ULL << 1); /* 2 TB */
add_disk(disk);
next prev parent reply other threads:[~2004-06-01 14:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-19 18:17 [PATCH 2/2] nbd: remove PARANOIA and other cleanups Paul Clements
2004-06-01 14:01 ` Paul Clements [this message]
2004-06-01 23:32 ` [PATCH] nbd: fix device names Andrew Morton
2004-06-02 3:06 ` Paul Clements
2004-06-03 13:44 ` Pavel Machek
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=40BC8C49.4020602@steeleye.com \
--to=paul.clements@steeleye.com \
--cc=akpm@osdl.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.