
12 Dec
2024
12 Dec
'24
11:14 p.m.
On Thu, Dec 12, 2024 at 11:06:27PM +0100, Burak Gerz wrote:
Hello This patch series is a first implementation for file renaming on a FAT filesystems. This implementation does a file rename only (no moving between directories) as needed by bootloaders like systemd-boot [1].
The renaming process is tried to be made as fail-safe as possible, by
- Writing the new, empty file
- Copying the address of the start cluster into new directory entry
- Deleting old file
This can decay in the worst case to a hard link
Additionally, make use of the FAT file rename in /lib/efi_loader
[1] https://www.freedesktop.org/software/systemd/man/latest/systemd-boot.html#Bo...
This is useful, thanks! Can you please extend the existing tests in test/py/tests/test_fs/ to cover this as well?
--
Tom