[PATCH] fs/ntfs3: disable the 'ads' mount option by default
From: Hungyu Lin
Date: Sun Nov 15 2026 - 05:40:18 EST
Since commit be310476e886 ("fs/ntfs3: Add basic support for alternative
data streams") the 'ads' mount option is enabled by default, and
ntfs_nls_to_utf16() treats a ':' inside a name as the start of a stream
name. Existing files and directories whose names contain ':' are still
listed by readdir but can no longer be looked up, and such names can no
longer be created.
Make 'ads' opt-in, so that volumes mounted without it behave as before.
Fixes: be310476e886 ("fs/ntfs3: Add basic support for alternative data streams")
Reported-by: Clément Smagghe <cle.smagghe@xxxxxxxxx>
Closes: https://lore.kernel.org/all/CAJ6F8CFgkgksyk6YM3NdMkQNhSFWV4depC4c-mHvpDHpnjhM-Q@xxxxxxxxxxxxxx/
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Hungyu Lin <dennylin0707@xxxxxxxxx>
---
fs/ntfs3/super.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c
index 29aabdc8a801..0c317cda836b 100644
--- a/fs/ntfs3/super.c
+++ b/fs/ntfs3/super.c
@@ -1949,7 +1949,6 @@ static int ntfs_init_fs_context(struct fs_context *fc)
opts->fs_gid = current_gid();
opts->fs_fmask_inv = opts->fs_dmask_inv = ~current_umask();
opts->prealloc = 1;
- opts->ads = 1;
opts->ugm = 1;
#ifdef CONFIG_NTFS3_FS_POSIX_ACL
--
2.43.0