fs/ntfs3: disable the 'ads' mount option by default
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.
Fixes be310476e886 ("fs/ntfs3: Add basic support for alternative data streams")
Reported-by Clément Smagghe <[email protected]>
Closes https://lore.kernel.org/all/CAJ6F8CFgkgksyk6YM3NdMkQNhSFWV4depC4c-mHvpDHpnjhM-Q@mail.gmail.com/ open here
Signed-off-by Hungyu Lin <[email protected]>
--- fs/ntfs3/super.c | 1 - 1 file changed, 1 deletion(-)
fs/ntfs3/super.c +0 -1
@@ -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