From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1P1gwM-00028o-Sc for mharc-grub-devel@gnu.org; Fri, 01 Oct 2010 10:50:26 -0400 Received: from [140.186.70.92] (port=38108 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1gwE-000254-SQ for grub-devel@gnu.org; Fri, 01 Oct 2010 10:50:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1gwA-0002o4-26 for grub-devel@gnu.org; Fri, 01 Oct 2010 10:50:18 -0400 Received: from smtp-out4.iol.cz ([194.228.2.92]:38775) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P1gw9-0002nr-Sy for grub-devel@gnu.org; Fri, 01 Oct 2010 10:50:14 -0400 Received: from antivir6.iol.cz (unknown [192.168.30.215]) by smtp-out4.iol.cz (Postfix) with ESMTP id 2D366CE41A3 for ; Fri, 1 Oct 2010 14:50:12 +0000 (UTC) Received: from localhost (antivir6.iol.cz [127.0.0.1]) by antivir6.iol.cz (Postfix) with ESMTP id F3D41720059 for ; Fri, 1 Oct 2010 16:50:11 +0200 (CEST) X-Virus-Scanned: amavisd-new at iol.cz Received: from antivir6.iol.cz ([127.0.0.1]) by localhost (antivir6.iol.cz [127.0.0.1]) (amavisd-new, port 10224) with LMTP id 3zjR1HEfyDLM for ; Fri, 1 Oct 2010 16:50:11 +0200 (CEST) Received: from port4.iol.cz (unknown [192.168.30.94]) by antivir6.iol.cz (Postfix) with ESMTP id C3E17720057 for ; Fri, 1 Oct 2010 16:50:11 +0200 (CEST) X-SBRS: None X-SBRS-none: None X-RECVLIST: MTA-OUT-IOL X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiILAH+RpUxVRnXk/2dsb2JhbAAHgxeBAdNnkh+EUHQE Received: from 228.117.broadband3.iol.cz (HELO [192.168.6.160]) ([85.70.117.228]) by port4.iol.cz with ESMTP; 01 Oct 2010 16:50:11 +0200 From: =?UTF-8?Q?Ale=C5=A1?= Nesrsta To: The development of GNU GRUB Content-Type: multipart/mixed; boundary="=-gNKZmyNf1FGdGZKOIZ7g" Date: Fri, 01 Oct 2010 16:50:09 +0200 Message-Id: <1285944610.6460.3.camel@pracovna> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: [PATCH] scsi.c - cache ID bug X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Oct 2010 14:50:25 -0000 --=-gNKZmyNf1FGdGZKOIZ7g Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi, I have problem with multi-lun devices in some cases. I found small bug in "old" problem solution of SCSI cache ID in trunk - see attached patch which should solve it. Regards Ales --=-gNKZmyNf1FGdGZKOIZ7g Content-Disposition: attachment; filename=usb_scsi_cache_id_101001_0 Content-Type: text/x-patch; name=usb_scsi_cache_id_101001_0; charset=UTF-8 Content-Transfer-Encoding: 7bit --- ./grub/include/grub/scsi.h 2010-09-30 22:17:31.000000000 +0200 +++ ./grub_patched/include/grub/scsi.h 2010-10-01 15:58:23.000000000 +0200 @@ -40,7 +40,7 @@ static inline grub_uint32_t grub_make_scsi_id (int subsystem, int bus, int lun) { return (subsystem << GRUB_SCSI_ID_SUBSYSTEM_SHIFT) - | (bus << GRUB_SCSI_ID_BUS_SHIFT) | (lun << GRUB_SCSI_ID_BUS_SHIFT); + | (bus << GRUB_SCSI_ID_BUS_SHIFT) | (lun << GRUB_SCSI_ID_LUN_SHIFT); } struct grub_scsi_dev --=-gNKZmyNf1FGdGZKOIZ7g--