[PATCH 00/11] Bugfix and refactoring
From: Konstantin Komarov
Date: Fri Oct 09 2026 - 13:17:31 EST
This series collects fixes and cleanups that accumulated in the ntfs3 tree.
The main fix is 11: attr_allocate_frame() kept using a stale attr_b after
ni_insert_nonresident() moved the base attribute to another MFT record.
Patches 02, 05, 07 and 08 fix cluster allocation and sparse file size
handling, and 10 rejects unaligned hole punching on compressed attributes.
Patch 06 adds a 'ugm' mount option controlling whether uid/gid/mode
are stored in the WSL extended attributes on creation. The rest are
cleanups.
Konstantin Komarov (11):
fs/ntfs3: show supported options when an unknown one is given
fs/ntfs3: zero newly allocated clusters when the request is smaller
than the frame
fs/ntfs3: drop unused new_size argument from attr_make_nonresident()
fs/ntfs3: minor code cleanups
fs/ntfs3: do not force allocation for IOMAP_ZERO on a partial cluster
fs/ntfs3: add 'ugm' mount option to control storing uid/gid/mode in
xattrs
fs/ntfs3: allow a zero cluster count for resident attributes
fs/ntfs3: reserve a compression unit in maxbytes_sparse
fs/ntfs3: take ni_lock() once in ntfs_readdir()
fs/ntfs3: reject unaligned hole punching on compressed files
fs/ntfs3: fix stale attr_b in attr_allocate_frame()
fs/ntfs3/attrib.c | 130 ++++++++++++++++++++++++---------------------
fs/ntfs3/dir.c | 38 ++++++-------
fs/ntfs3/frecord.c | 5 +-
fs/ntfs3/inode.c | 18 +++----
fs/ntfs3/namei.c | 6 +--
fs/ntfs3/ntfs_fs.h | 5 +-
fs/ntfs3/super.c | 31 ++++++++++-
fs/ntfs3/xattr.c | 7 +++
8 files changed, 139 insertions(+), 101 deletions(-)
--
2.43.0