From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH] 2.6.2, Partition support for SCSI CDROM... Date: Sun, 22 Feb 2004 19:00:47 -0800 Sender: linux-scsi-owner@vger.kernel.org Message-ID: <20040222190047.01f6f024.akpm@osdl.org> References: <40396134.6030906@realitydiluted.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from fw.osdl.org ([65.172.181.6]:62142 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S261794AbUBWDAF (ORCPT ); Sun, 22 Feb 2004 22:00:05 -0500 In-Reply-To: <40396134.6030906@realitydiluted.com> List-Id: linux-scsi@vger.kernel.org To: "Steven J. Hill" Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org "Steven J. Hill" wrote: > > Greetings. > > This patch enables support for CDROMs that have partitions on > them, like say SGI and SUN media. It was sent to me by Christoph > Hellwig and then I cleaned it up a bit. I am posting it more > for flamebait^Wcomments to see if people are comfortable with it. > +config BLK_DEV_SR_PARTITIONS > +config BLK_DEV_SR_PARTITIONS_PER_DEVICE Do we actually need these config options? Why not hardwire it to some reasonable upper bound and be done with it? > > +#ifdef MODULE > + /* Check number of partitions specified. */ > + if (partitions < 0) > + partitions = 0; > +#endif > + Why is this ifdef needed?