diff options
author | Christian Brauner <brauner@kernel.org> | 2024-04-16 13:08:51 +0300 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-04-23 10:39:07 +0300 |
commit | d55f90e9b243faa5bcd5c8a323a8f43040500106 (patch) | |
tree | 0c4374ef0c29559ccf15395fe47b28062df7060f /fs/ntfs3/ntfs_fs.h | |
parent | 74871791ffa9562d43567c5ff2ae93def3f39f65 (diff) | |
download | linux-d55f90e9b243faa5bcd5c8a323a8f43040500106.tar.xz |
ntfs3: enforce read-only when used as legacy ntfs driver
Ensure that ntfs3 is mounted read-only when it is used to provide the
legacy ntfs driver.
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/ntfs3/ntfs_fs.h')
-rw-r--r-- | fs/ntfs3/ntfs_fs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ntfs3/ntfs_fs.h b/fs/ntfs3/ntfs_fs.h index 79356fd29a14..184c8bc76b92 100644 --- a/fs/ntfs3/ntfs_fs.h +++ b/fs/ntfs3/ntfs_fs.h @@ -1154,4 +1154,6 @@ static inline void le64_sub_cpu(__le64 *var, u64 val) *var = cpu_to_le64(le64_to_cpu(*var) - val); } +bool is_legacy_ntfs(struct super_block *sb); + #endif /* _LINUX_NTFS3_NTFS_FS_H */ |