From: "Aleš Nesrsta" <starous@volny.cz>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: [PATCH] scsi.c - cache ID bug
Date: Fri, 01 Oct 2010 16:50:09 +0200 [thread overview]
Message-ID: <1285944610.6460.3.camel@pracovna> (raw)
[-- Attachment #1: Type: text/plain, Size: 188 bytes --]
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
[-- Attachment #2: usb_scsi_cache_id_101001_0 --]
[-- Type: text/x-patch, Size: 473 bytes --]
--- ./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
next reply other threads:[~2010-10-01 14:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-01 14:50 Aleš Nesrsta [this message]
2010-10-01 18:37 ` [PATCH] scsi.c - cache ID bug Vladimir 'φ-coder/phcoder' Serbinenko
2010-10-02 18:58 ` Aleš Nesrsta
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=1285944610.6460.3.camel@pracovna \
--to=starous@volny.cz \
--cc=grub-devel@gnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.