diff options
author | Marc Aurèle La France <tsi@tuyoix.net> | 2022-08-10 22:28:04 +0200 |
---|---|---|
committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2022-09-30 16:39:50 +0200 |
commit | f27b92ec0926efa3eadcebb97a90faba12e16041 (patch) | |
tree | 4e84b019defff2ab6eeade890f9c7be7f1e05d73 /fs/ntfs3/super.c | |
parent | fs/ntfs3: Add null pointer check to attr_load_runs_vcn (diff) | |
download | linux-f27b92ec0926efa3eadcebb97a90faba12e16041.tar.xz linux-f27b92ec0926efa3eadcebb97a90faba12e16041.zip |
fs/ntfs3: Fix [df]mask display in /proc/mounts
ntfs3's dmask and fmask mount options are 16-bit quantities but are displayed
as 1-extended 32-bit values in /proc/mounts. Fix this by circumventing
integer promotion.
Signed-off-by: Marc Aurèle La France <tsi@tuyoix.net>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to '')
-rw-r--r-- | fs/ntfs3/super.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c index af9b7947df64..27a36a0b08ec 100644 --- a/fs/ntfs3/super.c +++ b/fs/ntfs3/super.c @@ -544,9 +544,9 @@ static int ntfs_show_options(struct seq_file *m, struct dentry *root) seq_printf(m, ",gid=%u", from_kgid_munged(user_ns, opts->fs_gid)); if (opts->fmask) - seq_printf(m, ",fmask=%04o", ~opts->fs_fmask_inv); + seq_printf(m, ",fmask=%04o", opts->fs_fmask_inv ^ 0xffff); if (opts->dmask) - seq_printf(m, ",dmask=%04o", ~opts->fs_dmask_inv); + seq_printf(m, ",dmask=%04o", opts->fs_dmask_inv ^ 0xffff); if (opts->nls) seq_printf(m, ",iocharset=%s", opts->nls->charset); else |