[PATCH 0/6] add support for renaming to EFI_FILE_PROTOCOL.SetInfo()
Gabriel Dalimonte
gabriel.dalimonte at gmail.com
Wed Jan 22 06:32:25 CET 2025
This series adds support for file renaming to EFI_FILE_PROTOCOL.SetInfo().
One of the use cases for renaming in EFI is to facilitate boot loader
boot counting.
No existing filesystems in U-Boot currently include file renaming,
resulting in support for renaming at the filesystem level and a
concrete implementation for the FAT filesystem.
Gabriel Dalimonte (6):
fs: fat: factor out dentry link create/delete
fs: add rename infrastructure
fs: fat: add rename
fs: fat: update parent dirs metadata on rename
efi_loader: move path out of file_handle
efi_loader: support file rename in SetInfo()
cmd/fat.c | 14 +
fs/fat/fat_write.c | 448 +++++++++++++++++++++---
fs/fs.c | 48 +++
include/fat.h | 1 +
include/fs.h | 13 +
lib/efi_loader/efi_file.c | 61 +++-
test/py/tests/test_fs/conftest.py | 121 +++++++
test/py/tests/test_fs/fstest_helpers.py | 2 +
test/py/tests/test_fs/test_rename.py | 366 +++++++++++++++++++
9 files changed, 1009 insertions(+), 65 deletions(-)
create mode 100644 test/py/tests/test_fs/test_rename.py
--
2.34.1
More information about the U-Boot
mailing list