mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 18:36:00 +00:00
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>
This commit is contained in:
parent
2681631c29
commit
f27b92ec09
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user