Add support for symlink creation in EXT4
Get series with b4
b4 am 20190129232652.GR30838@bill-the-catVersions newest first
- v1 Latest0 of 3 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 3 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [U-Boot] [PATCH v1 0/3] Add support for symlink creation in EXT4
Quoted 13 lines · Lukasz Majewski
Quoted 10 lines · On Tue, 29 Jan 2019 14:40:08 +0100 Jean-Jacques Hiblot <[email protected]> wrote:
This series adds support for the creation of symbolic links on ext4 file-systems.
The motivation behind this work is to have the ability to "do" the job of update-alternatives in u-boot.
Firmware on TI's platform are usually managed with update-alternatives and are thus targeted by a symbolic link. In some situations we need the ability to select an alternate firmware before the linux kernel is started so that when a early driver needing the firmware comes up, it can be fed the firmware of our choice.
Quoted 24 lines
Quoted 5 lines
Tested on a
am57xx_evm, using a EXT4 partition on external SDcard. The filesystem can be checked later with: fsck.ext4 -f <dev>usage example:
=> ln mmc 0:2 zImage/boot/the_linux_kernelCould you also add a test for symlink to sandbox? This is a high level code (FS ext4), so it can be nice tested there.
Quoted 15 lines
Jean-Jacques Hiblot (3):
fs: ext4: constify the buffer passed to write functions
fs: ext4: Add support for the creation of symbolic links
fs: Add a new command to create symbolic linkscmd/fs.c | 14 ++++++++++++ fs/ext4/ext4_common.c | 6 ++--- fs/ext4/ext4_common.h | 2 +- fs/ext4/ext4_write.c | 51 ++++++++++++++++++++++++++++++++----------- fs/fs.c | 44 +++++++++++++++++++++++++++++++++++++ include/ext4fs.h | 5 +++-- include/fs.h | 2 ++ 7 files changed, 105 insertions(+), 19 deletions(-)
Yes, now that we have tests under pytest, we need to drop something for this under test/py/tests/test_fs/ and my first thought is in a new test_symlink.py file so that someday when we get more than just FAT/EXTn tests the next FS that supports symlinks gets the tests for free if/when it supports symlinks.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190129/0dba0276/attachment.sig>