[PATCH 1/7] ntfs: fix incorrect size of symbolic link
From: Hyunchul Lee
Date: Fri Jun 12 2026 - 03:36:52 EST
This patch fixes the issue where a symbolic link size is displayed as 0.
Signed-off-by: Hyunchul Lee <hyc.lee@xxxxxxxxx>
---
fs/ntfs/inode.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/fs/ntfs/inode.c b/fs/ntfs/inode.c
index 2f2634baa285..efb34a5e94d9 100644
--- a/fs/ntfs/inode.c
+++ b/fs/ntfs/inode.c
@@ -1199,6 +1199,9 @@ static int ntfs_read_locked_inode(struct inode *vi)
else
vi->i_blocks = ni->allocated_size >> 9;
+ if (S_ISLNK(vi->i_mode) && ni->target)
+ vi->i_size = strlen(ni->target);
+
ntfs_debug("Done.");
return 0;
unm_err_out:
--
2.43.0