aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorBaolin Liu <liubaolin@kylinos.cn>2026-09-04 17:00:52 +0800
committerNamjae Jeon <linkinjeon@kernel.org>2026-10-20 18:41:41 +0900
commit5cd6692db2725b111806a813014db864264ad8f9 (patch)
tree925f678cda2cf5bbe869ee20c3fbc3b4d1fc5d8a /scripts/Makefile.thinlto
parentntfs: return -EINVAL from ntfs_collate_ntofs_ulongs() on bad length (diff)
ntfs: preserve the truncate error in ntfs_enlarge_attribute()
ntfs_enlarge_attribute() discards the error from ntfs_attr_truncate() and returns -1, which reaches userspace as EPERM. The discarded codes are meaningful: -ENOSPC when the attribute cannot grow, -EACCES when it is encrypted, -EOPNOTSUPP when compressed, plus -EINVAL and -ENOMEM. Most callers of ntfs_inode_attr_pwrite() compare the result against the requested length and substitute -EIO, masking this. ntfs_ib_write() does not; it returns the value verbatim, which propagates through ntfs_index_add_filename() to __ntfs_create() and __ntfs_link(), so a full volume reports EPERM instead of ENOSPC from create(), mkdir() and link(). Fixes: af0db57d4293 ("ntfs: update inode operations") Signed-off-by: Baolin Liu <liubaolin@kylinos.cn> Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions