Skip to contentSkip to conversation

fs/ntfs3: disable the 'ads' mount option by default

PATCH New Hungyu Lin 1 participant 1 message Nov 15 NTFS3 filesystem

lore
Share & tools
lore

Hungyu Lin

author
#0 lore raw

PATCH 1/1 fs/ntfs3: disable the 'ads' mount option by default

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.

---
 fs/ntfs3/super.c | 1 -
 1 file changed, 1 deletion(-)
fs/ntfs3/super.c +0 -1
index 29aabdc8a801..0c317cda836b 100644
@@ -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
Signature · 1 line
2.43.0