mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/9] symlink fixes and improvements
@ 2026-10-20  7:09 Sascha Hauer
  2026-10-20  7:09 ` [PATCH 1/9] fs: ramfs: report symlink target length as st_size Sascha Hauer
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Sascha Hauer @ 2026-10-20  7:09 UTC (permalink / raw)
  To: BAREBOX

symlinks in ramfs are created with the wrong filesize causing broken
symlinks on envfs. Looking into this revealed other shortcomings which
are fixed in this series. As a bonus the ln command gets an ignored
-s option and also the link destination can now be an existing directory
in which case it behaves like the linux ln command.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
Sascha Hauer (9):
      fs: ramfs: report symlink target length as st_size
      fs: qemu_fw_cfg: report symlink target length as st_size
      fs: ramfs: create symlinks with mode 0777
      fs: follow absolute symlinks from the root directory
      fs: allow trailing symlinks pointing to the root directory
      fs: symlink: drop references taken by filename_create()
      test: self: dirfd: add tests for absolute symlinks
      commands: ln: accept -s option
      commands: ln: create link inside DEST if it is a directory

 commands/ln.c     | 51 +++++++++++++++++++++++++++++++++++++++++++---
 fs/fs.c           | 25 ++++++++++++++++++++---
 fs/qemu_fw_cfg.c  |  1 +
 fs/ramfs.c        |  4 +++-
 test/self/dirfd.c | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 134 insertions(+), 7 deletions(-)
---
base-commit: e65108ec0a682b53ecb9e1bebde6a37e0a99ead6
change-id: 20261020-fs-symlink-fixes-e4eb5782c22e

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-10-20  7:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-20  7:09 [PATCH 0/9] symlink fixes and improvements Sascha Hauer
2026-10-20  7:09 ` [PATCH 1/9] fs: ramfs: report symlink target length as st_size Sascha Hauer
2026-10-20  7:09 ` [PATCH 2/9] fs: qemu_fw_cfg: " Sascha Hauer
2026-10-20  7:09 ` [PATCH 3/9] fs: ramfs: create symlinks with mode 0777 Sascha Hauer
2026-10-20  7:09 ` [PATCH 4/9] fs: follow absolute symlinks from the root directory Sascha Hauer
2026-10-20  7:09 ` [PATCH 5/9] fs: allow trailing symlinks pointing to " Sascha Hauer
2026-10-20  7:09 ` [PATCH 6/9] fs: symlink: drop references taken by filename_create() Sascha Hauer
2026-10-20  7:09 ` [PATCH 7/9] test: self: dirfd: add tests for absolute symlinks Sascha Hauer
2026-10-20  7:09 ` [PATCH 8/9] commands: ln: accept -s option Sascha Hauer
2026-10-20  7:09 ` [PATCH 9/9] commands: ln: create link inside DEST if it is a directory Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox