summaryrefslogtreecommitdiffstats
path: root/fs/exfat/super.c
diff options
context:
space:
mode:
authorJan Cincera <hcincera@gmail.com>2023-10-30 12:53:18 +0100
committerNamjae Jeon <linkinjeon@kernel.org>2023-10-31 02:00:51 +0100
commit0ab8ba71868594acfc717b8c7d1738b9118118ec (patch)
tree7a079e6a5180dcd8464ea2f3527f85e79ce46055 /fs/exfat/super.c
parentMerge tag 'objtool-core-2023-10-28' of git://git.kernel.org/pub/scm/linux/ker... (diff)
downloadlinux-0ab8ba71868594acfc717b8c7d1738b9118118ec.tar.xz
linux-0ab8ba71868594acfc717b8c7d1738b9118118ec.zip
exfat: add ioctls for accessing attributes
Add GET and SET attributes ioctls to enable attribute modification. We already do this in FAT and a few userspace utils made for it would benefit from this also working on exFAT, namely fatattr. Signed-off-by: Jan Cincera <hcincera@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to '')
-rw-r--r--fs/exfat/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/exfat/super.c b/fs/exfat/super.c
index e919a68bf4a1..ecee1664ab7f 100644
--- a/fs/exfat/super.c
+++ b/fs/exfat/super.c
@@ -360,7 +360,7 @@ static int exfat_read_root(struct inode *inode)
inode->i_gid = sbi->options.fs_gid;
inode_inc_iversion(inode);
inode->i_generation = 0;
- inode->i_mode = exfat_make_mode(sbi, ATTR_SUBDIR, 0777);
+ inode->i_mode = exfat_make_mode(sbi, EXFAT_ATTR_SUBDIR, 0777);
inode->i_op = &exfat_dir_inode_operations;
inode->i_fop = &exfat_dir_operations;
@@ -369,7 +369,7 @@ static int exfat_read_root(struct inode *inode)
ei->i_size_aligned = i_size_read(inode);
ei->i_size_ondisk = i_size_read(inode);
- exfat_save_attr(inode, ATTR_SUBDIR);
+ exfat_save_attr(inode, EXFAT_ATTR_SUBDIR);
ei->i_crtime = simple_inode_init_ts(inode);
exfat_truncate_inode_atime(inode);
return 0;