* [PATCH] fs/ntfs3: disable the 'ads' mount option by default
@ 2026-11-15 10:38 Hungyu Lin
0 siblings, 0 replies; only message in thread
From: Hungyu Lin @ 2026-11-15 10:38 UTC (permalink / raw)
To: almaz.alexandrovich
Cc: ntfs3, linux-kernel, dennylin0707, Clément Smagghe
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@gmail.com>
Closes: https://lore.kernel.org/all/CAJ6F8CFgkgksyk6YM3NdMkQNhSFWV4depC4c-mHvpDHpnjhM-Q@mail.gmail.com/
Cc: stable@vger.kernel.org
Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
---
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-15 10:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-15 10:38 [PATCH] fs/ntfs3: disable the 'ads' mount option by default Hungyu Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®