Skip to contentSkip to conversation

exfat: fix unhandled utf8 flag while reconfigure

PATCH In review Sang-Heon Jeon 1 participant 2 messages Sep 25, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 exfat: fix unhandled utf8 flag while reconfigure

---
 fs/exfat/super.c | 5 +++++
 1 file changed, 5 insertions(+)
fs/exfat/super.c +5 -0
index e1cffa46eb73..0e3f33a26005 100644
@@ -757,6 +757,11 @@ static int exfat_reconfigure(struct fs_context *fc)
 	if (new_opts->allow_utime == (unsigned short)-1)
 		new_opts->allow_utime = ~new_opts->fs_dmask & 0022;
 
+	if (!strcmp(new_opts->iocharset, "utf8"))
+		new_opts->utf8 = 1;
+	else
+		new_opts->utf8 = 0;
+
 	/*
 	 * Since the old settings of these mount options are cached in
 	 * inodes or dentries, they cannot be modified dynamically.
Signature · 1 line
2.43.0
#1 lore raw
Quoted 3 lines · Sang-Heon Jeon

---

Sorry, It's my mistake. I just sent my draft patch. Please Ignore this.

Quoted 20 lines
 fs/exfat/super.c | 5 +++++
 1 file changed, 5 insertions(+)
fs/exfat/super.c +5 -1
index e1cffa46eb73..0e3f33a26005 100644
@@ -757,6 +757,11 @@ static int exfat_reconfigure(struct fs_context *fc)
        if (new_opts->allow_utime == (unsigned short)-1)
                new_opts->allow_utime = ~new_opts->fs_dmask & 0022;
 
+       if (!strcmp(new_opts->iocharset, "utf8"))
+               new_opts->utf8 = 1;
+       else
+               new_opts->utf8 = 0;
+
        /*
         * Since the old settings of these mount options are cached in
         * inodes or dentries, they cannot be modified dynamically.
--
Quoted 2 lines

2.43.0

Best Regards,
Sang-Heon Jeon