[PATCH 5/5 -v2] miscellaneous vmufat changes and additions
From: Adrian McMenamin
Date: Sat Apr 11 2026 - 11:18:09 EST
Documentation/filesystems/index.rst
Update the documentation index file to link to the VMUFAT documentation..
fs/Kconfig
Update the fs Kconfig to make the VMUFAT option available.
fs/Makefile
Update the fs Makefile to allow VMUFAT to be built.
fs/vmufat/Kconfig
Advise kernel builders on whether or not to build VMUFAT code.
fs/vmufat/Makefile
Add a makefile to build the VMUFAT code as a built-in or a module.
include/uapi/linux/magic.h
0x55555555 is used mark the VMUFAT superblock, add it as an indentifying
magic number.
Signed-off-by: Adrian McMenamin <adrianmcmenamin@xxxxxxxxx>
---
Documentation/filesystems/index.rst | 1 +
fs/Kconfig | 1 +
fs/Makefile | 1 +
fs/vmufat/Kconfig | 14 ++++++++++++++
fs/vmufat/Makefile | 7 +++++++
include/uapi/linux/magic.h | 1 +
6 files changed, 25 insertions(+)
create mode 100644 fs/vmufat/Kconfig
create mode 100644 fs/vmufat/Makefile
diff --git a/Documentation/filesystems/index.rst b/Documentation/filesystems/index.rst
index f4873197587d..893b585d17a9 100644
--- a/Documentation/filesystems/index.rst
+++ b/Documentation/filesystems/index.rst
@@ -120,5 +120,6 @@ Documentation for filesystem implementations.
udf
virtiofs
vfat
+ vmufat
xfs/index
zonefs
diff --git a/fs/Kconfig b/fs/Kconfig
index 0bfdaecaa877..89a37c9c58a0 100644
--- a/fs/Kconfig
+++ b/fs/Kconfig
@@ -332,6 +332,7 @@ source "fs/pstore/Kconfig"
source "fs/ufs/Kconfig"
source "fs/erofs/Kconfig"
source "fs/vboxsf/Kconfig"
+source "fs/vmufat/Kconfig"
endif # MISC_FILESYSTEMS
diff --git a/fs/Makefile b/fs/Makefile
index cf4a745e9679..3cdc3d7b804c 100644
--- a/fs/Makefile
+++ b/fs/Makefile
@@ -129,3 +129,4 @@ obj-$(CONFIG_VBOXSF_FS) += vboxsf/
obj-$(CONFIG_ZONEFS_FS) += zonefs/
obj-$(CONFIG_BPF_LSM) += bpf_fs_kfuncs.o
obj-$(CONFIG_RESCTRL_FS) += resctrl/
+obj-$(CONFIG_VMUFAT_FS) += vmufat/
diff --git a/fs/vmufat/Kconfig b/fs/vmufat/Kconfig
new file mode 100644
index 000000000000..92553a246911
--- /dev/null
+++ b/fs/vmufat/Kconfig
@@ -0,0 +1,14 @@
+config VMUFAT_FS
+ tristate "Dreamcast VMU FAT filesystem"
+ depends on BLOCK
+ help
+ This implements the simple FAT type filesystem found on SEGA
+ Dreamcast visual memory units.
+
+ Dreamcast users who want to mount their VMUs to view the native
+ filesystem will say 'Y' here. The filesystem is hardware independent
+ but is not recommended for use in other circumstances, so just about
+ everyone else should say 'N'.
+
+ To compile this as a module say 'M' here. The module will be called
+ vmufat.
diff --git a/fs/vmufat/Makefile b/fs/vmufat/Makefile
new file mode 100644
index 000000000000..da423b0c7eec
--- /dev/null
+++ b/fs/vmufat/Makefile
@@ -0,0 +1,7 @@
+#
+# Makefile for VMUFAT filesystem
+#
+
+obj-$(CONFIG_VMUFAT_FS) += vmufat.o
+
+vmufat-y := inode.o super.o
diff --git a/include/uapi/linux/magic.h b/include/uapi/linux/magic.h
index 4f2da935a76c..7a3ab866ef48 100644
--- a/include/uapi/linux/magic.h
+++ b/include/uapi/linux/magic.h
@@ -54,6 +54,7 @@
#define QNX4_SUPER_MAGIC 0x002f /* qnx4 fs detection */
#define QNX6_SUPER_MAGIC 0x68191122 /* qnx6 fs detection */
#define AFS_FS_MAGIC 0x6B414653
+#define VMUFAT_SUPER_MAGIC 0x55555555 /* opening bytes of root */
#define REISERFS_SUPER_MAGIC 0x52654973 /* used by gcc */
--
2.43.0