This series adds support for file renaming to EFI_FILE_PROTOCOL.SetInfo().
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest6 patches 6 repliesIn review
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | fs: fat: factor out dentry link create/deletefs/ | +65 | 0 replies | |
| 2/6 | fs: add rename infrastructurefs/ include/ | +45 | 1 reply | |
| 3/6 | fs: fat: add renamecmd/ doc/ fs/ +8 more | +930 | 0 replies | |
| 4/6 | fs: fat: update parent dirs metadata on dentry create/deletefs/ | +74 | 0 replies | |
| 5/6 | efi_loader: move path out of file_handlelib/ | +9 | 2 replies | |
| 6/6 | efi_loader: support file rename in SetInfo()lib/ | +39 | 2 replies |
Reviews trailers per patch
2 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Ilias Apalodimas |
|---|---|
| 1/6 | |
| 2/6 | A-b |
| 3/6 | |
| 4/6 | |
| 5/6 | |
| 6/6 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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