From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262306AbUBXRH0 (ORCPT ); Tue, 24 Feb 2004 12:07:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262305AbUBXRHZ (ORCPT ); Tue, 24 Feb 2004 12:07:25 -0500 Received: from phoenix.infradead.org ([213.86.99.234]:48648 "EHLO phoenix.infradead.org") by vger.kernel.org with ESMTP id S262306AbUBXRGb (ORCPT ); Tue, 24 Feb 2004 12:06:31 -0500 Date: Tue, 24 Feb 2004 17:06:26 +0000 From: Christoph Hellwig To: "Steven J. Hill" Cc: Jeremy Higdon , Andrew Morton , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Subject: Re: [PATCH] 2.6.2, Partition support for SCSI CDROM... Message-ID: <20040224170626.A25066@infradead.org> Mail-Followup-To: Christoph Hellwig , "Steven J. Hill" , Jeremy Higdon , Andrew Morton , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org References: <40396134.6030906@realitydiluted.com> <20040222190047.01f6f024.akpm@osdl.org> <40396E8F.4050307@realitydiluted.com> <20040224061130.GC503530@sgi.com> <403B8108.6080606@realitydiluted.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <403B8108.6080606@realitydiluted.com>; from sjhill@realitydiluted.com on Tue, Feb 24, 2004 at 11:51:20AM -0500 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 24, 2004 at 11:51:20AM -0500, Steven J. Hill wrote: > Here is the second try at the patch. > > -Steve +static int partitions = 16; This is changes what sr1 is mapped to without specicying any option. The default _must_ be 0 partitions or existing setups will break. +MODULE_PARM(partitions, "i"); please make this module_param so it works at boot-time aswell. +MODULE_PARM_DESC(partitions, "number of SCSI CDROM partitions to support"); + /* Check number of partitions specified. */ + if (partitions < 0) + partitions = 0; now if you made the variable 'unsigned' you wouldn't have that problem.. While you're at it please also cook up an ide-cd variant, having partitions only supported on scsi cdroms is more than confusing.