diff options
author | Marc Aurèle La France <tsi@tuyoix.net> | 2022-08-10 14:28:04 -0600 |
---|---|---|
committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2022-09-30 17:39:50 +0300 |
commit | f27b92ec0926efa3eadcebb97a90faba12e16041 (patch) | |
tree | 4e84b019defff2ab6eeade890f9c7be7f1e05d73 /fs/ntfs3/super.c | |
parent | 2681631c29739509eec59cc0b34e977bb04c6cf1 (diff) |
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 'fs/ntfs3/super.c')
-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 |