Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KMbJf-00022R-0D for mharc-grub-devel@gnu.org; Sat, 26 Jul 2008 00:23:35 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KMbJd-000228-0t for grub-devel@gnu.org; Sat, 26 Jul 2008 00:23:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KMbJa-00021D-NK for grub-devel@gnu.org; Sat, 26 Jul 2008 00:23:31 -0400 Received: from [199.232.76.173] (port=60119 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KMbJa-000214-G0 for grub-devel@gnu.org; Sat, 26 Jul 2008 00:23:30 -0400 Received: from ti-out-0910.google.com ([209.85.142.187]:18687) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KMbJa-00066Q-0e for grub-devel@gnu.org; Sat, 26 Jul 2008 00:23:30 -0400 Received: by ti-out-0910.google.com with SMTP id u5so1655148tia.10 for ; Fri, 25 Jul 2008 21:23:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=i9iGoyi/ZlynXaoo/CDzmh8bEr55HP3vcgRImPfKsCg=; b=ZGWZt23lkQyYDTzbwfjPLp5qKkDCsz9LBQ4IxFnSH9qNk33rGPW3vgBXw/7qZmNuQG KTz6HRsq3O1tZirmvq6fUCml4I8026LRZ89scoWQINb790ufPC9jkfattRXZINnvUQH6 RmTBzva/OHGO31AcV6gnvVGJo8fK+CKlfOwhA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=gek1gMKOCDKzfaLE7T3HExbbC+yq8vgNuGc5c1s0t/UzsZu3ODtqessjPRdXIEeWb6 qwKBqgHOEimWrjiU3QO2W9xIXWCPHB7cumBlcmceevgxxkcR8Si3Rw/t153PCZfbgHZk qLe6C7sB2kBldO6/p4s4I1KdnextupG6ADZcs= Received: by 10.110.57.6 with SMTP id f6mr2721801tia.38.1217046204233; Fri, 25 Jul 2008 21:23:24 -0700 (PDT) Received: by 10.110.16.5 with HTTP; Fri, 25 Jul 2008 21:23:24 -0700 (PDT) Message-ID: Date: Sat, 26 Jul 2008 12:23:24 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <20080725205123.GG18149@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080725205123.GG18149@thorin> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: [PATCH] Ignore case when opening files in FAT X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jul 2008 04:23:33 -0000 On Sat, Jul 26, 2008 at 4:51 AM, Robert Millan wrote: > On Fri, Jul 25, 2008 at 03:28:45PM +0800, Bean wrote: >> Hi, >> >> As FAT is basically a case insensitive file system, we should ignore >> case when opening files. > > I don't agree with this. FAT itself just stores names in ASCII, which > provides both cases. It's up to the reader whether to be case sensitive > or not (btw I recall this was discussed before). > > IMHO, case unsensitivity is a bug. It's only included in EFI for legacy > reasons. We also need to consider scripts, like update-grub. It retrieve pathname using host os. We need to be sure grub can read those pathname. Our fat driver uses the same scheme as linux, which convert all uppercase name to lowercase, but it doesn't match windows, which preserves them. Also, what's the drawback of this ? The linux drive also does the same, it lists files using lowercase, but you can open files in any case. > >> For example, normally efi image would be placed in EFI/grub directory. >> After startup, the prefix would be set to something like >> (hd0,1)/EFI/grub/. But inside grub, it convert pathname to lowercase, >> EFI would become efi, so grub can't open it anymore. > > If the problem is that GRUB converts pathnames to lowercase, why not drop > that conversion and let filenames be of any case? FAT can have long filename, which preserve case. The problem is when long filename is not used, in that case, it store them in 8.3 format, which uses all uppercase. -- Bean