Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 22 Nov 2001 12:15:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 22 Nov 2001 12:14:59 -0500 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:57096 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Thu, 22 Nov 2001 12:14:50 -0500 Date: Thu, 22 Nov 2001 09:09:23 -0800 (PST) From: Linus Torvalds To: Erik Andersen cc: Kernel Mailing List Subject: Re: [PATCH] fix SCSI non-blocksize reads In-Reply-To: <20011122014131.A16981@codepoet.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 22 Nov 2001, Erik Andersen wrote: > > Several SCSI drivers blindly do reads of size 1024 when trying to read > the partition table. This fails on Magneto Optical drives and similar > odd devices with 2048 byte native sector sizes. This patch fixes that > so I can have partitions on my MO drive again (it lives on an Adaptec > card at present and has 2048 byte sectors), Please use the "block_size()" function instead of doing it by hand.. Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/