diff options
| author | Xuewen Wang <wangxuewen@kylinos.cn> | 2026-10-14 09:18:24 +0800 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-10-20 18:46:02 +0900 |
| commit | dc863955bae5eb712bff104f662ac1bc82c093a7 (patch) | |
| tree | 38dce64164d227924a3c85b221e4d25d93aa2eb2 | |
| parent | feccce4df0866783b65b493bba0964aeed4226dc (diff) | |
ntfs: report birth time for symbolic links
NTFS already loads the creation time into i_crtime and reports it through
ntfs_getattr(). However, the symbolic-link inode operations omit getattr,
so statx() with AT_SYMLINK_NOFOLLOW falls back to generic_fillattr() and
does not return STATX_BTIME for the link itself.
Use ntfs_getattr() for symbolic links to expose their stored creation time.
Signed-off-by: Xuewen Wang <wangxuewen@kylinos.cn>
Reviewed-by: Baolin Liu <liubaolin@kylinos.cn>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
| -rw-r--r-- | fs/ntfs/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ntfs/file.c b/fs/ntfs/file.c index 0c83a0dbc981..abec36f4e4bb 100644 --- a/fs/ntfs/file.c +++ b/fs/ntfs/file.c @@ -1556,6 +1556,7 @@ const struct inode_operations ntfs_file_inode_ops = { const struct inode_operations ntfs_symlink_inode_operations = { .get_link = ntfs_get_link, .setattr = ntfs_setattr, + .getattr = ntfs_getattr, .listxattr = ntfs_listxattr, .fileattr_get = ntfs_fileattr_get, .fileattr_set = ntfs_fileattr_set, |
