mbox series

[U-Boot,v2,0/3] efi_loader: allow writing to FAT

Message ID 20180527154920.10959-1-xypron.glpk@gmx.de
Headers show
Series efi_loader: allow writing to FAT | expand

Message

Heinrich Schuchardt May 27, 2018, 3:49 p.m. UTC
Running the UEFI Self-Certifcation Test (SCT) will require to support
writing to a FAT file system.

Writing to the FAT root directory from EFI fails because the leading
slash of the file path is interpreted as part of the filename.

With the 1st patch we can write to the root directory.

A unit test for writing a new file to the FAT root directory is supplied.

v2
	Avoid use after free due to calline root->close(root) too often.
	Use ISDIRDELIM() to identify (back-)slashes.

Heinrich Schuchardt (3):
  fs: fat: cannot write to subdirectories
  efi_selftest: imply FAT, FAT_WRITE
  efi_selftest: test writing to file

 fs/fat/fat_write.c                           | 16 ++++-
 lib/efi_selftest/Kconfig                     |  2 +
 lib/efi_selftest/efi_selftest_block_device.c | 66 ++++++++++++++++++++
 3 files changed, 83 insertions(+), 1 deletion(-)