All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] fs/ntfs3: two fixes for large NTFS volumes
@ 2026-06-13 20:16 Senjin
  0 siblings, 0 replies; 2+ messages in thread
From: Senjin @ 2026-06-13 20:16 UTC (permalink / raw)
  To: ntfs3; +Cc: almaz.alexandrovich, linux-kernel

Both patches were found on a 16 TB NTFS volume with 0xFFFFFEFF total
clusters, compiled with CONFIG_NTFS3_64BIT_CLUSTER=y.

Patch 1 is v2 of the previously submitted MFT bitmap fix, correcting
a malformed hunk header in the diff. No code change from v1.

Patch 2 is a new fix: sbi->maxbytes_sparse is assigned -1 in the
CONFIG_NTFS3_64BIT_CLUSTER path. As a signed loff_t, -1 is the most
negative value, causing vfs_setpos() to return -EINVAL for every seek
on sparse or compressed files on such a volume. Sequential reads work
correctly; random access does not. Fix assigns MAX_LFS_FILESIZE
instead, consistent with the other two limits in the same block.

Senjin (2):
  fs/ntfs3: load ATTR_BITMAP run extents from $MFT extension records
  fs/ntfs3: fix lseek EINVAL on sparse/compressed files with 64-bit clusters

 fs/ntfs3/inode.c | 10 +++++++---
 fs/ntfs3/super.c |  2 +-
 2 files changed, 8 insertions(+), 4 deletions(-)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH v2 0/2] fs/ntfs3: two fixes for large NTFS volumes
@ 2026-06-13 20:16 Senjin
  0 siblings, 0 replies; 2+ messages in thread
From: Senjin @ 2026-06-13 20:16 UTC (permalink / raw)
  To: ntfs3; +Cc: almaz.alexandrovich, linux-kernel

Both patches were found on a 16 TB NTFS volume with 0xFFFFFEFF total
clusters, compiled with CONFIG_NTFS3_64BIT_CLUSTER=y.

Patch 1 is v2 of the previously submitted MFT bitmap fix, correcting
a malformed hunk header in the diff. No code change from v1.

Patch 2 is a new fix: sbi->maxbytes_sparse is assigned -1 in the
CONFIG_NTFS3_64BIT_CLUSTER path. As a signed loff_t, -1 is the most
negative value, causing vfs_setpos() to return -EINVAL for every seek
on sparse or compressed files on such a volume. Sequential reads work
correctly; random access does not. Fix assigns MAX_LFS_FILESIZE
instead, consistent with the other two limits in the same block.

Senjin (2):
  fs/ntfs3: load ATTR_BITMAP run extents from $MFT extension records
  fs/ntfs3: fix lseek EINVAL on sparse/compressed files with 64-bit clusters

 fs/ntfs3/inode.c | 10 +++++++---
 fs/ntfs3/super.c |  2 +-
 2 files changed, 8 insertions(+), 4 deletions(-)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-06-13 20:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-13 20:16 [PATCH v2 0/2] fs/ntfs3: two fixes for large NTFS volumes Senjin
  -- strict thread matches above, loose matches on Subject: below --
2026-06-13 20:16 Senjin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.