dump.f2fs: macOS does not support lsetxattr
PATCH 1/1 dump.f2fs: macOS does not support lsetxattr
From: Łukasz Patron <[email protected]>
Fixes a66d49fd2678 ("dump.f2fs: Dump symlinks as symlinks")
Signed-off-by Łukasz Patron <[email protected]>
--- fsck/dump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
fsck/dump.c +2 -2
@@ -464,9 +464,9 @@ static void dump_xattr(struct f2fs_sb_info *sbi, struct f2fs_node *node_blk, intle16_to_cpu (ent->e_value_size),0 , XATTR_CREATE); }if (S_ISLNK (type) && c.preserve_symlinks) { - ret =lsetxattr (c.dump_symlink, xattr_name, value, + ret =setxattr (c.dump_symlink, xattr_name, value,le16_to_cpu (ent->e_value_size),0 , -XATTR_CREATE ); +XATTR_CREATE |XATTR_NOFOLLOW ); }else { ret = fsetxattr(c.dump_fd, xattr_name, value, le16_to_cpu(ent->e_value_size), 0,
Signature · 8 lines
2.53.0 _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
ping
Quoted 26 lines · On Fri, Mar 13, 2026 at 2:09 PM LuK1337 <[email protected]> wrote:
From: Łukasz Patron <[email protected]>
Fixes a66d49fd2678 ("dump.f2fs: Dump symlinks as symlinks")Signed-off-by Łukasz Patron <[email protected]>--- fsck/dump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)fsck/dump.c +2
-3@@ -464,9 +464,9 @@ static void dump_xattr(struct f2fs_sb_info *sbi, struct f2fs_node *node_blk, intle16_to_cpu (ent->e_value_size),0 , XATTR_CREATE); }if (S_ISLNK (type) && c.preserve_symlinks) { - ret =lsetxattr (c.dump_symlink, xattr_name, value, + ret =setxattr (c.dump_symlink, xattr_name, value,le16_to_cpu (ent->e_value_size),0 , -XATTR_CREATE ); +XATTR_CREATE |XATTR_NOFOLLOW ); }else { ret = fsetxattr(c.dump_fd, xattr_name, value, le16_to_cpu(ent->e_value_size), 0, --
Quoted 2 lines
2.53.0
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Quoted 4 lines · On 3/13/26 21:09, LuK1337 wrote:
From: Łukasz Patron <[email protected]>
Fixes a66d49fd2678 ("dump.f2fs: Dump symlinks as symlinks")Signed-off-by Łukasz Patron <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel