diff options
| author | Baolin Liu <liubaolin@kylinos.cn> | 2026-09-23 14:02:41 +0800 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-10-12 20:47:50 +0900 |
| commit | e09aaff15d524b84bdfd9aa62d9c0295b94b2456 (patch) | |
| tree | 03fae31d5b2928c3622159e7605b85631b6c9669 /tools/lib/python | |
| parent | d020850da46341193656445a8e56cd716d6de575 (diff) | |
| download | linux-next-e09aaff15d524b84bdfd9aa62d9c0295b94b2456.tar.gz linux-next-e09aaff15d524b84bdfd9aa62d9c0295b94b2456.zip | |
ntfs: distinguish empty EA values from removal
The EA setter identifies removal using a zero value length together with
XATTR_REPLACE. A replacement with a valid empty value is therefore
mistaken for deletion.
Use a NULL value to identify removal and keep zero-length values valid.
Reject removal or XATTR_REPLACE for an absent entry before creating
metadata, including when the file has no EA attributes.
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 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
