Skip to content

This series adds support for file renaming to EFI_FILE_PROTOCOL.SetInfo().

Gabriel Dalimonte u-boot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 6 repliesIn review
  2. v16 patches 9 repliesSuperseded

Changes in v2 from the cover letter · 22 lines

- update create_link() docstring
- remove ATTR_ARCH being implicitly set in create_link()
- cleanup log message and verbosity in fs_rename()
- update fs_close() docstring with reference to fs_rename()
- clarify fs_rename() behaviour in docstring
- change fatrename to mv (updating semantics to match mv)
- add mv command docs
- add FAT_RENAME Kconfig symbol
- update rename tests for mv command semantics
- update rename test docs on whether mv should succeed or fail
- remove all (fat) prefixes from commands used in rename tests
- clarify docs in check_path_prefix()
- stack allocate fat_itr in check_path_prefix()
- log on observed filesystem corruption in check_path_prefix()
- change 'break's to 'goto' in check_path_prefix()
- normalize added logging to use log_debug()
- correct error code returned when destination directory is not empty
- remove setting ATTR_ARCH on parent dirs during renames
- skip updating timestamps if no RTC present
- make fat_itr stack allocated in update_parent_dir_props
- update parent dir props in create_link and delete_dentry_link
- simplify freeing of new_file_name and new_path

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6fs: fat: factor out dentry link create/deletefs/fat/fat_write.c+65 -560 replies
2/6fs: add rename infrastructurefs/fs.c include/fs.h+45 -11 reply
3/6fs: fat: add renamecmd/fs.c doc/usage/cmd/mv.rst fs/fat/Kconfig +8 more+930 -10 replies
4/6fs: fat: update parent dirs metadata on dentry create/deletefs/fat/fat_write.c+74 -40 replies
5/6efi_loader: move path out of file_handlelib/efi_loader/efi_file.c+9 -42 replies
6/6efi_loader: support file rename in SetInfo()lib/efi_loader/efi_file.c+39 -62 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchIlias Apalodimas
1/6
2/6A-b
3/6
4/6
5/6
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/6] This series adds support for file renaming to EFI_FILE_PROTOCOL.SetInfo().

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.

Changes in v2:
- update create_link() docstring
- remove ATTR_ARCH being implicitly set in create_link()
- cleanup log message and verbosity in fs_rename()
- update fs_close() docstring with reference to fs_rename()
- clarify fs_rename() behaviour in docstring
- change fatrename to mv (updating semantics to match mv)
- add mv command docs
- add FAT_RENAME Kconfig symbol
- update rename tests for mv command semantics
- update rename test docs on whether mv should succeed or fail
- remove all (fat) prefixes from commands used in rename tests
- clarify docs in check_path_prefix()
- stack allocate fat_itr in check_path_prefix()
- log on observed filesystem corruption in check_path_prefix()
- change 'break's to 'goto' in check_path_prefix()
- normalize added logging to use log_debug()
- correct error code returned when destination directory is not empty
- remove setting ATTR_ARCH on parent dirs during renames
- skip updating timestamps if no RTC present
- make fat_itr stack allocated in update_parent_dir_props
- update parent dir props in create_link and delete_dentry_link
- simplify freeing of new_file_name and new_path

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 dentry create/delete
efi_loader: move path out of file_handle
efi_loader: support file rename in SetInfo()

 cmd/fs.c                                |  14 +
 doc/usage/cmd/mv.rst                    |  61 +++
 fs/fat/Kconfig                          |   7 +
 fs/fat/fat_write.c                      | 476 +++++++++++++++++++++---
 fs/fs.c                                 |  95 +++++
 include/fat.h                           |   1 +
 include/fs.h                            |  16 +-
 lib/efi_loader/Kconfig                  |   1 +
 lib/efi_loader/efi_file.c               |  58 ++-
 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    | 372 ++++++++++++++++++
 12 files changed, 1157 insertions(+), 67 deletions(-)
 create mode 100644 doc/usage/cmd/mv.rst
 create mode 100644 test/py/tests/test_fs/test_rename.py
Signature · 1 line
2.34.1