Skip to content

Commit 6022ec6

Browse files
committed
Pull ntfs3 updates from Konstantin Komarov: - added mount options 'hidedotfiles', 'nocase' and 'windows_names' - fixed xfstests (tested on x86_64): generic/083 generic/263 generic/307 generic/465 - fix some logic errors - code refactoring and dead code removal * tag 'ntfs3_for_6.2' of https://github.com/Paragon-Software-Group/linux-ntfs3: (61 commits) fs/ntfs3: Make if more readable fs/ntfs3: Improve checking of bad clusters fs/ntfs3: Fix wrong if in hdr_first_de fs/ntfs3: Use ALIGN kernel macro fs/ntfs3: Fix incorrect if in ntfs_set_acl_ex fs/ntfs3: Check fields while reading fs/ntfs3: Correct ntfs_check_for_free_space fs/ntfs3: Restore correct state after ENOSPC in attr_data_get_block fs/ntfs3: Changing locking in ntfs_rename fs/ntfs3: Fixing wrong logic in attr_set_size and ntfs_fallocate fs/ntfs3: atomic_open implementation fs/ntfs3: Fix wrong indentations fs/ntfs3: Change new sparse cluster processing fs/ntfs3: Fixing work with sparse clusters fs/ntfs3: Simplify ntfs_update_mftmirr function fs/ntfs3: Remove unused functions fs/ntfs3: Fix sparse problems fs/ntfs3: Add ntfs_bitmap_weight_le function and refactoring fs/ntfs3: Use _le variants of bitops functions fs/ntfs3: Add functions to modify LE bitmaps ...
2 parents 04065c1 + 36963cf commit 6022ec6

File tree

20 files changed

+1430
-626
lines changed

20 files changed

+1430
-626
lines changed

Documentation/filesystems/ntfs3.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ versions up to 3.1. File system type to use on mount is *ntfs3*.
2525
Note: Applied to empty files, this allows to switch type between
2626
sparse(0x200), compressed(0x800) and normal.
2727

28+
- *system.ntfs_attrib_be* gets/sets ntfs file/dir attributes.
29+
30+
Same value as system.ntfs_attrib but always represent as big-endian
31+
(endianness of system.ntfs_attrib is the same as of the CPU).
32+
2833
Mount Options
2934
=============
3035

@@ -75,6 +80,20 @@ this table marked with no it means default is without **no**.
7580
- Files with the Windows-specific SYSTEM (FILE_ATTRIBUTE_SYSTEM) attribute
7681
will be marked as system immutable files.
7782

83+
* - hide_dot_files
84+
- Updates the Windows-specific HIDDEN (FILE_ATTRIBUTE_HIDDEN) attribute
85+
when creating and moving or renaming files. Files whose names start
86+
with a dot will have the HIDDEN attribute set and files whose names
87+
do not start with a dot will have it unset.
88+
89+
* - windows_names
90+
- Prevents the creation of files and directories with a name not allowed
91+
by Windows, either because it contains some not allowed character (which
92+
are the characters " * / : < > ? \\ | and those whose code is less than
93+
0x20), because the name (with or without extension) is a reserved file
94+
name (CON, AUX, NUL, PRN, LPT1-9, COM1-9) or because the last character
95+
is a space or a dot. Existing such files can still be read and renamed.
96+
7897
* - discard
7998
- Enable support of the TRIM command for improved performance on delete
8099
operations, which is recommended for use with the solid-state drives

0 commit comments

Comments
 (0)