grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] fix disk->id abuse


From: Marco Gerards
Subject: Re: [PATCH] fix disk->id abuse
Date: Tue, 02 Sep 2008 15:55:18 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

[...]

>> We could write a macro for ID comparison that would compare both the
>> "driver ID" (disk->dev->id) and "device ID" (disk->id).  In this case,
>> we can omit disk->id initialization in the drivers supporting only one
>> device (e.g. memdisk) and only leave it where it's indeed needed for
>> identifying separate devices, thus removing potentially confusing code.
>
> Sounds fine, although what worries me most if the current usage of 'id' in
> scsi.c, which can lead to collision already.
>
> I assume using LUNs is a proper solution for that one?

No, it is not.  I think I already said so on IRC?

--
Marco





reply via email to

[Prev in Thread] Current Thread [Next in Thread]