From: Gabriel Dalimonte <gabriel.dalimonte@gmail.com>
To: u-boot@lists.denx.de
Cc: Gabriel Dalimonte <gabriel.dalimonte@gmail.com>,
Adriano Cordova <adrianox@gmail.com>,
Caleb Connolly <caleb.connolly@linaro.org>,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Mattijs Korpershoek <mkorpershoek@baylibre.com>,
Michal Simek <michal.simek@amd.com>,
Nam Cao <namcao@linutronix.de>,
Raymond Mao <raymond.mao@linaro.org>,
Richard Weinberger <richard@nod.at>,
Simon Glass <sjg@chromium.org>,
Sughosh Ganu <sughosh.ganu@linaro.org>,
Tom Rini <trini@konsulko.com>
Subject: [PATCH v2 0/6] This series adds support for file renaming to EFI_FILE_PROTOCOL.SetInfo().
Date: Mon, 17 Feb 2025 13:26:41 -0500 [thread overview]
Message-ID: <20250217182648.31294-1-gabriel.dalimonte@gmail.com> (raw)
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
--
2.34.1
next reply other threads:[~2025-02-18 5:36 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-17 18:26 Gabriel Dalimonte [this message]
2025-02-17 18:26 ` [PATCH v2 1/6] fs: fat: factor out dentry link create/delete Gabriel Dalimonte
2025-02-17 18:26 ` [PATCH v2 2/6] fs: add rename infrastructure Gabriel Dalimonte
2025-02-20 7:33 ` Ilias Apalodimas
2025-02-17 18:26 ` [PATCH v2 3/6] fs: fat: add rename Gabriel Dalimonte
2025-02-17 18:26 ` [PATCH v2 4/6] fs: fat: update parent dirs metadata on dentry create/delete Gabriel Dalimonte
2025-02-17 18:26 ` [PATCH v2 5/6] efi_loader: move path out of file_handle Gabriel Dalimonte
2025-02-20 7:55 ` Ilias Apalodimas
2025-03-04 2:30 ` Gabriel D'Alimonte
2025-02-17 18:26 ` [PATCH v2 6/6] efi_loader: support file rename in SetInfo() Gabriel Dalimonte
2025-02-20 8:21 ` Ilias Apalodimas
2025-02-20 8:30 ` Ilias Apalodimas
2025-03-08 14:04 ` [PATCH v2 0/6] This series adds support for file renaming to EFI_FILE_PROTOCOL.SetInfo() Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250217182648.31294-1-gabriel.dalimonte@gmail.com \
--to=gabriel.dalimonte@gmail.com \
--cc=adrianox@gmail.com \
--cc=caleb.connolly@linaro.org \
--cc=ilias.apalodimas@linaro.org \
--cc=michal.simek@amd.com \
--cc=mkorpershoek@baylibre.com \
--cc=namcao@linutronix.de \
--cc=raymond.mao@linaro.org \
--cc=richard@nod.at \
--cc=sjg@chromium.org \
--cc=sughosh.ganu@linaro.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox