public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] efi and ext4 and case sensitive file names
@ 2023-09-27 12:09 Gerd Hoffmann
  2023-09-28  8:01 ` Laszlo Ersek
  2023-09-28 17:57 ` Pedro Falcato
  0 siblings, 2 replies; 7+ messages in thread
From: Gerd Hoffmann @ 2023-09-27 12:09 UTC (permalink / raw)
  To: Pedro Falcato, devel

  Hi,

I've noticed that the edk2 ext4 driver does case-insensitive filename
matching.  I know the fat filesystem is case-insensitive, and the uefi
spec describing the fat filesystem also explicitly says it is
case-insensitive.  On a quick scan I can't find anything in the uefi
spec requiring *all* filesystem drivers being case-insensitive though.

So I'm wondering whenever the ext4 driver behavior is correct.  It
certainly is different than the linux kernel's behavior which is (by
default) case-sensitive.

Also note that the linux kernel ext4 driver recently got support for
case-insensitive file names, which must be explicitly enabled for both
filesystems (EXT4_FEATURE_INCOMPAT_CASEFOLD) and directories
(EXT4_CASEFOLD_FL).

On practical terms I've ran into actual problems due to Fedora mounting
the ESP at /boot/efi[1] and UKIs (unified kernel images) should be
placed in EFI/Linux on either ESP or XBOOTLDR partition, which on fedora
translates to /boot/efi/EFI/Linux (ESP) or /boot/EFI/Linux (XBOOTLDR).
So I have both /boot/efi and /boot/EFI ...

take care,
  Gerd

[1] Yes, a bad choice for a number of reasons, but changing that isn't
    easy as this is hard-coded in a unknown number of places :(



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#109121): https://edk2.groups.io/g/devel/message/109121
Mute This Topic: https://groups.io/mt/101615699/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-09-29 11:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-27 12:09 [edk2-devel] efi and ext4 and case sensitive file names Gerd Hoffmann
2023-09-28  8:01 ` Laszlo Ersek
2023-09-28 17:57 ` Pedro Falcato
2023-09-29  9:47   ` Marvin Häuser
2023-09-29 10:55     ` Pedro Falcato
2023-09-29 10:58     ` Michael Brown
2023-09-29 11:01       ` Marvin Häuser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox