From: Pete Zaitcev <zaitcev@redhat.com>
To: Hans A Eide <haeide@usit.uio.no>
Cc: zaitcev@redhat.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] block/ub.c: Increase number of partitions for usb storage
Date: Tue, 2 May 2006 20:24:12 -0700 [thread overview]
Message-ID: <20060502202412.0d68150f.zaitcev@redhat.com> (raw)
In-Reply-To: <mailman.1146575400.25877.linux-kernel2news@redhat.com>
On Tue, 2 May 2006 14:59:52 +0200, Hans A Eide <haeide@usit.uio.no> wrote:
> I do backups to external USB storage and hit the 8 partitions limit
> of ub.c
> This could also be a problem for others (HFS+ formatted iPods?)
It was a bad mistake in retrospect. I limited ub to 8 partitions
because I wanted to fit 26 devices into 8 bits of minor.
> Any reason for not increasing the partitions limit to 16?
Doing so would not be compatible for systems which do not run udevd.
Linus forbade such changes, and I agree. So, if we strongly needed
ub to go beyond 1+7 partitions, we would need some kind of a remapping
scheme. I have to discuss this with Greg or Harald. Making dis-
contiguous nodes is easy with mknod, but I do not know if udev
supports it.
> +++ drivers/block/ub.c 2006-04-30 13:37:34.000000000 +0200
> @@ -113,7 +113,7 @@
> /*
> */
> -#define UB_PARTS_PER_LUN 8
> +#define UB_PARTS_PER_LUN 16
> #define UB_MAX_CDB_SIZE 16 /* Corresponds to Bulk */
Your mailer corrupted your patch. The attached ought to work better,
but it's a subject to aforementioned compatibility problems.
-- Pete
--- linux-2.6.17-rc2/drivers/block/ub.c 2006-04-23 21:05:39.000000000 -0700
+++ linux-2.6.17-rc2-lem/drivers/block/ub.c 2006-05-02 20:14:15.000000000 -0700
@@ -113,7 +109,7 @@
/*
*/
-#define UB_PARTS_PER_LUN 8
+#define UB_PARTS_PER_LUN 16
#define UB_MAX_CDB_SIZE 16 /* Corresponds to Bulk */
diff -urp -X dontdiff linux-2.6.17-rc2/Documentation/devices.txt linux-2.6.17-rc2-lem/Documentation/devices.txt
--- linux-2.6.17-rc2/Documentation/devices.txt 2006-01-03 20:02:51.000000000 -0800
+++ linux-2.6.17-rc2-lem/Documentation/devices.txt 2006-05-02 20:13:17.000000000 -0700
@@ -2557,10 +2557,10 @@ Your cooperation is appreciated.
66 = /dev/usb/cpad0 Synaptics cPad (mouse/LCD)
180 block USB block devices
- 0 = /dev/uba First USB block device
- 8 = /dev/ubb Second USB block device
- 16 = /dev/ubc Thrid USB block device
- ...
+ 0 = /dev/uba First USB block device
+ 16 = /dev/ubb Second USB block device
+ 32 = /dev/ubc Third USB block device
+ ...
181 char Conrad Electronic parallel port radio clocks
0 = /dev/pcfclock0 First Conrad radio clock
next parent reply other threads:[~2006-05-03 3:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1146575400.25877.linux-kernel2news@redhat.com>
2006-05-03 3:24 ` Pete Zaitcev [this message]
2006-05-11 0:16 ` Greg KH
2006-05-11 8:24 ` Hans A Eide
2006-05-02 12:59 Hans A Eide
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=20060502202412.0d68150f.zaitcev@redhat.com \
--to=zaitcev@redhat.com \
--cc=haeide@usit.uio.no \
--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
all inboxes | Powered by JetHome®